[osg-users] Smooth shading
Hello, I'm working on a project in which we need to output 3D objects constructed by the code. We generate vertices and then triangles. When the normal binding is per_primitive, every thing works fine. When it is per_vertex, either the osgProducer::Viewer crashes or the result is incorrect (badly shaded triangles). Here is the code: if(geo-getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE) { for(unsigned int i=0; imaxFaceId; i++) { unsigned int A = GetFaceVertex(i, 0); unsigned int B = GetFaceVertex(i, 1); unsigned int C = GetFaceVertex(i, 2); osg::Vec3f BA = vertices-at(A) - vertices-at(B); osg::Vec3f CB = vertices-at(B) - vertices-at(C); osg::Vec3f N = BA ^ CB; N.normalize(); normals-push_back(N); } } else if(geo-getNormalBinding() == osg::Geometry::BIND_PER_VERTEX) { for(unsigned int i=0; ivertices-getNumElements(); i++) normals-push_back(osg::Vec3f(0.0, 0.0, 0.0)); for(unsigned int i=0; imaxFaceId; i++) { unsigned int A = GetFaceVertex(i, 0); unsigned int B = GetFaceVertex(i, 1); unsigned int C = GetFaceVertex(i, 2); osg::Vec3f BA = vertices-at(A) - vertices-at(B); osg::Vec3f CB = vertices-at(B) - vertices-at(C); osg::Vec3f N = BA ^ CB; (*normals)[A] += N; (*normals)[B] += N; (*normals)[C] += N; } for(unsigned int i=0; inormals-getNumElements(); i++) normals-at(i).normalize(); } thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ode nodekit or the like
I have i vague memory of people working on integrating ode with osg. I'm currently developing sw in that area and could possibly contribute is some way, but wouldn't wanna step on toes or do work that is already done for that matter. LeandroMottaBarros' demo is nice and there are other examples of ode+osg projects. I was thinking that while doing integration of ode in osg nodes i might aswell make the extra effort and create a nodekit or plugin. Am I making any sense at all (OSG wise)? Does anyone have thoughts on how this should be done? Is there sw around that I can build on? Mattias ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ESRIShape error
I'm trying to load a simple .shp file using osgviewer and I'm getting a crash esrishape.cpp In the PolygonZ::PolygonZ(const PolygonZ p) constuctor p.mArray is NULL which causes the crash. Is this a bug? This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ESRIShape error
On 10/30/07, Karl Beal [EMAIL PROTECTED] wrote: I'm trying to load a simple .shp file using osgviewer and I'm getting a crash esrishape.cpp In the PolygonZ::PolygonZ(const PolygonZ p) constuctor p.mArray is NULL which causes the crash. Is this a bug? Yes a crash is very very likely to be a bug... Could you provide details about which version of the OSG your are using, what platform, and ideally a shape file that reproduces this problem so others can try to recreate it. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] State problem
Hi, I'm running osgviewer (2.0 and 2.2) with the attached OSG file. The file is composed of 4 drawables. Each drawable defines its own StateSet. The last drawable material is: Material { DataVariance UNSPECIFIED ColorMode OFF ambientColor 1 1 1 1 diffuseColor 1 0 0 1 specularColor 0 0 1 1 emissionColor 0 1 0 1 shininess 10 } But the emissive part is not taken into account. Curiously, the first frame is correct. The corresponding quad is yellow. In the other frames, the quad is red. If I remove one or more drawable, or if I change the order of the drawables in the file, the quad is correctly rendered. The bad image: What it should be (I've removed the first drawable): Please help !!! Group { DataVariance UNSPECIFIED name dummy:root nodeMask 0x cullingActive TRUE num_children 1 Geode { DataVariance UNSPECIFIED name dummy:geode nodeMask 0x1 cullingActive TRUE num_drawables 4 Geometry { DataVariance STATIC name dummy:geode:geom0 StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED name INH18L75.rgbvisible ColorMode AMBIENT_AND_DIFFUSE ambientColor 1 1 1 1 diffuseColor 1 1 1 1 specularColor 0 0 0 1 emissionColor 0 0 0 1 shininess 0 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawElementsUByte QUADS 4 { 0 1 2 3 } } VertexArray Vec3Array 4 { -30 -30 0 0 -30 0 0 0 0 -30 0 0 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 0 1 0 0 1 0 0 1 0 0 1 } } Geometry { DataVariance STATIC name dummy:geode:geom1 StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED name RAIL1.rgbvisible ColorMode AMBIENT_AND_DIFFUSE ambientColor 1 1 1 1 diffuseColor 1 1 1 1 specularColor 0 0 0 1 emissionColor 0 0 0 1 shininess 0 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawElementsUByte QUADS 4 { 0 1 2 3 } } VertexArray Vec3Array 4 { 0 -30 0 30 -30 0 30 0 0 0 0 0 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 0 1 0 0 1 0 0 1 0 0 1 } } Geometry { DataVariance STATIC name IMM:geode0::geom StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED ColorMode OFF ambientColor 1 1 1 1 diffuseColor 1 1 1 1 specularColor 0 0 0 1 emissionColor 0 0 0 1 shininess 0 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawArrays QUADS 0 4 } VertexArray Vec3Array 4 { -13.5 0 26 -6 0 26 -6 0 27 -13.5 0 27 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 -1 0 0 -1 0 0 -1 0 0 -1 0 } } Geometry { DataVariance STATIC name IMM:geode1:geom StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED ColorMode OFF ambientColor 1 1 1 1 diffuseColor 1 0 0 1 specularColor 0 0 1 1 emissionColor 0 1 0 1 shininess 10 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawArrays QUADS 0 4 } VertexArray Vec3Array 4 { -15 -15 3 15 -15 3 15 15 3 -15 15 3 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 0 1 0 0 1 0 0 1 0 0 1 } } } } ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ESRIShape error
I've attached the shapefile in question. I'm running on OpenSceneGraph-2.2.0 on Windows. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. buildings.shp Description: buildings.shp ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] State problem
HI Loinel, Where you have Matrial::ColorMode set to anything other than OFF you need to specify an ColorArray on the associted Drawable - this is missing, so the drawable is inheriting a random value for its colour. Robert On 10/30/07, Lionel Lagarde [EMAIL PROTECTED] wrote: Hi, I'm running osgviewer (2.0 and 2.2) with the attached OSG file. The file is composed of 4 drawables. Each drawable defines its own StateSet. The last drawable material is: Material { DataVariance UNSPECIFIED ColorMode OFF ambientColor 1 1 1 1 diffuseColor 1 0 0 1 specularColor 0 0 1 1 emissionColor 0 1 0 1 shininess 10 } But the emissive part is not taken into account. Curiously, the first frame is correct. The corresponding quad is yellow. In the other frames, the quad is red. If I remove one or more drawable, or if I change the order of the drawables in the file, the quad is correctly rendered. The bad image: What it should be (I've removed the first drawable): Please help !!! Group { DataVariance UNSPECIFIED name dummy:root nodeMask 0x cullingActive TRUE num_children 1 Geode { DataVariance UNSPECIFIED name dummy:geode nodeMask 0x1 cullingActive TRUE num_drawables 4 Geometry { DataVariance STATIC name dummy:geode:geom0 StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED name INH18L75.rgbvisible ColorMode AMBIENT_AND_DIFFUSE ambientColor 1 1 1 1 diffuseColor 1 1 1 1 specularColor 0 0 0 1 emissionColor 0 0 0 1 shininess 0 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawElementsUByte QUADS 4 { 0 1 2 3 } } VertexArray Vec3Array 4 { -30 -30 0 0 -30 0 0 0 0 -30 0 0 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 0 1 0 0 1 0 0 1 0 0 1 } } Geometry { DataVariance STATIC name dummy:geode:geom1 StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED name RAIL1.rgbvisible ColorMode AMBIENT_AND_DIFFUSE ambientColor 1 1 1 1 diffuseColor 1 1 1 1 specularColor 0 0 0 1 emissionColor 0 0 0 1 shininess 0 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawElementsUByte QUADS 4 { 0 1 2 3 } } VertexArray Vec3Array 4 { 0 -30 0 30 -30 0 30 0 0 0 0 0 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 0 1 0 0 1 0 0 1 0 0 1 } } Geometry { DataVariance STATIC name IMM:geode0::geom StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED ColorMode OFF ambientColor 1 1 1 1 diffuseColor 1 1 1 1 specularColor 0 0 0 1 emissionColor 0 0 0 1 shininess 0 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawArrays QUADS 0 4 } VertexArray Vec3Array 4 { -13.5 0 26 -6 0 26 -6 0 27 -13.5 0 27 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 -1 0 0 -1 0 0 -1 0 0 -1 0 } } Geometry { DataVariance STATIC name IMM:geode1:geom StateSet { DataVariance STATIC rendering_hint DEFAULT_BIN renderBinMode INHERIT GL_LIGHTING ON Material { DataVariance UNSPECIFIED ColorMode OFF ambientColor 1 1 1 1 diffuseColor 1 0 0 1 specularColor 0 0 1 1 emissionColor 0 1 0 1 shininess 10 } } useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawArrays QUADS 0 4 } VertexArray Vec3Array 4 { -15 -15 3 15 -15 3 15 15 3 -15 15 3 } NormalBinding PER_VERTEX NormalArray Vec3Array 4 { 0 0 1 0 0 1 0 0 1 0 0 1 } } } } ___ osg-users mailing list
Re: [osg-users] ESRIShape error
Hi Karl, Thanks for the file, I've tried it on my linux box on the SVN version (very close to 2.2) and it fails with a seg fault. I'm busy with other work right now so can't go investigating problems, but once I more available I'll have a look into it futhers. Others are welcome to dive in and provide a fix in the interim :-) Robert. On 10/30/07, Karl Beal [EMAIL PROTECTED] wrote: I've attached the shapefile in question. I'm running on OpenSceneGraph-2.2.0 on Windows. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ 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] ESRIShape error
Karl, I can't seem to open the file anywhere (OSG, GlobalMapper). Are you sure it is a valid non-corrupted Shapefile? Ciao, PdR Le 07-10-30 à 14:40, Robert Osfield a écrit : Hi Karl, Thanks for the file, I've tried it on my linux box on the SVN version (very close to 2.2) and it fails with a seg fault. I'm busy with other work right now so can't go investigating problems, but once I more available I'll have a look into it futhers. Others are welcome to dive in and provide a fix in the interim :-) Robert. On 10/30/07, Karl Beal [EMAIL PROTECTED] wrote: I've attached the shapefile in question. I'm running on OpenSceneGraph-2.2.0 on Windows. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ 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
[osg-users] StateSet::merge question
My co-worker Mario found this thread from July, and we have the same question that Paul did. http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/17046/fo cus=17087 Should StateSet::merge() support PROTECTED mode? It supports OVERRIDE on one stateset, but never checks the mode on the other. We don't mind submitting a patch for this, but want to check if we're missing something first. thanks, andy The MathWorks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ESRIShape error
Karl, File does not open with Arc Explorer either, so i guess its probably got issues. PhilT -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul de Repentigny Sent: 30 October 2007 18:52 To: OpenSceneGraph Users Subject: Re: [osg-users] ESRIShape error Karl, I can't seem to open the file anywhere (OSG, GlobalMapper). Are you sure it is a valid non-corrupted Shapefile? Ciao, PdR Le 07-10-30 à 14:40, Robert Osfield a écrit : Hi Karl, Thanks for the file, I've tried it on my linux box on the SVN version (very close to 2.2) and it fails with a seg fault. I'm busy with other work right now so can't go investigating problems, but once I more available I'll have a look into it futhers. Others are welcome to dive in and provide a fix in the interim :-) Robert. On 10/30/07, Karl Beal [EMAIL PROTECTED] wrote: I've attached the shapefile in question. I'm running on OpenSceneGraph-2.2.0 on Windows. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ESRIShape error
Karl, You need to attach the buildings.shx and buildings.dbf as well. A shapefile is invalid (and unloadable in most programs) without these. -gw On 10/30/07, Karl Beal [EMAIL PROTECTED] wrote: I've attached the shapefile in question. I'm running on OpenSceneGraph-2.2.0 on Windows. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ode nodekit or the like
Hi Mattias, there are apparently several projects, however very few take care of the newest developments in ODE. We have some code sitting around in our lab called (you guessed it) osgODE. It is particular focused on working together with osgART but also works with plain OSG. I have to pull some strings here in the lab to check if we can release it into the wild. However, a word of caution: after implementing the ODE part we were quite disappointed by the performance of it in terms of dynamic transformations as they happen in Augmented Reality applications. We did some proof-of-concept prototypes with other engines which both performed way better. /Hartmut -- Dr. Hartmut Seichter PhD (HKU), Dipl.-Ing. (BUW) Post-Doctoral Fellow, HIT Lab NZ +64 3 364 2987 Ext. 3143 http://www.hitlabnz.org/people/hse25 Mattias Helsing wrote: I have i vague memory of people working on integrating ode with osg. I'm currently developing sw in that area and could possibly contribute is some way, but wouldn't wanna step on toes or do work that is already done for that matter. LeandroMottaBarros' demo is nice and there are other examples of ode+osg projects. I was thinking that while doing integration of ode in osg nodes i might aswell make the extra effort and create a nodekit or plugin. Am I making any sense at all (OSG wise)? Does anyone have thoughts on how this should be done? Is there sw around that I can build on? Mattias ___ 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] translate transformation on projection matrices
Hi Guys I am not getting the concept of translate transformation on projection matrix. When we add the slave camera in viewer we have to give projection offset. In osgcamera example the projection offset is given translate transformation matrix. what it exactly does. is it translating camera position or rotating the camera? Thanks Santosh ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ESRIShape error
I've located the .shx and .dbf files. How do I go about attaching them? Is that done in one of the Arc programs? This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ESRIShape error
Hi Karl, My apologies; I meant attach them to an osg-users posting so that we can test the shapefile :) -gw On 10/30/07, Karl Beal [EMAIL PROTECTED] wrote: I've located the .shx and .dbf files. How do I go about attaching them? Is that done in one of the Arc programs? This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ESRIShape error
I can load the file just fine using my Shapefile plugin btw. The points are in a local coordinate system. See attached pic. On Oct 30, 2007 1:05 PM, Karl Beal [EMAIL PROTECTED] wrote: I've attached the shapefile in question. I'm running on OpenSceneGraph-2.2.0 on Windows. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org attachment: shp1.jpg___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] translate transformation on projection matrices
This is just standard multi-camera view tiling as has been done in OpenGL for years. In a two-camera configuration, for example, you usually want the left camera to show you the left part of the view, and the right camera to show you the right part of the view. You do this by multiplying a translation into the projection matrix. If you didn't multiply this translation into the projection matrix, then all cameras would render the same eye space, and you'd get the same image from all cameras. If you tried to do this by modifying the modelview matrix instead of the projection matrix, the images wouldn't tile seamlessly. -Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of santosh Sent: Tuesday, October 30, 2007 2:42 PM Hi Guys I am not getting the concept of translate transformation on projection matrix. When we add the slave camera in viewer we have to give projection offset. In osgcamera example the projection offset is given translate transformation matrix. what it exactly does. is it translating camera position or rotating the camera? Thanks Santosh ___ 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
[osg-users] Fast oaths
In Geometry::computeFastPathsUsed(), if the env var OSG_DISABLE_FAST_PATH_IN_DISPLAY_LISTS is set, _fastPath is set to false and the function returns wuthout affecting the value of _supportsVertexBufferObjects. However, if that env var is not set, then the method examines several criteria and sets both _fastPath and _supportsVertexBufferObjects to the same value. Is there a reason why OSG_DISABLE_FAST_PATH_IN_DISPLAY_LISTS doesn't affect the value of _supportsVertexBufferObjects? 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