callandekeijzer Posted February 22, 2017 Share Posted February 22, 2017 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 Quote Link to comment Share on other sites More sharing options...
Atom Posted February 22, 2017 Share Posted February 22, 2017 (edited) Just wrap your channel fetch with an int() function. int i = int(ch("i")); Edited February 22, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
acey195 Posted February 22, 2017 Share Posted February 22, 2017 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() 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.