Hi Jason,

If you are using OSG 1.2 there is a bug with OverlayNodes when they are not set up to perform continuous updating that prevents the overlay from displaying. The overlay should show up if you add the following line to the code where the overlay node is set up:

   overlayNode->setContinuousUpdate(true);

This bug is fixed in SVN so you could also try updating the OverlayNode files.

Mike

Jason wrote:

Hi,

I tried out this example. I got it compiled, and removed the #if so it would force it to run using the createOverlay code. Forgive me if I am missing something, but I don't see any grid lines being rendered on the terrain. Does this particular example have a bug? I've tested this a few times and can verify that the overlay code is running but I just don't see the grid lines.

Thanks,

Jason

On 4/20/07, *Jason* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Jason,

    This looks very promising. Thanks for the tip.

    Jason

    On 4/20/07, *Jason Beverage* < [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Hi Jason,

        OverlayNode would definitely be of use to you here.  There
        used to be an example of exactly what you are trying to do in
the osgspheresegment example, but it is no longer in there. You can see it here though:

        
http://www.openscenegraph.org/viewcvs/examples/osgspheresegment/osgspheresegment.cpp?rev=1.18&view=markup
        
<http://www.openscenegraph.org/viewcvs/examples/osgspheresegment/osgspheresegment.cpp?rev=1.18&view=markup>

        Just do a search for createOverlay and you'll find it.

        Good luck!

        Jason

        ------------------------------------------------------------------------

        *From:* [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>
        [mailto:[EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>] *On Behalf Of
        *Jason
        *Sent:* Friday, April 20, 2007 10:36 A
        *To:* [email protected]
        <mailto:[email protected]>
        *Subject:* [osg-users] Advice on laying gridlines on a terrain

        Hi,

        I'm currently developing an application that loads in either
        an FLT or a TXP terrain. I'm interested in laying down grid
        lines where the spacing can be changed by the user. Maybe I'm
        overthinking this, but I'm looking for a way to basically lay
the gridlines down directly on the 3 dimensional terrain.
        Is there something in OSG that allows someone to lay a texture
        upon another texture or am I better off using shaders,
        or something else to achieve this effect?

        I've checked out various examples...would OverlayNode or
        TexGenNode be of any use to me?

        Thanks,

Jason

        _______________________________________________
        osg-users mailing list
        [email protected] <mailto:[email protected]>
        http://openscenegraph.net/mailman/listinfo/osg-users
        <http://openscenegraph.net/mailman/listinfo/osg-users>
        http://www.openscenegraph.org/



------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

--
CARIS
115 Waggoners Lane, Fredericton, New Brunswick, Canada, E3B 2L4
Tel: +1-506-458-8533  Fax: +1-506-459-3849
_________________________________________________________________________
New Viewer for 2D and 3D Data
Download your free copy of CARIS Easy View today!
www.caris.com/easyview _________________________________________________________________________

This email and any files transmitted with it are confidential and
intended only for the addressee(s). If you are not the intended
recipient(s) please notify us by email reply. You should not use,
disclose, distribute or copy this communication if received in error.

Any views or opinions expressed in this email are solely those of the
author and do not necessarily represent those of the company. No binding
contract will result from this email until such time as a written
document is signed on behalf of the company.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to