dark-beam's avatar

How do I program difs shapes

21 12 1K (1 Today)
By dark-beam   |   Watch
Published: April 10, 2015
© 2015 - 2020 dark-beam
Due to time constraints, I will not answer to every possible question about those files, please elaborate them by yourself. :) I am giving that to everyone, but don't ask me to explain everything...
Study and research, you can do it ;) I did not have all those resources at hand BUT I was able to find out by myself...
Nothing personal. Try to ask if you have doubts - *but* don't obsess me with questions, or I won't reply anymore. :(

This is a resource for experienced people, who knows about floating point assembly, if you read and study those example you should be able to program customized DIFS shapes into Mandelbulb3D.
THINGS YOU NEED TO COMPILE; FLATASM, an hex editor
Find flat assembler here. flatassembler.net/download.php
Use any hex editor you like.
Once you compile the example, a BIN file is generated
Convert the bin into a plain string, in hex mode, example 55FE561ABB3C without spaces,  you get the so called "code"... and paste it into a suitable Mb3D formula frame, like this

<<
[OPTIONS]
.Version = 6
.DEoption = 20
.SSE2
.Double OTrapOffset = 0
.2Doubles Scale = 2
.2Doubles Z add = 0
.Double Y add = 0
.Double X add = 0
.Integer Apply scale+add = 0
.Double OTrapOnIts= 0.25
.3SingleAngles Rotate = 0
.Double extraparam1= 1.0
.Double extraparam2= 1.0
[CONSTANTS]
Double = 9999999999.9
... constant section can be aswell omitted but use it to treat not user changeable int/double values...
[CODE]
83C4CC660F10468................blabla paste code here replace this
[END]

Made by George Washington 2050, write a comment, lorem ipsum.
>>

Deoption 20 means "difs shapes" to mb3d.

As for normal formulas, they can also be programmed using flatasm but I actually never used it estensively. In any case Knighty made some research using normal c language and it actually works afaik, see here the progress.

www.fractalforums.com/tutorial…

Also to understand what goes on inside the cube routine you may want to look at pseudorandom number generation:

en.m.wikipedia.org/wiki/Pseudo…

Given x and y I extract the int part, using mixed techniques I shuffle bytes to obtain an integer 0 to a maxval, then divide it to convert to a float that is used to generate the shape...
Comments12
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In
Freshums's avatar
FreshumsStudent General Artist
Thanks, I was just trying to figure out where to find or how to make the icosatube and other solids shapes in the "tubey"way..This is a great starting point, but my brain hurts just reading it so far.
jost1's avatar
Oh no, don't confuse me with that stuff! I just wanna play. ;)
But I can promise you, that I don't ask you any question. :hug:
krompulos's avatar
krompulosHobbyist General Artist
thank you so much for this info.
perhaps i can learn the rest of what it takes to work with this type of thing.
i have been wondering how it is done, but not wanted to ask, as i am not yet advanced enought for anyone to teach me without becoming frustrated.
You are awesome, and thank you again for giving me the resources to learn.
dark-beam's avatar
dark-beamStudent Artist
Too bad it's hard :( very hard!
You are welcome buddy.
Undead-Academy's avatar
Undead-AcademyHobbyist Digital Artist
Looks great , no need to reply ....
dark-beam's avatar
dark-beamStudent Artist
Patty this info is for programmers :) as currently difs are the most powerful tool in mb3d :hug:
Undead-Academy's avatar
Undead-AcademyHobbyist Digital Artist
I know sweetie , that is why I said no need to reply , lol :)
PaMonk's avatar
PaMonkProfessional Artist
Wow! Looks confusing :baffled: :hug:
dark-beam's avatar
dark-beamStudent Artist
To write all the steps needed a lifetime would be barely enough, but I have things to do :hug:
PaMonk's avatar
PaMonkProfessional Artist
Aw! :hug:
dark-beam's avatar
dark-beamStudent Artist
The explanation is short and so is my time dear. :shrug: ...
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In