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 keltie edu 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