Jump to content

Mandelbulb 3D fractal animation


Recommended Posts

https://gist.github.com/callandekeijzer/aa70451acfcf2d97ec0e18155a1d8ed7

Hi this is my very first post.
I'll try to be as clear as possible, but i'm very new to Houdini and programming.
After following a tutorial -->https://www.sidefx.com/tutorials/vex-in-houdini-mandelbrot-and-mandelbulb/ (which is really great btw)

I managed to create the fractal and the next step i want to take is to animate the fractal
The easiest and best way i think is to make the integer value 'I' into a 'channel' like the tutorial does with N.
and then have the value I change every frame using $F.

the main issue is that I can't turn an integer into a float, i believe?
Below is the warning that my volume wrangle node gives me.


Warning 
Errors or warnings encountered during VEX compile:
/obj/mandel/volumewrangle1/volumevop1/snippet1: Implicit cast from float to int. Use explicit cast instead. (17,13). 
Warning 
Errors or warnings encountered during VEX compile:
/obj/mandel/volumewrangle1/volumevop1/snippet1: Implicit cast from float to int. Use explicit cast instead. (17,13). 
Warning 
Vex error: /obj/mandel/volumewrangle1/volumevop1/snippet1: Implicit cast from float to int. Use explicit cast instead. (17,13) 
 

Any help in the right direction would help out, feedback on nodes, programming, post structure is welcome.

Cheers,

Callan

Mandelbulb.hipnc

Link to comment
Share on other sites

1 hour ago, Atom said:

Just wrap your channel fetch with an int() function.


int i = int(ch("i"));

 

Or you know, use the chi() function instead of the ch() :P

there is a whole category of functions also including:

chf(): if you are really sure its a float
chs(): if you want to read it directly as a string.
chv(): for vectors
chramp(): for ramps.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...