Fitting a scalar field -1 to 1 in DOPS

   3778   4   2
User Avatar
Member
339 posts
Joined: Aug. 2007
Offline
Anyone have a handle on how to get the equivalent of volumemin() and volumemax() in DOPs? Really I'm just after a method to fit a curvature field -1 to 1 but the only way I can see to do this is with a Gas Field VOP that reads in the min and max values. Easy to do in SOPs, not very transparent in DOPs.

I was thinking that the colon shizzle might work for this but i can't remember the syntax. something like volumemin(dopobject/curvature:.somethingsomething). it escapes me.

Any helpy helpertons?
Jesse Erickson
Fx Animator
WDAS
User Avatar
Staff
809 posts
Joined: July 2006
Offline
You can use the Gas Reduce DOP to calculate the min or max of a field and store it another field (and constant fields use very little storage). Then use the min and max fields as parameters to your GAS Field VOP.
User Avatar
Member
691 posts
Joined: June 2006
Offline
Thank you very much Johner.
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
339 posts
Joined: Aug. 2007
Offline
That is radical knowledge Holmes! Thanks
Jesse Erickson
Fx Animator
WDAS
User Avatar
Member
856 posts
Joined: Oct. 2008
Offline
I am trying out Johner's technique but I do something wrong.

I made a scalar field called maxfield that gets the maximum temperature with a gasreduce dop. That step works as you can see with the visualization of that field (the plane; it changes color during sim).

Then in a gasfieldvop I try to refit that field into another myfield. That step does only work for one frame.

What am I doing wrong?

In the picture below:

red = myfield
white = temperature field
plane = maxfield

I'd be happy if somebody could nudge me in the right direction with this too!

Hip file attached.

Attachments:
strangtefieldminmax.hip (576.9 KB)
Capture.JPG (27.4 KB)

--
Jobless
  • Quick Links