Hi Jason,

 

I'm not sure what the problem would be, try running "osganimate -overlay"  and 
see if it works for you.  If it does, then there shouldn't be a problem with 
the code in osgspheresegment.  One thing I notice is that the code in 
osgspheresegment sets the tex env mode to DECAL, but I don't think this needs 
done as the OverlayNode does that for you already.  Try removing that line and 
seeing if it works for you.

 

Thanks,

 

Jason

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason
Sent: Monday, April 23, 2007 11:25 A
To: osg users
Subject: Re: [osg-users] Advice on laying gridlines on a terrain

 

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]> 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

         

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

         

        Good luck!

         

        Jason

         

         

        
________________________________


        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason
        Sent: Friday, April 20, 2007 10:36 A
        To: [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]
        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/

Reply via email to