Sumeet002 / oglsuperbible5

Automatically exported from code.google.com/p/oglsuperbible5
0 stars 0 forks source link

Torus fails to display in sphere world 2,3 and 4 #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run any of those 3 demos on my laptop

What is the expected output? What do you see instead?
I expect to see a torus in the middle. I see no torus in the middle.

What version of the product are you using? On what operating system?
SVN revision 192. Ubuntu 11.04 "Natty" prerelease. My graphics card is an ATI 
Radeon 4225.

Please provide any additional information below.
If I swap the order that the sphere and torus are assigned, the torus displays. 
The original code is (There seems to be a mix of spaces and tabs used for 
indentation):
    // This makes a torus
    gltMakeTorus(torusBatch, 0.4f, 0.15f, 30, 30);

    // This make a sphere
    gltMakeSphere(sphereBatch, 0.1f, 26, 13);

The code that works for me is:
    // This make a sphere
    gltMakeSphere(sphereBatch, 0.1f, 26, 13);

    // This makes a torus
    gltMakeTorus(torusBatch, 0.4f, 0.15f, 30, 30);

I don't know if this is a problem with oglsuperbible, or a problem with my 
graphics card drivers. If the consensus is driver problems, I will report it 
elsewhere.

Original issue reported on code.google.com by CCouz...@gmail.com on 12 Apr 2011 at 3:45