JeremyR
This is an old issue but I just want to know something when it comes to changing face IDs when faces are deleted or smoothed on a mesh. Way back when I was feeding components through a group node into a smooth or delete faces and then into an extrude, things wern't working as I wouldve expected because the face IDs were changing after they were deleted for example. Is because of what happens to the data in the array? After a face is deleted all the faces with greater IDs shift down to fill the gap causing their IDs to change, just like if you removed a plate from a stack all the other plates drop down.

I remember reading somewhere that arrays can be sparse, meaning they can have holes in the array and therefore nothing jumps down, if this is the case why doesnt Maya handle data this way? I understand that it may not be very efficient speed wise but surely this way would offer more flexbility to the artist for a small sacrifice in performance?
pshipkov
To be honest i don't know, but all poly engines i know of do it that way. I guess it is related to performance.
That can be addressed easily in Houdini by supplying additional "ID" per-component array attribute. But in Maya therms you have to use blindData or complain to developers to bring similar functionality to what we see in the particles. If i delete a particle that does not compress the IDs array and things are consistent all the time, etc.

Reply 0 0
noizfactory
Wouldn't a work around for this already exist by using some soup nodes? We have access to the orig shape node before the component level operation. We have access to the components being operated upon. So if we store the orig components in one point/group node, store the edited components in another and then rebuild the array ourselves in another point node such that the edited components are just null components, then we could still stick to the same order and do whatever further operations we want with this data, right?
Reply 0 0
pshipkov
Of course we can, but doing that every time you apply operator to the geometry is an overkill. Currently the standard operators in Maya dont work like that. I mean - they are blind for user data and don't process it. So if you apply something to the object before going through Maya operator that user data will not be processed according to what the modifier does to the geometry.
For a demo - that will work, in the practice - not really :)

Reply 0 0
saber
im not sure about this ,but some of the Maya API command require changine vertex IDs ,for example collapsing edge,delete vertex ,or edge,and other topolygy change modifier tend to change the vertex indexes ,the cmd has to renumber the vertex in order to work ...

Reply 0 0
JeremyR
Does it have to renumber them for 'maya' to work or can it be done some other other? For example if one merges vertex 3 and 4 together and it then becomes vertex 3 it would appear that maya then renames vertex 5 as number 4 etc etc. Why cant it just leave vertex 4 out and continue with 5?

I have a feeling it has to do with efficiency otherwise the array would create 'holes' in memory and things would become slow. Im not sure it has to do with necessity I believe.
Reply 0 0
noizfactory
Quote:
I have a feeling it has to do with efficiency otherwise the array would create 'holes' in memory and things would become slow. Im not sure it has to do with necessity I believe.


I agree with you. It could most likely be for efficiency reasons and changing this behaviour will probably involve too much of over-hauling their base code and hence the status quo.

Quote:
For a demo - that will work, in the practice - not really :)


The motion blur examples which deal with changing point counts are definitely production usable :)
Reply 0 0
saber
A*k!m@n:
again im not sure about this:
but in order to keep the code fast enought ,the Dag nodes that change topolgy will always assign new vertex number .
Alias people said it will be expansive to provide the same Arrays of points back again after the topology change ,and its faster and easier for them to just renumber it .

S
Reply 0 0
Reply