Re: [osg-users] osg clearnode

2008-01-31 Thread Vincent
] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Northcott Sent: Thursday, January 31, 2008 12:04 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osg clearnode Hi Vincent, I used to use a clearnode a while back.. All I do now with my mixed OpenGL and OSG is the following at setup.. All I do

Re: [osg-users] osg clearnode

2008-01-31 Thread Stephen Northcott
:[EMAIL PROTECTED] On Behalf Of Stephen Northcott Sent: Thursday, January 31, 2008 12:04 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osg clearnode Hi Vincent, I used to use a clearnode a while back.. All I do now with my mixed OpenGL and OSG is the following at setup.. All I

Re: [osg-users] osg clearnode

2008-01-31 Thread Dunhour, Mike (CIV)
Hello Still trying to get a shader program running in an .osg mesh file Doing the Program { Shader{ Type FRAGMENT Code { void main (void); { gl_FragColor = vec4 (1.0, 0.0, 0.0, 1.0); } Trying to get shader code to be called from file replacing code with File

[osg-users] osg clearnode

2008-01-30 Thread Vincent
I thought I was able to do this years ago and had it work alright, so I think I'm forgetting something...hopefully someone can help. I need to have my clearcolor and clear masks set outside of osg glClear(...). If I set OSG;s viewport smaller than my main viewport, I can still see my scene

Re: [osg-users] osg clearnode

2008-01-30 Thread Stephen Northcott
Hi Vincent, I used to use a clearnode a while back.. All I do now with my mixed OpenGL and OSG is the following at setup.. All I do is the following.. sceneViewer-getCamera()-setClearMask(0); You can put various GL_DEPTH_BUFFER_BIT, and colour buffer bits and so on in the setClearMask to get