Hi David,
hi community,

thank you very much for the review of my code and your suggestions. 
Unfortunatley, I could not work on the problem in the last weeks, but today I 
finally could dig a little deeper. 

The problem that only the first PrimitiveSet of a Box with six planes is still 
not fixed, but I can provide more hints now that might help:

Firstly, I compiled your example, of which you say that it is showing all six 
planes of the cube on your PC. Whereas I see as in my code only the first plane 
(see screenshot). This might imply hardware/software problems, so here the 
config, that I am using:

Windows 7 x64
Intel Core 2 Duo E8400
Intel Series 4 Series Internal Chipset (Q45/Q43)
4 Gb RAM

So the first question is, if it really might be a problem of my config?

To be sure, that a correct scene graph is used, I saved it as osg-file, which 
can be found in the attatchment of this post. The result of showing this file 
with osgViewer is again, that only the first plane is drawn.

Finally, I familiarized myself with GLintercept and got a log file, which seems 
to be correct, from my (newbie) point of view:


Code:
glGenLists(1)=1 
glNewList(1,GL_COMPILE)
glEnableClientState(GL_VERTEX_ARRAY)
glVertexPointer(3,GL_FLOAT,0,14ECB9E0)
glDisableClientState(GL_NORMAL_ARRAY)
glDisableClientState(GL_COLOR_ARRAY)
glGetString(GL_VERSION)="2.1.0 - Build 8.15.10.205..." 
glDisableClientState(GL_SECONDARY_COLOR_ARRAY)
glGetString(GL_VERSION)="2.1.0 - Build 8.15.10.205..." 
glDisableClientState(GL_FOG_COORD_ARRAY)
glColor4fv([0.800000,0.800000,0.800000,1.000000])
glNormal3fv([-1.000000,0.000000,0.000000])
glDrawArrays(GL_TRIANGLE_STRIP,0,4)
glNormal3fv([0.000000,0.000000,1.000000])
glDrawArrays(GL_TRIANGLE_STRIP,4,4)
glNormal3fv([1.000000,0.000000,0.000000])
glDrawArrays(GL_TRIANGLE_STRIP,8,4)
glNormal3fv([0.000000,-1.000000,0.000000])
glDrawArrays(GL_TRIANGLE_STRIP,12,4)
glNormal3fv([0.000000,0.000000,-1.000000])
glDrawArrays(GL_TRIANGLE_STRIP,16,4)
glNormal3fv([0.000000,1.000000,0.000000])
glDrawArrays(GL_TRIANGLE_STRIP,20,4)
glEndList()
glCallList(1)



The only thing, I am not sure about is the memory address of the vertices. In 
the log the address 0x14ECB9E0 is mentioned whereas the debugger says that the 
first osg::Vec3 in my Vec3Array lies at 0x0bb91c78. What might be the reason 
for that?

I hope that this is sufficient information to get closer to the solution, 
otherwise let me know what might be helpful to known.

Thank you for your assitance!

Cheers,

Nicolas

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46636#46636



Attachment: CarModelBox.osg
Description: Binary data

<<attachment: CarModelBox False.PNG>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to