Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-25 Thread David Glenn
Thanks aftacer! There is a lot to learn about this stuff that takes time to learn. I have to admit that I'm learning too. But that's why I do this stuff. The best way I've found to learn this stuff is to get the into book (is free), learn as much from the examples at code as you can. If all

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-23 Thread Greg Myers
Hi David, First off, let me say that I'm a complete rookie when it comes to OSG but I was experiencing ( as far as I can tell by your post ) the same exact thing quite some time ago. I resolved my problem with some help from people on this list so the least I can do is provide you with that

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-20 Thread David Glenn
Greetings All! I'm going to try testing this problem on a simplified model. Basically, I have this shell I built to test my experiments in IK dynamics using OSG. I can also use it to test this problem. FYI: I'm bringing this basic model with me to SIGGRAPH next week to possibly demo. So,

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-16 Thread Robert Osfield
Hi David, As you seem to resolved the issue I'll not dive in too much further, but the following comment from jumps out as needing a reply: On Wed, Jul 14, 2010 at 11:37 PM, David Glenn david.e.glenn@navy.mil wrote: Oh Yea, I forgot to add that I use two views, one for the terrain (the

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-16 Thread David Glenn
Hi Robert, The reason that I did this, was basically to echo the performer version of the viewer that this will replace - I used the osghud example as a guide. In the old performer code, they used multiple views because in some cases the data would be so bad that plains would fly through the

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-15 Thread Jean-Sébastien Guay
Hi David, Tom, Are you enabling transparency? - for example by: Code: osg::StateSet* state = node-getOrCreateStateSet(); state-setRenderingHint( osg::StateSet::TRANSPARENT_BIN ); state-setMode( GL_DEPTH_TEST, osg::StateAttribute::ON ); That last one should probably have been:

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-15 Thread Tom Pearce
Skylark wrote: That last one should probably have been: state-setMode( GL_BLEND, osg::StateAttribute::ON ); Aye, that's what I meant. I just copied/pasted the wrong line of code. Thanks for pointing that out J-S. I always turn on GL_DEPTH_TEST anyway to be safe, even though on is the

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-15 Thread David Glenn
Yea That was it! Now if I can only fix my original problem, but that I figured there was a quick answer for! Makes me wonder what other GL settings I need to activate that I forgot! Humm!! :? Thanks! D Glenn D Glenn (a.k.a David Glenn) - Join the Navy and See the

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-15 Thread David Glenn
FYI Figured out how to build a phatom globe to hide objects after it gos behind the earths horizon. Now I can pan across the earth and my layered objects disapear behind the earth as it should. check out: http://forum.openscenegraph.org/viewtopic.php?t=6188 Thanks to Simon Julier and Farshid

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-14 Thread David Glenn
Yea maybe I should have put more of the code up so you can get a better view of the whole thing. The issue is posting code on a public site like this requires approval from my boss (the Navy) - even though it's unclassified info, getting approval to show it can be a pain sometimes!

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-14 Thread David Glenn
Hi, One other thing while I'm at it! When I set the drawing color on a Geometry lets say: I have a color Code: osg::Vec4d color = osg::Vec4d(1.0f,0.0f,0.0f,0.5f); I set the color of the used in the Geometry. For intance, I have a Geometry called myCircle, when I set myCircle color, I use

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-14 Thread Tom Pearce
dglenn wrote: So, I have color, but is there anything I need to set to get the alpha chenal to work? In this example I have alpha set to 0.5f but I don't see what I drawing fading half away! Are you enabling transparency? - for example by: Code: osg::StateSet* state =

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-13 Thread Robert Osfield
Hi David, There could be couple of reasons, but I can't work out from your post exactly what is not working and where so I'll provide some general suggestions as to what might be wrong, but given I don't know what the actual problem is I can't provide any suggestions as to how one might fix it.

Re: [osg-users] My Lines Disapering but Ploygons don't

2010-07-13 Thread J.P. Delport
Hi, things you could try or check: * is the bounding sphere OK? * turn on/off displaylists and call -dirty() * make near/far use primitives, like so: viewer.getCamera()-setComputeNearFarMode(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES); viewer.getCamera()-setNearFarRatio(1e-6); jp

[osg-users] My Lines Disapering but Ploygons don't

2010-07-12 Thread David Glenn
Greetings All! I hate to come up with another stupid one, but I've been banging my head with this one! One of the displays I doing has an ellipsoid globe appearing and above that, I have some Overlay lines (what we call MOA lines) or marker lines. I have them drawn above the globe and from a