dark-beam on DeviantArthttps://www.deviantart.com/dark-beam/art/How-do-I-program-difs-shapes-526007462dark-beam

Deviation Actions

dark-beam's avatar

How do I program difs shapes

By
Published:
2.3K Views

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...
© 2015 - 2024 dark-beam
Comments12
Join the community to add your comment. Already a deviant? Log In
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.