[osg-users] Model texture is distorted in HUD Camera Group

2014-03-16 Thread Mike Raider
Hi Everyone, I have a very simple sphere model in 3ds and obj, the sphere works fine when I place it in the root group. When I add the same model group to a Camera group that is my game's HUD the model's texture is distorted. The sphere mesh is fine. This Camera group works fine for Text a

Re: [osg-users] Model texture is distorted in HUD Camera Group

2014-03-17 Thread Mike Raider
Thank you Robert, I found a problem with my Camera, I had it set for setProjectionMatrixAsOrtho2D which worked fine for text and simple 2d lines. Can you, or anyone, suggest a Camera ProjectionMatrix that would be best for both 2d text and also a mesh model? I am thinking that I may need 2 cam

[osg-users] OSG Linker Problem and 13.10

2014-08-09 Thread Mike Raider
Hi, Earlier this year I upgraded my linux from 12.4 to 13.10 and had problems related to a change in the toolchain and linker that caused me build problems. Instead of fixing the problem I reinstalled 12.4 and was very happy to have everything working again. This problem was described in deta

Re: [osg-users] OSG Linker Problem and 13.10

2014-08-23 Thread Mike Raider
Hi, Thank you Jan and Robert. I was able to install a clean version of Ubuntu 14.10 and had my OSG apps working without a problem very quickly. Seems very fast and solid. Thank you for responding to my earlier post. ... Thank you! Cheers, Mike -- Read this topic online here

[osg-users] Flight Sim Cockpit Frame

2015-02-14 Thread Mike Raider
Hi, There is an osg example, osgsimulation, that shows a plane flying above the earth. I am building a simple flight simulator and would like to put a cockpit frame around the view so it would look like the plane in osgsimulation is being followed by a 2nd plane. What is the best way to frame

[osg-users] Convert random points to a mesh

2015-04-29 Thread Mike Raider
Hi, I am collecting data of 500 points at a time and the x,y,z points are randomly distributed around the center. I would like to render this collection of points into a surface map using OpenSceneGraph. What is the best way to do this without reinventing the wheel? Thank you very much! Che

[osg-users] Replacement for

2012-04-28 Thread Mike Raider
Hi, I am porting a java3d flight simulator program to OSG and there is not a direct replacement for rotateToPoint within OSG. In Java3d my code is: Point3d intercept = new Point3d(xx_l,yy_l,zz_l); plane.rotateToPoint(startPt, intercept); I want the plane to rotate and point dir

[osg-users] HUD Text Background

2016-07-05 Thread Mike Raider
Hi, What is the best way to place a contrasting color background behind HUD text so that the text is always easy to read? I did not see anything in osgText to do this Also no examples that do this easily. Thank you, for your suggestions! Cheers, Mike -- Read this topic o

[osg-users] Mesh Functionality

2016-09-27 Thread Mike Raider
Hi, I am working with a mesh and would like to turn off color bleed from one face to the next face. I want each face to be a solid color. Sorry for the basic question... Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=6

Re: [osg-users] Mesh Functionality

2016-09-27 Thread Mike Raider
Hi Robert, Thank you, this changed my mesh and it looks much better. Now I can see that I am indexing through the mesh to set colors and only changing colors on half of the mesh face. The mesh face is a square and I am only setting the color on a triangle half of the square. How do I index th

Re: [osg-users] Mesh Functionality

2016-09-27 Thread Mike Raider
Hi, Thank you again, I am using a TRIANGLE_STRIP and BIND_PER_VERTEX. Then indexing through the array via simple initialization: for (int r = 0; r < ISLAND_LAND_DEPTH;r++) { (*terrain)[thisIndex][0] = column_x_loc;

[osg-users] TriangleStrip mesh is not smooth...

2018-06-03 Thread Mike Raider
Hi, I have a TriangleStrip mesh that I use for a simple data collection app to show data changes in real time. Most of the time the mesh looks very clean and smooth. However, sometimes the triangles look like spikes and not smooth. I do not understand why the mesh is broken by the spikes. C

Re: [osg-users] TriangleStrip mesh is not smooth...

2018-06-03 Thread Mike Raider
Hi, Thank you Robert... Here is how I create the mesh: float column_x_loc = -(LAND_WIDTH * LAND_TRIANGLE_WIDTH)/2; float column_z_loc = -(LAND_DEPTH * LAND_TRIANGLE_DEPTH)/2 float column_y_loc = DETAIL_TERRAIN_FLOOR; for (int c = 0;c < LAND_WIDTH;c++) {

Re: [osg-users] TriangleStrip mesh is not smooth...

2018-06-04 Thread Mike Raider
Hi, "it kinds seems like an odd thing that are doing, shifting and replacing rows for some reason is not normally how one manages terrain. Could you take a step back and explain what you are trying to achieve in your application w.r.t terrain" I am just starting to develop a 3D app my usual do

[osg-users] Color of shapes in HeightField

2019-08-30 Thread Mike Raider
Hi, I have a very simple grid of 1000x1000 using HeightField. The heights are constantly changing. Is there a way to change the color of a shape at row & col? My project seems too small to use osgTerrain. Thank you for helping with this simple question! Cheers, -- Read this