[osg-users] Images in skybox

2013-02-08 Thread Dan Marshal
Hi, I have downloaded some excellent skybox landscape images. If I load the images by a graphics package like GIMP they look great. If I use the images with OSG in my SkyBox for a game, the same images look washed out and low resolution. Any suggestions on how to get the best looking images

[osg-users] Extend a Line

2012-09-04 Thread Dan Marshal
Hi, I am making a very simple flight simulator and have a plane location and a second chase plane location I do not want the chase plane to get too close to the target plane. I also do not want it to get too far away from the target plane. How do I extend a line in 3D space? If I can

[osg-users] window-in-window terrain view

2012-08-19 Thread Dan Marshal
Hi, I am using OSG to create a simple flight sim app. I want to have a terrain 'window-in-window' to show the aircrafts path over the earth. The terrain view would have its own coordinates. Is there a simple way to create a view inside another view? Thank you! Cheers, Dan

[osg-users] How do I calcuate angles between two points?

2012-06-13 Thread dan marshal
Hi, My model is at point 2 and I want to rotate it to face Point 1. Point 1 = 30,30,30 Point 2 = 10, 10, 0 How can I calculate the respective angles between two locations? I am familiar with makeRotate and makeLookAt but need the respective angles... Thank you for help on this simple

[osg-users] ParticleSystesm's particles do not appear in front of skybox

2012-05-01 Thread dan marshal
Hi, I have implemented a very simple skybox with a basic flight sim model airplane. All was working fine. I have a ParticleSystem that looks like an afterburner exhaust working fine. However, the particles from the particlesystem cannot be seen when the skybox is in the background. If

[osg-users] OSG RotateToPoint

2012-04-27 Thread dan marshal
Hi, I am porting a java3d app to OSG and have to implement RotateToPoint. My model is an airplane and I have its location and the point I want to rotate to. Is there an OSG function similar to RotateToPoint? Have you seen a good example of this implementation? Thank you! Cheers,

[osg-users] Menus and Dialog Boxes

2011-11-18 Thread dan marshal
Hi, I did a search of this forum, and have not seen anything yet in osg docs to suggest how to add a basic menu or dialog box to an osg application. Short of trying to tie osg with qt does anyone have a simple way to open a file dialog, or simply to change settings? I would like to stay

[osg-users] Segmentation Fault with std::string

2011-11-13 Thread dan marshal
I am trying to update a osgText label object. After about 3000 updates I get a std::bad_alloc termination. I am converting a integer value that usually has only 6 or 7 characters in the string and I thought sprintf would be the fastest and easiest way to convert from int to std:string. What

[osg-users] Simulation Loop in osgWidget

2011-10-10 Thread dan marshal
Hi, I am using osgWidget to run osg inside a window frame. It works fine when I use viewer.home(); No problem. However, if I use: while(!viewer.done()) { viewer.frame(); } to get access to the simulation loop, the widget window is lost and osg is

Re: [osg-users] Simulation Loop in osgWidget

2011-10-10 Thread dan marshal
Very sorry! If I create a window using: osgViewer::Viewer viewer; osgWidget::WindowManager* wm = new osgWidget::WindowManager( viewer, WINDOW_WIDTH, WINDOW_HEIGHT, MASK_2D ); .. .viewer.home(); I get a viewer object inside a window. ===