Re: [osg-users] problem with seams while drawing quads and quad strips

2012-06-08 Thread Michael Schanne
You're right, the normals were the problem. My mistake was using the QUAD_STRIPS and setting the normals for the shared vertices to the combined normals of the adjacent faces. I changed everything to QUADS and used the face's normal as each vertex's normal, and then it looked correct.

[osg-users] problem with seams while drawing quads and quad strips

2012-06-05 Thread Michael Schanne
Hi, I am trying to draw a shape that is basically a hollow box with a tick mark on one side extending into the center (screenshot attached). I attempted to do it by drawing QUAD_STRIPS for the outer and inner faces, and QUADS for the top and bottom faces. My problem is, seams are clearly

Re: [osg-users] problem with seams while drawing quads and quad strips

2012-06-05 Thread Sergey Polischuk
Hi, Michael Your normals is not correct. With that geometry you should have normals like (0,0,+\-1) for top-bottom, and (0,+\-1,0) with (+\-1,0,0) for sides, i dont get where you got those numbers for normals. Cheers, Sergey. 05.06.2012, 18:09, Michael Schanne michael.scha...@gmail.com: Hi,