etmaxman

Hey guys.. 

am trying to create a simple script to be a "one click computeVelocityToTextuer2D" 

it's so easy to use the computeVelocity node and arrayToPointColor and then bake a map using "vertex color to texture" tool, however, i want it to be more procedural using the pointAttributeToArray and the arrayToTexture2D nodes.. 

here's what i've done so far..

inputMesh.worldMesh > computeVelocity.InGeometry

inputMesh.worldMesh > arrayToPointColor.InGeometry

computeVelocity.outVelocityPP > arrayToPointColor.inRgbaPP 

arrayToPointColor.outGeometry > pointAttributeToArray.inGeometry 

pointAttributeToArray.outSharedMapPP > arrayToTexture2D.inMapPP

to this point the arrayToTexture2D is black.. i think i have to connect something to arrayToTexture2D.inDataPP but am not sure what it is... 

A couple years old post Peter said this...

"Maya emitters can see only the default procedural texture nodes and the file node. 
You are out of luck here. " 

did anything change today?

 

the whole point is.. a moving geometry emitting particles or fluids is so common and i want a one click easy way to do it... tell now every time i need it i have to bake the maps and whenever the motion change i have to bake maps again... 

the other way "already made a script for it" is to use particles and stick it to the Geo using UVs and use this particles's velocity to determine if the geo is moving or not but it's too easy to get too slow :/

if there's any ideas about how to do this task i would really appreciate it.. 

thanks guys

 

Untitled.png 

Reply 0 0
pshipkov
If you are not trying to bake a heavy data set to more digestable data structure, or if you are not trying to pre-compute data in order to feed standard Maya emitters, then you don't need to do any of that.
If you use SOuP emitters you can avoid this whole trouble.
I don't know what problems exactly you are facing, but if your emitters have to rely on this kind of data, then use SOuP emitters, but not Maya ones.
This is just a suggestion, of course - take it or leave it.

The problem with the workflow you outlined is that it is very Houdini centric.
Maya's DG does not have good enough flow control like Houdini's graph and you will be swimming against the stream even harder than if you just used SOuP nodes as interactive part of your nodal graph.

Either way will be fine, just my first feeling is that you are making it harder than it should be.

Anyway, back to your question:
you don't need the arrayToTexture2D in this case.
Stop at arrayToPointColor, then use the vertexColorsToTexture tool and bake to image sequence. That's all.
Reply 1 0
etmaxman

using soup's emitter fixes it all!! baking the texture is much simpler but i have to re-bake each time i change the motion of the geo.. 

soup's emitter dose the trick.. thanks peter <3 

Reply 0 0
Reply