Kakushi_52
Hi, I have gotten stuck with the following problem...
I have attached a scene file.

InstanceViewport.jpg 
There are 3 instancers and the result should be the same, but the second instancer does not work correctly.

I would like to assign different colors to each instanced object by rgbPP using 3Delight. I have read in this forum that we have to make an instancer through a particle to achieve it. So I connected each array to particle by particle expressions.

I would like to control scale x, y, z independently, so I used splitRgba, remapArray and arrayToArray to recombine each x, y and z values.
InstancerConnection.jpg    

The problem is that, Maya's particle doesn't seem to read arrayToArray correctly.
On the other hand, connecting arrayToArray directly to instancer using arrayToDynarrays works well (Instancer 3).

In the scene file, I wrote the following particle expressions.

particleShape1.userVector1PP = arrayToArray1.outArray;

particleShape1.userVector2PP = geoConnector3.ownerPositions;

arrayToArray1.outArray and geoConnector3.ownerPositions is the same (displayComponents shows it).
However, if I choose particleShape1.userVector1PP for the instancer scale, it doesn't work.
particleShape1.userVector2PP works correctly.

Can any one solve the problem??

If I can use rgbPP or other arrays in 3delight easily to assign different colors to each instanced object without going throuth particleshape, I won't use particle.

Many thanks.

Reply 0 0
pshipkov
I am sorry for this late reply.

I am not getting many things here.
For example - why you are using geoConnector ?
It looks like you want to represent the positions of the points as colors where X is R, Y is G and Z is B.

Or this is just a testing thing and you want to be able to pipe any arbitrary data and render it as colors applied to the particles/instances. Correct ?
Reply 0 0
Kakushi_52
Thank you so much for your reply.
I am so sorry that my explanation is not enough at all. The attached scene is just testing.

What I want to do is like the following image.
(The image is not related to what I am doing but very similar.)
A kind of data visualization.

http://hemo.seas.harvard.edu/files/styles/os_files_medium/public/seashemo/files/vector9-small.jpg

The reason why I am using geoConnector node is that I had read the following thread before I knew SOuP.

http://forums.cgsociety.org/showthread.php?t=728087

Can some SOuP node get the world position of a poly vertices?

There is a simulation data sequence which has each point's velocity (x1, y1, z1).
I have stored the x1, y1, z1 to a poly mesh's each vertex coordinate. So I can give velocity data to particle using geoConnector (or some SOuP node?), and I can rotate each 3d arrow correctly using instancer.

Now, what I want to do is to scale each 3d arrow according to each velocity length (sqrt(x1*x1+y1*y1+z1*z1)). In this case, I want to scale (Y) and (X, Z) independently, in other words, I want to scale "length" and "diameter" independently.

The velocity length is not vector data, but scalar data, so I have stored the length to another poly mesh's each vertex X coordinate.

geoConnector -> splitRgba gives us the X coordinate array. So I tried connecting the array to 2 remapArrays, scaling (remapping) them, and recombining X, Y, Z using arrayToArray.

I connected the new array to scalePP but it didn't work correctly.

And if possible, I would like to assign different colors to each 3d arrow according to the velocity length like the following.

http://www.psc.edu/publicinfo/news/2005/images/teragrid-02-full.jpg

Thank you very much.
Reply 0 0
Reply