HOME | DD

dark-beam — How do I program difs shapes

Published: 2015-04-10 17:02:57 +0000 UTC; Views: 2367; Favourites: 23; Downloads: 59
Redirect to original
Description 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...
Related content
Comments: 12

Freshums [2016-04-10 18:26:14 +0000 UTC]

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.

👍: 0 ⏩: 0

jost1 [2015-05-10 20:41:06 +0000 UTC]

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.

👍: 0 ⏩: 0

krompulos [2015-04-11 18:13:48 +0000 UTC]

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.

👍: 0 ⏩: 1

dark-beam In reply to krompulos [2015-04-12 07:28:50 +0000 UTC]

Too bad it's hard very hard!
You are welcome buddy.

👍: 0 ⏩: 0

Undead-Academy [2015-04-11 09:29:31 +0000 UTC]

Looks great , no need to reply ....

👍: 0 ⏩: 1

dark-beam In reply to Undead-Academy [2015-04-11 09:56:28 +0000 UTC]

Patty this info is for programmers as currently difs are the most powerful tool in mb3d

👍: 0 ⏩: 1

Undead-Academy In reply to dark-beam [2015-04-11 11:31:56 +0000 UTC]

I know sweetie , that is why I said no need to reply , lol

👍: 0 ⏩: 0

PaMonk [2015-04-10 19:16:29 +0000 UTC]

 Looks confusing   

👍: 0 ⏩: 1

dark-beam In reply to PaMonk [2015-04-10 20:32:25 +0000 UTC]

To write all the steps needed a lifetime would be barely enough, but I have things to do

👍: 0 ⏩: 1

PaMonk In reply to dark-beam [2015-04-11 03:36:38 +0000 UTC]

Aw!

👍: 0 ⏩: 0

fractal2cry [2015-04-10 19:09:03 +0000 UTC]

👍: 0 ⏩: 1

dark-beam In reply to fractal2cry [2015-04-10 20:33:37 +0000 UTC]

The explanation is short and so is my time dear. ...

👍: 0 ⏩: 0