girtab Posted February 9, 2018 Share Posted February 9, 2018 Hi all, I started to learn Vex, But I think it's better for me if I have some exercises. I mean like on this topic : It can be very cool to do this method for vex too, like this everybody can participate and learn. Of course each day the exercise need to be a little more complex. Thanks and I hope you will like the idea. 1 Quote Link to comment Share on other sites More sharing options...
jon3de Posted February 9, 2018 Share Posted February 9, 2018 ah why not So here is the first exercise before it gets to complex hehe. VEX Sinus Wave 1 Quote Link to comment Share on other sites More sharing options...
girtab Posted February 9, 2018 Author Share Posted February 9, 2018 Thanks Jon3de for the first exercise ! Quote Link to comment Share on other sites More sharing options...
girtab Posted February 9, 2018 Author Share Posted February 9, 2018 I finish it ! If you have a new one ? Quote Link to comment Share on other sites More sharing options...
Atom Posted February 9, 2018 Share Posted February 9, 2018 (edited) Learning ramps is nice too. The fit function will map a value within a known range into another value, in this case zero to @life. I often map particle @age over @life into the 0-1 range. You can then use this 0-1 as a lookup index into a ramp. This lets you shape a particle radius over time as it ages. Often it is just a couple lines of code. You don't have to map to @pscale. You could also map to @Alpha and have the ramp affect opacity as well. Edited February 9, 2018 by Atom Quote Link to comment Share on other sites More sharing options...
Atom Posted February 9, 2018 Share Posted February 9, 2018 Here is a similar setup using a line. 1 Quote Link to comment Share on other sites More sharing options...
girtab Posted February 9, 2018 Author Share Posted February 9, 2018 Thank Atom I will study the ramp Quote Link to comment Share on other sites More sharing options...
kiryha Posted February 9, 2018 Share Posted February 9, 2018 How about... a circle? You can do a spiral if it's too easy! 2 Quote Link to comment Share on other sites More sharing options...
girtab Posted February 12, 2018 Author Share Posted February 12, 2018 Hey kiryha thx for your participation and for my first exercise of the week ! Quote Link to comment Share on other sites More sharing options...
girtab Posted February 12, 2018 Author Share Posted February 12, 2018 I did the rotation in an other wangle with that : @age = @ptnum; @P.y = fit01(@age, 0.1, 1)+@age/ch("heigth"); Quote Link to comment Share on other sites More sharing options...
Atom Posted February 12, 2018 Share Posted February 12, 2018 (edited) Hmm...you do realize that fit01 expects the first value to be in the range of 0-1. @age does not fit that criteria, neither does @ptnum. However, fit allows you to remap a known range into a 0-1 range. Because 0 and @life are the known range that @age can occupy. float my_value = fit(@age,0,@life,0,1); The rand() function is a great companion of fit01 because it always returns a value in the range of 0-1. You may often see something like this. Get a unique random number for each point. float min = 0; float max = 1.0; float my_fit_rnd_value = fit01(rand(@ptnum),min,max); Edited February 12, 2018 by Atom Quote Link to comment Share on other sites More sharing options...
toadstorm Posted February 12, 2018 Share Posted February 12, 2018 @nage is a built-in bind that automatically returns (@age/@life), or the equivalent of the my_value float Atom posted above. that said, setting @age = @ptnum is almost certainly not what you actually want to do... overwriting @age is going to get you some pretty weird results in most scenarios. Quote Link to comment Share on other sites More sharing options...
girtab Posted February 12, 2018 Author Share Posted February 12, 2018 Thanks for these informations, tomorrow I will try without @age, I have a question, I,m trying to do a rope. So I did a line, resample, polyframe with tangentu and tangentv my question is what is the best way to achieve this ? Quote Link to comment Share on other sites More sharing options...
kiryha Posted February 13, 2018 Share Posted February 13, 2018 By "this" you mean UP and Normal vectors? Quote Link to comment Share on other sites More sharing options...
girtab Posted February 13, 2018 Author Share Posted February 13, 2018 yep, I’m trying to do a rope only in vex, by this I mean the rope, I’m a little bit lost about how twist the vector to creat the rope Quote Link to comment Share on other sites More sharing options...
kiryha Posted February 13, 2018 Share Posted February 13, 2018 Quote Link to comment Share on other sites More sharing options...
girtab Posted February 15, 2018 Author Share Posted February 15, 2018 I just finish it, it was very complicate to understand everything with array ect.. So for today if someone have an exercise to propose Quote Link to comment Share on other sites More sharing options...
kiryha Posted February 15, 2018 Share Posted February 15, 2018 You did not finish the circle yet And you can go further and make a helix and a spiral. Quote Link to comment Share on other sites More sharing options...
kiryha Posted February 15, 2018 Share Posted February 15, 2018 One thing that may be useful when learning VEX is to do the same exercise in VOP also. I think this will give deeper and solid understanding of basics by looking at the same procedures from the different angles. Quote Link to comment Share on other sites More sharing options...
girtab Posted February 15, 2018 Author Share Posted February 15, 2018 thank you Kiryha, today I finish the exercice with the normal I will send tomorrow what I wrote on the wrangle. I do the vop challenge too, for that , after I will try to convert vop node into vex and vex into vop, if you have some exercice in vop to give me, you can the principe of this topic is to practice and practice a lot 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.