I loaded an image as background and then I want to superimpose some particles that are generated in Cuda over this background. Imagine something like putting stars on a light blue sky. I am able to do it separately, that is, either see the background or see the particles but not both. If I put the background texture before of after the Cuda function in the display() method it makes no difference. Is this a texture conflict or something else? Is it possible that when I see the background, it’s actually a ‘frontground’ covering the particles?
Did you enable the Z test?
Particle write the depth? When you draw the background you are also wrinting some (random) depth?
nope, did not enable Z test. for the background would I be writing depth when I used gluLookAt ?
so do I need to enable it or to disable it?
now I see that my background uses gluLookAt(0,0,5,…) while the stars are using gluLookAt(0,0,50,…)
could this be the reason I can either see one or the other but not both ?
never mind, glBlend did the trick. cannot believe it was so easy