mstarktv Posted September 28, 2016 Share Posted September 28, 2016 I ran into a roadblock here inside of VEX. I'm trying to take the scale of these sphere and have them pulse. This is more for a visual aid for now as I want to take the spheres and plug them into a Shader's Emission so that the light pulses. Baby steps... However, in the meantime before I normalize them, I'm trying to get it so that each sphere kind of pulses at a random point in time. If you look, the scale of each is randomized, but I can't figure out how to randomly offset the pulsing so that it happens uniquely. I attached the file and an animated gif to help out! Excuse my messy VEX - I was going for as random as possible. scale_pulse.hiplc Quote Link to comment Share on other sites More sharing options...
Dave Stewart Posted September 28, 2016 Share Posted September 28, 2016 Take a look at this Michael, just added the @ptnum value to your @Time expression to offset time for each point. Seems to achieve the effect you're looking for. Also multiplied @ptnum by a random number to spread the time offset values out further. --Dave scale_pulse_DStewart.hiplc 1 Quote Link to comment Share on other sites More sharing options...
mstarktv Posted September 28, 2016 Author Share Posted September 28, 2016 34 minutes ago, Dave Stewart said: Take a look at this Michael, just added the @ptnum value to your @Time expression to offset time for each point. Seems to achieve the effect you're looking for. Also multiplied @ptnum by a random number to spread the time offset values out further. --Dave scale_pulse_DStewart.hiplc Dave, This is exactly what I was trying to do. Thank you so much! I was trying every way around to get this result. Hence the 3 lines of "@pscale." I appreciate it! Quote Link to comment Share on other sites More sharing options...
Dave Stewart Posted September 28, 2016 Share Posted September 28, 2016 1 hour ago, mstarktv said: Dave, This is exactly what I was trying to do. Thank you so much! I was trying every way around to get this result. Hence the 3 lines of "@pscale." I appreciate it! Glad to help Michael, Vex is still kicking my butt as well! Can only handle it in small doses... --Dave Quote Link to comment Share on other sites More sharing options...
mstarktv Posted September 28, 2016 Author Share Posted September 28, 2016 (edited) I'm in the same boat as you. I can't remember how I did things in the past already - weeks ago. I somehow used @P to connect a point's position to the shader. However, I can't remember How I did that, now. I'm trying to connect the scale to the @Cd. I think half my time is re-figuring out how I did something. edit*** And I found my problem. I packed the spheres before coloring the points. Oops. I wonder if I can transfer the packed geo's point color to it's detail/surface/shader...etc. Edited September 28, 2016 by mstarktv solution Quote Link to comment Share on other sites More sharing options...
Dave Stewart Posted September 29, 2016 Share Posted September 29, 2016 Glad to know it's not just me. Of course, I still suck at MaxScript after using Max since v1, so... Haven't dug into varying color on packed geo, would be curious to hear if you figure out a solution to that! --Dave Quote Link to comment Share on other sites More sharing options...
Dave Stewart Posted September 29, 2016 Share Posted September 29, 2016 This is pretty easy, see attached. The Mantra Surface and Principled shaders both have a "use packed color" option in the Diffuse section, which grabs the color values from the points that represent each packed primitive. This example applies random colors to the points after packing, which seems to work just fine. Wonder if there's a way to see this represented in the viewport vs. at render time? --Dave DStewart_PackedGeo_RandomColors.hip 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.