Hej Lars, While looking at your proposed changes I had an idea of a simpler way to implement the replicate feature. The insertMatrixTransform(node,matrix) could be expanded with a parameter for the replicate count. The call to insertMatrixTransform(node,matrix,count) would have to be postponed until both records (transform, replicate) was parsed.
I you have a test model to share I could give it a try. Regards, Brede On Dec 21, 2007 5:09 PM, Lars Nilsson <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I have added some code to the OpenFlight plug-in. The purpose is to handle > replication. > > The attached files are based on SVN r7716. > > > > It is only tested against our own needs (lightpoints at airports), and it > works fine for us. > > > > However, I found some strange behavior when I tried to optimize the result > with options > > COPY_SHARED_NODES and FLATTEN_STATIC_TRANSFORMS. This will be described in > another submission from me. > > > > Regards, > > Lars Nilsson > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
