Jump to content

VOP SOP question


Recommended Posts

Just getting started with VOPs.

 

Based on eetu's example in this thread http://forums.odforce.net/topic/17587-hide-emission/#entry119560,

 

what would be the appropriate  VEX nodes and strategy to implement the following pseudocode to revise the VOP SOP eetu wrote at /obj/import_pyro_build/volumevop_age_mask?

 

if age < srcmin:
    density = 0
if age >= srcmin and age <= srcmax:
    density *= fit(age,srcmin,srcmax,0,1)
if age > srcmax:
    density = density  

 

Here's the Volume VOP as eetu wrote it:

eetuVOPSOP.PNG

 

I can understand how the above works, but am having trouble figuring the right nodes to revise it to achieve what my pseudocode would do.

 

Thanks!

John

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...