Re: [osg-users] OpenFlight cow for Christmas
Hi Gordon, Paul, This was a heartening thread as it prompted me to get back and try yet again to get reflection mapped objects in Creator appearing that way in OSG. I understand the modelling side of multitexturing in Creator (I hope) but could never see the results in OSG based viewers when loaded as flt or saved and loaded as osg/ive formats. The OSGExp project was such a watershed in that department. Having a read of the cow.osg sample data I see that there are consistently missing attributes when exporting from openflight. I get results similar to what I see in the Creator window when I add to my destined environment/reflection map TextureUnit[n]: GL_TEXTURE_GEN_S ON GL_TEXTURE_GEN_T ON and a: TexGen { DataVariance STATIC mode REFLECTION_MAP //or SPHERE_MAP } For reference, OSGExp, when exporting a reflection mapped object, appears to include amongst many other things (perhaps just for good measure?): GL_TEXTURE_GEN_S ON GL_TEXTURE_GEN_T ON GL_TEXTURE_GEN_R ON GL_TEXTURE_GEN_Q ON TexGen { mode SPHERE_MAP } Would this be an OpenFlight loader issue that is under consideration with read/write and OpenFlight? I also notice that when writing osg files that my texture attributes (min/mag filters) are largely ignored and appear to be respected when writing ive files. (Using release ver. 2.2.0) Cheers Garry Hi Paul Depends on what you mean by Sphere mapping :) OpenFlight and Creator support Spherical, Radial and Environment texture mapping among the normal texture methods in this case I think you mean(maybe) what Creator calls Environment mapping This is done in Creator very easily, through the texture tool box, select geom., select texture, in the case of Environment select the tool and your done and this can be seen in Creator ( Unlike the old days of Multigen II, we used the special 1/2 field to mark group/objects to be mapped nice shine environment, for metal, glass etc ), These methods when used add an entry to the Texture Mapping Palette with there type set to Spherical, Radial and Environment, so this should not be too hard to add (hopefully) __ Gordon Tomlinson Here's a Christmas gift -- the OSG cow converted to OpenFlight. This was created using the new OSG OpenFlight export plugin, which is currently in development and should be ready for some beta testing in the February/March timeframe. Caveats: * To view this in OSG, use the SVN head. (This model requires Continuation record support, which wasn't in OSG v2.2.) * There is no sphere mapping equivalent in OpenFlight (if I'm wrong, please correct me) so you really don't want texture mapping. To disable texture mapping in osgviewer, hit the 't' key. You should see a lit white cow. Nonetheless, it's the cow converted to OpenFlight! Which is pretty cool. Thanks to Bob Kuehne and Dave Wolfe for their help on this project so far (and also to our client funding the project, who wishes to remain anonymous). Paul Martz -- Garry Keltie garry.@rmit. .au keltieedu VR Centre - Research Innovation RMIT University / ... .. - / .- .--. .--. . -. . -.. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OpenFlight cow for Christmas
I looked at adding support for the texture Mapping palette in my OpenFlight exporter, but saw that it is not currently supported in the extant importer. This is, no doubt, why your reflection-mapped Creator models don't render correctly in OSG. I don't have funding to support the Texture Mapping Palette in the importer, and will need to touch base with my client to see what kind of priority they have for reflection-mapped models. -Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Garry Keltie Sent: Wednesday, January 16, 2008 7:24 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] OpenFlight cow for Christmas Hi Gordon, Paul, This was a heartening thread as it prompted me to get back and try yet again to get reflection mapped objects in Creator appearing that way in OSG. I understand the modelling side of multitexturing in Creator (I hope) but could never see the results in OSG based viewers when loaded as flt or saved and loaded as osg/ive formats. The OSGExp project was such a watershed in that department. Having a read of the cow.osg sample data I see that there are consistently missing attributes when exporting from openflight. I get results similar to what I see in the Creator window when I add to my destined environment/reflection map TextureUnit[n]: GL_TEXTURE_GEN_S ON GL_TEXTURE_GEN_T ON and a: TexGen { DataVariance STATIC mode REFLECTION_MAP //or SPHERE_MAP } For reference, OSGExp, when exporting a reflection mapped object, appears to include amongst many other things (perhaps just for good measure?): GL_TEXTURE_GEN_S ON GL_TEXTURE_GEN_T ON GL_TEXTURE_GEN_R ON GL_TEXTURE_GEN_Q ON TexGen { mode SPHERE_MAP } Would this be an OpenFlight loader issue that is under consideration with read/write and OpenFlight? I also notice that when writing osg files that my texture attributes (min/mag filters) are largely ignored and appear to be respected when writing ive files. (Using release ver. 2.2.0) Cheers Garry Hi Paul Depends on what you mean by Sphere mapping :) OpenFlight and Creator support Spherical, Radial and Environment texture mapping among the normal texture methods in this case I think you mean(maybe) what Creator calls Environment mapping This is done in Creator very easily, through the texture tool box, select geom., select texture, in the case of Environment select the tool and your done and this can be seen in Creator ( Unlike the old days of Multigen II, we used the special 1/2 field to mark group/objects to be mapped nice shine environment, for metal, glass etc ), These methods when used add an entry to the Texture Mapping Palette with there type set to Spherical, Radial and Environment, so this should not be too hard to add (hopefully) __ Gordon Tomlinson Here's a Christmas gift -- the OSG cow converted to OpenFlight. This was created using the new OSG OpenFlight export plugin, which is currently in development and should be ready for some beta testing in the February/March timeframe. Caveats: * To view this in OSG, use the SVN head. (This model requires Continuation record support, which wasn't in OSG v2.2.) * There is no sphere mapping equivalent in OpenFlight (if I'm wrong, please correct me) so you really don't want texture mapping. To disable texture mapping in osgviewer, hit the 't' key. You should see a lit white cow. Nonetheless, it's the cow converted to OpenFlight! Which is pretty cool. Thanks to Bob Kuehne and Dave Wolfe for their help on this project so far (and also to our client funding the project, who wishes to remain anonymous). Paul Martz -- Garry Keltie garry.@rmit. .au keltieedu VR Centre - Research Innovation RMIT University / ... .. - / .- .--. .--. . -. . -.. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce negraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OpenFlight cow for Christmas
Thanks, Gordon -- I missed that the Texture Mapping Palette could be used to support this feature of OSG/OpenGL. I'll have to add support for that palette. -Paul _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Tomlinson Sent: Tuesday, December 25, 2007 1:49 PM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] OpenFlight cow for Christmas Hi Paul Depends on what you mean by Sphere mapping :) OpenFlight and Creator support Spherical, Radial and Environment texture mapping among the normal texture methods in this case I think you mean(maybe) what Creator calls Environment mapping This is done in Creator very easily, through the texture tool box, select geom., select texture, in the case of Environment select the tool and your done and this can be seen in Creator ( Unlike the old days of Multigen II, we used the special 1/2 field to mark group/objects to be mapped nice shine environment, for metal, glass etc ), These methods when used add an entry to the Texture Mapping Palette with there type set to Spherical, Radial and Environment, so this should not be too hard to add (hopefully) __ Gordon Tomlinson Email : [EMAIL PROTECTED] Website : www.vis-sim.com www.gordontomlinson.com __ Self defence is not a function of learning tricks but is a function of how quickly and intensely one can arouse one's instinct for survival -Master Tambo Tetsura _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Martz Sent: 24 December 2007 22:36 To: 'OpenSceneGraph Users' Subject: [osg-users] OpenFlight cow for Christmas Here's a Christmas gift -- the OSG cow converted to OpenFlight. This was created using the new OSG OpenFlight export plugin, which is currently in development and should be ready for some beta testing in the February/March timeframe. Caveats: * To view this in OSG, use the SVN head. (This model requires Continuation record support, which wasn't in OSG v2.2.) * There is no sphere mapping equivalent in OpenFlight (if I'm wrong, please correct me) so you really don't want texture mapping. To disable texture mapping in osgviewer, hit the 't' key. You should see a lit white cow. Nonetheless, it's the cow converted to OpenFlight! Which is pretty cool. Thanks to Bob Kuehne and Dave Wolfe for their help on this project so far (and also to our client funding the project, who wishes to remain anonymous). Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com http://www.skew-matrix.com/ 303 859 9466 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OpenFlight cow for Christmas
Hi Paul Depends on what you mean by Sphere mapping :) OpenFlight and Creator support Spherical, Radial and Environment texture mapping among the normal texture methods in this case I think you mean(maybe) what Creator calls Environment mapping This is done in Creator very easily, through the texture tool box, select geom., select texture, in the case of Environment select the tool and your done and this can be seen in Creator ( Unlike the old days of Multigen II, we used the special 1/2 field to mark group/objects to be mapped nice shine environment, for metal, glass etc ), These methods when used add an entry to the Texture Mapping Palette with there type set to Spherical, Radial and Environment, so this should not be too hard to add (hopefully) __ Gordon Tomlinson Email : [EMAIL PROTECTED] Website : www.vis-sim.com www.gordontomlinson.com __ Self defence is not a function of learning tricks but is a function of how quickly and intensely one can arouse one's instinct for survival -Master Tambo Tetsura _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Martz Sent: 24 December 2007 22:36 To: 'OpenSceneGraph Users' Subject: [osg-users] OpenFlight cow for Christmas Here's a Christmas gift -- the OSG cow converted to OpenFlight. This was created using the new OSG OpenFlight export plugin, which is currently in development and should be ready for some beta testing in the February/March timeframe. Caveats: * To view this in OSG, use the SVN head. (This model requires Continuation record support, which wasn't in OSG v2.2.) * There is no sphere mapping equivalent in OpenFlight (if I'm wrong, please correct me) so you really don't want texture mapping. To disable texture mapping in osgviewer, hit the 't' key. You should see a lit white cow. Nonetheless, it's the cow converted to OpenFlight! Which is pretty cool. Thanks to Bob Kuehne and Dave Wolfe for their help on this project so far (and also to our client funding the project, who wishes to remain anonymous). Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com http://www.skew-matrix.com/ 303 859 9466 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org