leeor_net
10-03-2011, 07:15 AM
This seems to be another cross-platform and cross-hardware issue and I just can't work it out. I'm sure I'm doing something wrong... but here goes.
I'm rendering a series of cubes to the screen. In order to do mouse picking, I'm doing a 'mouse pass' that renders each cube in a unique color. I compare that color to a list of objects and that's how I can determine which object I've selected. It works very well on my Windows 7 machine with an nVidia GPU.
And then there's the Mac. And the Laptop.
The Mac is running on nVidia hardware. The Laptop is running on ATI hardware.
When I modify my background clear color to something non-white, I can see the geometry but it's being rendered in all black. If I modify the code so that I'm specifying white, the geometry is still being rendered in only black. Texturing, blending and lighting are all disabled, and the shade model is GL_FLAT.
Now, when I go to render the geometry with lighting and texturing, there is no problem at all. Everything is rendered exactly as expected on all three machines.
What should I be looking for that would cause flat shading with solid coloration to not work properly on different machines? I've looked around on google and even searched these forums but haven't come up with anything relevant.
I'm rendering a series of cubes to the screen. In order to do mouse picking, I'm doing a 'mouse pass' that renders each cube in a unique color. I compare that color to a list of objects and that's how I can determine which object I've selected. It works very well on my Windows 7 machine with an nVidia GPU.
And then there's the Mac. And the Laptop.
The Mac is running on nVidia hardware. The Laptop is running on ATI hardware.
When I modify my background clear color to something non-white, I can see the geometry but it's being rendered in all black. If I modify the code so that I'm specifying white, the geometry is still being rendered in only black. Texturing, blending and lighting are all disabled, and the shade model is GL_FLAT.
Now, when I go to render the geometry with lighting and texturing, there is no problem at all. Everything is rendered exactly as expected on all three machines.
What should I be looking for that would cause flat shading with solid coloration to not work properly on different machines? I've looked around on google and even searched these forums but haven't come up with anything relevant.