Re: [Maya2osg-users] Transform nodes
Status: Alpha
Brought to you by:
jtaibo
From: Javier T. <jav...@gm...> - 2011-06-29 20:56:04
|
Hi J-S, Sorry for the delay. As always a bit short of time. You're right. There are no groups in Maya, only transforms. Actually, every node you create in Maya has a transform attached (they call them "transform" and "shape"). I see two alternatives that can be combined. First, as you say, tag the transforms we want to export as groups. It could be done from a shelf button that set a custom attribute checked by the exporter AND maybe locking the translate/rotate/scale attributes to avoid accidental modifications. It could also "freeze the transformation" if the matrix is not the identity. On the other hand, we could add an export option (in the geometry section) to export every transform with identity matrix as a group. The option could be called "static geometry" or "static model" or something like that. Just my two cents. Cheers! On Tue, Jun 28, 2011 at 3:20 AM, Jean-Sébastien Guay <jea...@cm...> wrote: > Hello all, > > I'm wondering about the export of transform nodes. Currently, if you use > "Group selected object(s)" in Maya, what you get is not a Group, but a > Transform. All the time. > > The problem is that Transforms are more costly in cull time than Groups. > So if what you really wanted is a Group, but you get a Transform, you > will pay a non-zero cost each frame even if the Transform's matrix never > changes. > > On the other hand, the obvious criterion that could be used to create a > Group instead of a Transform on export (the Transform's matrix is > identity) does not necessarily hold true. A modeler might have placed a > Transform at the origin, but wanted the program to find it and modify it > at runtime. The fact that its matrix is identity in Maya doesn't imply > that it will always stay identity. > > So, how could we "flag" Transforms that should become Groups on export? > Is there already such a thing in Maya? (I didn't see it, but perhaps > there is) If not, then we should probably add a button on the shelf that > creates a Transform but with a specific custom attribute that the plugin > will look for on export and use to determine that this Transform should > be exported as a Group. > > Do you have another, less messy, idea? Thanks in advance, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay jea...@cm... > http://www.cm-labs.com/ > http://whitestar02.dyndns-web.com/ > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users > -- Javier Taibo |