m0z
hi guys,

I'd like to know if it's possible to instance on edges with SOuP somehow?


I want to create a procedural rig for these constructions, would be fun.
I tried to hook up a group node with a pointAttributeToArray, that outputs outPositionPP to an instancer.
But as I understand this, the point & pointAttributeToArray nodes only work with vertices?

Any help or advice would be appreciated :D

greetz
http://www.mathiasmarkovits.com
Reply 0 0
JeremyR
Try the componentToComponent node, not saying it works but that can transfer one component to another like verts to edges.
Reply 0 0
m0z
Thanks Jeremy, I tried the node but I didn't understand it correctly. 
Now I tried to hook it up after a group node, that outputs the edges. The componentToComponent outputs the components as vertex and feeds the pointAttributeToArray node with it. Doesn't work though :D

hm!
Reply 0 0
plarson
It would be nice to be able to distribute a new set of points along the edges in a component list. Perhaps with the choice to distribute from the midpoint of edges, or starting from the lower/higher id of the vertices connected.

It might be reasonable to use the Scatter node's texture based distribution. Like to place points where you want a cross bracing instanced.

It would also be interesting to place points based on UV location. With something like the group node's range operation, for UV location rather than component.

An issue might be not being able to instance from points on an instance. Like if you wanted to instance bolts along a rail that is instanced. I wonder if points could be generated from certain components on the original mesh being instanced, then translated based on the instancer position(to match the location of the instanced geo).
Reply 0 0
m0z
Wouldn't it be possible to generate curves between points (where the edges are) and use these curves with a point node for the instancer?
Reply 0 0
JeremyR
Its becoming more like PaintFX where we have tubes > branches > twigs and leaves for example. Here you can add knots along a branch to have twigs and leaves that are different geometry. Perhaps the problem is more to do with the construction of these curves, Im not sure. Something that can convert edges to curves maybe.
Reply 0 0
pshipkov
Why don't subdivide the geometry to get points in the middle of the base edges ?
Reply 0 0
m0z

because I need a "corner piece" on every vertex, and a different pipe/tube on each edge.

But as it seems the Toon Outline / pfx technique works really well for just tubes... The only problem I have now is that the corner pieces don't aim in the right direction. I tried various expressions@point node but I'm stuck.. Maybe I think too complicated, don't know.. 

here's the scene, if anybody wants to check it out :)

http://www.mathiasmarkovits.com/up/files/geruest.ma/geruest.ma

maya 2013
Reply 0 0
JeremyR
I think you need to use the rotation attribute rather than aim direction. there is a command called angleBetween which takes 2 arguments, the current angle and the final angle both in linear units. The result is in degrees which plays well with Rotation.
Reply 0 0
JeremyR
Better yet...
Reply 0 0
m0z
wow really nice. How did you came up with the ($ID+8)%8 ? :)
Reply 0 0
sepu
awesome solution Jeremy!
Reply 0 0
JeremyR
Thanks guys.....I realise I dont even need the "+8" in there, it appears that modula just returns the original whole number back if the answer is a fraction.

So $ID%8 will do it. 
It will only work with objects that have 8 corner verts or in this case a combined mesh of cubes since modula will loop through each cube so to speak.
Reply 0 0
noizfactory
A nice setup Jeremy!
Reply 0 0
Reply