specter
Hi!

I'm running into a problem when i try to use the vertex color of an object as an input for texture emission.

i use a bounding object and a an attribute transfer node to blend the vertex color between two objects. one object has black vertex color, the other white. now i want to emit particles only where the vertex color is white.

in the viewport everything works. when the bounding object contains the mesh, the mesh gets white. when i pump the color set into a vray vertex color, the render shows the expected result.

but when i pump the vertex color into the texture rate of the emitter, the particles get emitted on the whole object and not just on the white vertex colors.

when i bake the vertex colors into bitmaps and then pump this image sequence into the texture rate, everything works. but this is a very anoying workaround when animating stuff.

so my question, is there a method get the texture rate evaluated by the vertexcolor changes?

thanks in regard, and by the way; soup rocks! thank you for peter for giving us such a great set of tools!

pshipkov
Maya's emitters are little ... ahem ... retarded. :D
They are blind for component data and if you want to do texture emission you have to have textures.
Now, there is a simple workaround that does just fine in most of the cases.

I think you use mesh geometry as emitter.
Duplicate the original mesh and then originalGeo.outMesh -> newGeo.inMesh.
Select few faces from the newGeo and delete them. This will insert new deleteComponent node inbetween these two objects.
Create group node and originalGeo.outMesh -> group.inGeometry. Set the group to operate on faces. Connect the boundingObject you already have to the group node (use the connect icon on the soup shelf). Set the "invert" flag on the group node to "on". Finally group.outComponents -> deleteComponent.inputComponents.

The new geometry will conform to the texture you have now. Use that as surface emitter
Reply 0 0
specter
wow, that was fast ;)

i think i got the idea. there could be a problem, because the emitting geometry has a geocache on it and so i have to duplicate with input connections.

but i will try tomorrow.

thanx peter

Reply 0 0
pshipkov
I still think it is better to make a "flat" copy of the end-of-chain geo shape and then connect it's input geometry attribute to the original shape. This way it will always inherit everything from the original shape. Otherwise modifications made to the original shape won't end-up in the new one.
Just saying.

Reply 0 0
specter
this works like charm!

many thanks!

Reply 0 0
specter
ok, theres one thing still bugging me and i think i am just to new to soup to get it right.

when i use attribute transfer and a bounding object, everything is working like expected. things get transferred between two meshes (vertex color) when inside the bounding object.

but when the the vertices are outside of the bounding objects again, they get their old color back, which is nice when you want it. but how can i achieve the effect, that they keep their transferred vertex color after they left the bounding object?

i am nearly sure that this is just a stupid question ;) sorry ! 

Reply 0 0
pshipkov
Use the arrayDataContainer node. It has the notion of "memory". Check the example scenes to see how it works.

Reply 0 0
noizfactory
pshipkov wrote:
Maya's emitters are little ... ahem ... retarded. :D
They are blind for component data and if you want to do texture emission you have to have textures.
Now, there is a simple workaround that does just fine in most of the cases.

I think you use mesh geometry as emitter.
Duplicate the original mesh and then originalGeo.outMesh -> newGeo.inMesh.
Select few faces from the newGeo and delete them. This will insert new deleteComponent node inbetween these two objects.
Create group node and originalGeo.outMesh -> group.inGeometry. Set the group to operate on faces. Connect the boundingObject you already have to the group node (use the connect icon on the soup shelf). Set the "invert" flag on the group node to "on". Finally group.outComponents -> deleteComponent.inputComponents.

The new geometry will conform to the texture you have now. Use that as surface emitter


Awesome workflow there, Peter :)

Reply 0 0
pshipkov
:)
Reply 0 0
specter
and again, it works perfectly.

thanx peter

Reply 0 0
Reply