|
Is this a SPDL based or self-installed custom operator you're working on? If SPDL based you're supposed to be able to set the classification flag of the operator to 0x4061, specifying the operator is topology modifying and forcing clusters to update properly (for complete clusters at least.) They go into more detail in the process on the wiki:
http://softimage.wiki.avid.com/index.php/Custom_Operators_%28XSISDK%29#Topology_Operators
I haven't had a great deal of luck getting these classification flags to work with self-installed operators, but I haven't tried in a while and definitely not in XSI
6.0.
Hope this helps, -A
On 1/25/07, Etienne Pellerin <epelleri(at)gmail.com> wrote:
Hi, I'm still working on a realflow importer that I will open source if I ever manage to finish it :) But I have a big problem with the texture coords cluster and I need some help.
The geometry generator works correctly, but in the uv operator, the cluster property doesn't have the correct number of elements in the OutputTarget or the InputPorts. Here's a simple test I did : connected the geometry generator, created a projection with the default
op frozen (it becomes an ExplicitUVW) and connected the uv operator this way:
Output Port : the uv ClusterProperty Input Port : the parent Primitive Input Port : the same uv Cluster Property
Input Port : the parent Cluster
In the update function, I traced the elements count of all input port objects : - Primitive.GetGeometry.GetSamples.GetCount is the correct value - Cluster.GetElements.GetCount is the old value - ClusterProperty.GetElements.GetCount
is the old value
output target: - ClusterProperty.GetElements.GetCount of the OutputTarget is also the old value so I cannot write the updated UVs.
I also checked the Cluster flag IsAlwaysComplete and it is true, so I concluded that the clusters are out of sync with the geometry when I receive them in the operator. I assume it means the clusters are not updating at all if I change the geometry with an operator.
Any idea ? I there a way to force the clusters to sync their sizes ?
Thanks, Etienne Pellerin
|