Re: [osg-users] FOV
Hi, @ thanks for suggestion em able 2 creae black screen now :| Also i trued to draw come reticules on created black screen using GL functions but the colur of the drawn reticule is alwayz black no matter wat color i set .. Is any default flightgear properties affecting this drawn reticule .. em calling this reticules instead of FG HUD ... Thank you! Cheers, Shaheed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45197#45197 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FOV
On Thu, Feb 2, 2012 at 11:48 AM, Shaheed Khan shahee...@gmail.com wrote: @ thanks for suggestion em able 2 creae black screen now :| Also i trued to draw come reticules on created black screen using GL functions but the colur of the drawn reticule is alwayz black no matter wat color i set .. Is any default flightgear properties affecting this drawn reticule .. em calling this reticules instead of FG HUD It is possible that your material settings aren't right, or that your lighting is affecting the color you get. Try turning off lighting for your stateset. I know English may not be your primary language, but your language and writing style make it very difficult to read and understand your message. Thank you! Cheers, Shaheed -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FOV
Hi, em using Flight gear 1.9.0 with osg 2.8.0 The terrain and sky is generated in the window using 2 cameras far and near i tried 2 set window color to black using Osg - setColor(osg::Vec4(0.0f, 0.0f, 0.0f, 1.0f)) and even tried with glut - glclearColor(0.0f, 0.0f, 0.0f, 1.0f) but only sky color is set 2 black and terrain and object and still present how can i remove terrain or set it to black .. @cris i tried to set the Nodemask to 0 but code doesn't come out of idle function ... ie window is not loaded :( ... Thank you! Cheers, Shaheed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45152#45152 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FOV
Hi, Thanks chris .. em able to zoom using getProjectionMatrixAsPerspective and setProjectionMatrixAsPerspective fuctions Actually em trying this view for LDP instead of Aircraft and i want to make my view as entire black screen (instead of Runway) during initialization until i select some modes Wat parameters in which function should i set to get black screen Any suggestion plz share :| ... Thank you! Cheers, Shaheed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45127#45127 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FOV
On 1/30/2012 12:25 PM, Shaheed Khan wrote: Actually em trying this view for LDP instead of Aircraft and i want to make my view as entire black screen (instead of Runway) during initialization until i select some modes Wat parameters in which function should i set to get black screen You could probably set the clear color to black and just set the Nodemask of your top-level node to 0. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FOV
Hi, @Bryan Thrall thanks for moving the thread in correct place :) Actually i want to alwayz focus (zoom) on the building near runway while flying so which Osg camera functions can i use to do so and wat parameters should i pass .. [Image: http://i44.tinypic.com/2qnruhd.jpg ] any suggestion plz share :| ... Thank you! Cheers, Shaheed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44964#44964 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FOV
On 1/22/2012 11:34 AM, Shaheed Khan wrote: Actually i want to alwayz focus (zoom) on the building near runway while flying so which Osg camera functions can i use to do so and wat parameters should i pass .. Well, if you do getProjectionMatrixAsPerspective: http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00073.html#0d5e678648b19df3b64dec0d06fef974 and then alter the fovy and resubmit it with setProjectionMatrixAsPerspective: http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00073.html#fe4fab17f1cc5b4664c17ed79717aabb This will keep all the same view, except alter the change the zoom (field of view). -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org