Hi all,

Need some help from the pool of wisdom.

In a SourceGeo, if I'm creating multiple objects, where would be the place
to assign a matrix to each object/GeoInfo?

If I do it in create_geometry(), the matrix for each object is reset to the
identity. I suppose this is happening in init_geoinfo_parms() ?

So far, the options I see are:

1- Bake the transforms into the points when creating them in
create_geometry()
2- Reimplement init_geoinfo_params() in my plugin and avoid resetting the
matrix in there.
3- Do it in geometry_engine() instead, which seems to happen after
everything else. I'd rather not go with this one, though, since I'm reading
from a file and I'd need to read it again)

Option 1 seems the easiest, and it's what I had until now, but I'm curious
to know if there's any benefits from setting a geoinfo matrix vs baking it
into each point. Is either of them better in terms of performance?

If I go with option 2,is there anything else the default
init_geoinfo_params() does besides setting the matrix and a default
material? In other words, what should I be taking care of if I implement my
own init_geoinfo_params()?

Is there a better way to go about this altogether?

Thanks,
Ivan
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to