Re: [osg-users] osgExp 3ds max transforms
Hi guys, First of all, thank you very much for your replies! As Farshid said I was building my scene graph the wrong and I was applying the inverse transformation in a higher node, giving the impression it was ignored. Thank you! Cheers, Jorge -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60867#60867 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgExp 3ds max transforms
Hi Sonya, On 25 August 2014 20:24, Sonya Blade sonyablade2...@hotmail.com wrote: Hi Jorge, It can be a quite dumb suggestion, since other experts comment on the issue , but did you call the dirtyDisplayList after you performed all the transformations? Drawable::dirtyDisplayList() only forces a rebuild of drawables display list or vertex/element buffer objects, it won't affect transforms in any way. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgExp 3ds max transforms
Hi, I am willing to export a 3D model from 3ds studio max to .osg files. Then, in my OSG application I assemble the exported model into a MatrixTransform node and apply some transformation. Althought, no matter which transformation I apply (rotate, translate or scale), it takes no effect in the final image. I realized that in the .osg file all the MatrixTransform nodes have their DataVariance attribute set to STATIC, but I already hard-coded it to DYNAMIC, but their transformations are still having no effect. Am I exporting the model the wrong way, or is the problem in the OSG application side? Thank you! Cheers, Jorge -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60766#60766 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgExp 3ds max transforms
Hi, just a wild guess - could it be that the exported model itself contains a transformation node as a parent, possibly with an absolute reference frame? This can be checked by using osgconv and converting your model to ASCII .osg format. Christian 2014-08-25 16:41 GMT+02:00 Jorge D'Alpuim jorgealp...@gmail.com: Hi, I am willing to export a 3D model from 3ds studio max to .osg files. Then, in my OSG application I assemble the exported model into a MatrixTransform node and apply some transformation. Althought, no matter which transformation I apply (rotate, translate or scale), it takes no effect in the final image. I realized that in the .osg file all the MatrixTransform nodes have their DataVariance attribute set to STATIC, but I already hard-coded it to DYNAMIC, but their transformations are still having no effect. Am I exporting the model the wrong way, or is the problem in the OSG application side? Thank you! Cheers, Jorge -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60766#60766 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgExp 3ds max transforms
Hi Jorge, Can you provide the code you are using to load the model and place it under the MatrixTransform? I don't know what could cause this issue other than the scene graph not being setup properly. Christian mentioned it could be caused by a parent with an absolute reference frame. The exporter does not change the reference frame of any transforms, so maybe you are changing the reference frame in your code? Either way, seeing some code would help a lot. Cheers, Farshid On Mon, Aug 25, 2014 at 7:41 AM, Jorge D'Alpuim jorgealp...@gmail.com wrote: Hi, I am willing to export a 3D model from 3ds studio max to .osg files. Then, in my OSG application I assemble the exported model into a MatrixTransform node and apply some transformation. Althought, no matter which transformation I apply (rotate, translate or scale), it takes no effect in the final image. I realized that in the .osg file all the MatrixTransform nodes have their DataVariance attribute set to STATIC, but I already hard-coded it to DYNAMIC, but their transformations are still having no effect. Am I exporting the model the wrong way, or is the problem in the OSG application side? Thank you! Cheers, Jorge -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60766#60766 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgExp 3ds max transforms
Hi Jorge, It can be a quite dumb suggestion, since other experts comment on the issue , but did you call the dirtyDisplayList after you performed all the transformations? Regards, Date: Mon, 25 Aug 2014 09:41:53 -0700 From: fla...@gmail.com To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] osgExp 3ds max transforms Hi Jorge, Can you provide the code you are using to load the model and place it under the MatrixTransform? I don't know what could cause this issue other than the scene graph not being setup properly. Christian mentioned it could be caused by a parent with an absolute reference frame. The exporter does not change the reference frame of any transforms, so maybe you are changing the reference frame in your code? Either way, seeing some code would help a lot. Cheers,Farshid On Mon, Aug 25, 2014 at 7:41 AM, Jorge D'Alpuim jorgealp...@gmail.com wrote: Hi, I am willing to export a 3D model from 3ds studio max to .osg files. Then, in my OSG application I assemble the exported model into a MatrixTransform node and apply some transformation. Althought, no matter which transformation I apply (rotate, translate or scale), it takes no effect in the final image. I realized that in the .osg file all the MatrixTransform nodes have their DataVariance attribute set to STATIC, but I already hard-coded it to DYNAMIC, but their transformations are still having no effect. Am I exporting the model the wrong way, or is the problem in the OSG application side? Thank you! Cheers, Jorge -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60766#60766 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org