Overlay with NVidia Tegra II GPU

Started by hayden621, January 13, 2012, 05:23:38 AM

Previous topic - Next topic

EgonOlsen

Cool. I've no idea what i might have changed to make this work, but if it works now, all is fine...

K24A3

Maybe the eclipse project just needed to be cleaned. Often happens to me when I can't figure out strange glitches and problems.

hayden621

Quote from: K24A3 on January 17, 2012, 08:38:29 AM
Maybe the eclipse project just needed to be cleaned. Often happens to me when I can't figure out strange glitches and problems.

Not likely, as this is the first thing I have done when I hit the issue.  ;)

hayden621

Quote from: EgonOlsen on January 16, 2012, 09:39:32 PM
Cool. I've no idea what i might have changed to make this work, but if it works now, all is fine...

Thanks so much for the update!

icarusfactor

I was trying the Overlay with the new 1.24 lib , My code works fine with the new code , but still cant get the Overlay functions to work, although they compile.  The examples that come with 1.24 lib do not have an example with Overlay in them. Does anyone have example code with Overlay working?

K24A3

I have it working on my Tegra2. Here's a snippet of my code:



    overlays[i] =  new Overlay(m_world, rcDest.left, rcDest.top, rcDest.right, rcDest.bottom, texture);
    overlays[i].setTransparency(50);
    overlays[i].setSourceCoordinates(rcSrc.left, rcSrc.top, rcSrc.right, rcSrc.bottom);
overlays[i].setDepth(-100);
    overlays[i].update(m_fb);



I've found that custom clipping plane values can cause overlays to disappear.
This works for me: world.setClippingPlanes(-1, 18000);
If I recall correctly, setting the far value to 20000 will make the overlays disappear.

EgonOlsen

#21
Quote from: K24A3 on January 25, 2012, 08:37:02 AM
I've found that custom clipping plane values can cause overlays to disappear.
This works for me: world.setClippingPlanes(-1, 18000);
If I recall correctly, setting the far value to 20000 will make the overlays disappear.
A depth of -100 for the overlay makes no sense. It will revert to 1 internally anyway. If you are having problems with overlays not being rendered when the far plane is too far away or with the accuracy of overlays in general, you should rather increase the depth to 10 or 100.

K24A3

Quote from: EgonOlsen on January 25, 2012, 09:36:38 AM
A depth of -100 for the overlay makes no sense. It will revert to 1 internally anyway. If you are having problem with overlays not being rendered when the far plane is too far away or with the accuracy of overlays in general, you should rather increase the depth to 10 or 100.

I'm pretty sure I tried that and it didn't work, but that was with an earlier version of jPCT. I'll try it again with 1.24 and see how that goes.