Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Florian Kolbe
Ok, so I found this: http://www.openscenegraph.org/projects/osg/wiki/Support/OpenGL2OSGLookup So I am now doing this: Code: osg::ref_ptrosg::LightModel lightModel = new osg::LightModel; // http://www.glprogramming.com/red/chapter05.html // OpenGL reverses the surface normals for back-facing

Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Florian Kolbe
@cbuchner1 Hmm, well I bet a lot of software relies on that feature... By the way I am using NVIDIA GeForce GTX 550 Ti and it works here. When I tried two sided lighting yesterday, I found that the back faces were lit, but not in the same way as the front faces. Well what I did was to make

Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Christian Buchner
@cbuchner1 Hmm, well I bet a lot of software relies on that feature... I found threads by the Blender team who had to create workarounds because on some newer Geforce cards (4xx and 5xx series) suddenly the viewport update were orders of magnitude slower.

Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Paul Martz
On Thu, Mar 14, 2013 at 3:43 AM, Christian Buchner christian.buch...@gmail.com wrote: When I tried two sided lighting yesterday, I found that the back faces were lit, but not in the same way as the front faces. Are your front and back material colors set to the same values, or to different

Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Christian Buchner
The front and back material properties were set to same values, it's just that when doing the calculations for the back side, the normal vector is not pointing towards the light source but away from it. I only looked at this issue briefly, and concluded that it would take some GLSL to fix it.

Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christian Buchner Sent: Thursday, March 14, 2013 10:46 AM To: OpenSceneGraph Users Subject: Re: [osg-users] [forum] Rendering backface like front face The front and back material properties were set to same values, it's just

Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Paul Martz
...). -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christian Buchner Sent: Thursday, March 14, 2013 10:46 AM To: OpenSceneGraph Users Subject: Re: [osg-users] [forum] Rendering backface like front face

Re: [osg-users] [forum] Rendering backface like front face

2013-03-14 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
To: OpenSceneGraph Users Subject: Re: [osg-users] [forum] Rendering backface like front face There are a couple different scenarios. If a surface is composed of triangles that all have a normal consistent with the winding order, but some of the triangles are facing the wrong way, then two-sided lighting

[osg-users] [forum] Rendering backface like front face

2013-03-13 Thread Florian Kolbe
Hi, sorry if this may be too obvious. I was wondering if there is some kind of backface mode where backfaces are rendered like the front face? We have a model here that looks normal in Rhino and SimLab Composer because they seem to be able to render that way (backface like front face) - see

Re: [osg-users] [forum] Rendering backface like front face

2013-03-13 Thread Paul Martz
Did you try turning on 2-sided lighting? On Wed, Mar 13, 2013 at 11:47 AM, Florian Kolbe florian.ko...@in-gmbh.dewrote: Hi, sorry if this may be too obvious. I was wondering if there is some kind of backface mode where backfaces are rendered like the front face? We have a model here