Re: [osg-users] [osgPlugins] OSG Plugins

2010-11-25 Thread Alberto Luaces
"Samuel Grant" writes: > Hi, > > Ok, I have completely recompilied everything. Even downloaded the 'latest and > greatest'...or what I could find. > > I compiled libjpeg, libpng, zlib, etc. Then compilied GDAL, then OSG. > > Everything compiles fine. When I try to open a JPEG, I get one of two er

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Torben Dannhauer
Hi Robert, I think I know why the TerrainTechnique Prototype is not loaded: The ive loader loads the the tile and its terrainTechnique via TerrainTile::readTerrainTechnique(DataInputStream* in) in \OpenSceneGraph-2.9.10_x86\src\osgPlugins\ive\TerrainTile.cpp and ignores the terrainTechnique

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Robert Osfield
Hi Torben, Good detective work. The problem with the hardwired GeometryTechnique doesn't come from the .ive plugin, it's just doing what is stored. The problem comes from VPB hardwiring in the GeometryTechnique, something we need to look at changing. For pre-built databases future changes to VPB

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Torben Dannhauer
Hi Robert, > > For pre-built databases future changes to VPB will not help > Thats right, but does it make sense to correct VPB anyway for future DB builds? Some kind of option to tell VPB whether it should note a "use geometryTechnique" or "use terrainTechniquePrototype after loading"... I

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Robert Osfield
Hi Torben, On Thu, Nov 25, 2010 at 10:16 AM, Torben Dannhauer wrote: > Thats right, but does it make sense to correct VPB anyway for future DB > builds? Some kind of option to tell VPB whether it should note a "use > geometryTechnique" or "use terrainTechniquePrototype after loading"... I've r

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Torben Dannhauer
Hi Robert, > > I've removed the assignment of GeometryTechnique from VPB, but > unfortunately osgTerrain is adding back in the GeometryTechnique > automatically on the first traversal through the scene graph. > Is this removal already available in svn of VPB? I assume,with the re-adding of g

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Robert Osfield
Hi Torben, On Thu, Nov 25, 2010 at 11:13 AM, Torben Dannhauer wrote: > Is this removal already available in svn of VPB? No not yet, it's turned out to be a bit complicated any of the traversals of the scene graph prior to writing out has been invoking the automatic osgTerrain::TerraiTile::init(.

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Robert Osfield
Hi Torben et. al., I have now checked in my changes to VPB which ensure that it does assign a GeometryTechnique. I have tested the changes out by putting debugging into the .ive plugin and TerrainTile::init(..) and things look to be working correctly - no GeometryTechnique has been pre-assigned,

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Torben Dannhauer
Hi Robert, absolutely great! I'll finish work quite early today so I can go home and try VPB :) with the invoked custom terrainTechnique I can dive into it and learn how to use the terrainTechnique to fullfil my modification tasks :) [quote] I have also fixed VPB so that it writes out the exte

[osg-users] How can I set the projection matrix?

2010-11-25 Thread Duan Linghao
Hi, I'm learning Augmented Reality. How can I set the projection matrix, which has been calibarated by a real camera?Just as glloadmatrix(P)in openGL. Someone said to set intrinsic parameter by using setprojectionMatrix(K),to set extrinsic parameter by setviewMatrix(),is that correct? Thank you

[osg-users] How to set the Camera intrinsics parameter?

2010-11-25 Thread Duan Linghao
Hi, I'm a student learning AR.I have a Camera intrinsic parameter which is a 3*3matrix,such as fx 0 cx 0 fy cy 0 0 1 How can I set this parameter in osg?just as glloadMatrix(K) in openGL? Someone said to use setprojectionMatrix() but it takes a 4*4 matrix,is that right? Thank you! Cheers,

Re: [osg-users] osgSim::HeightAboveTerrain not returning any hits

2010-11-25 Thread Murray G. Gamble
Thanks, Shayne. It was the --geocentric flag missing from the osgdem that was messing everything up. Once this was fixed, I also had to correct the way that I was positioning the observer eyepoint to account for the geocentric nature of the terrain (I now use EllipsoidModel::computeLocalToWor

[osg-users] Problem with render to texture (RTT)

2010-11-25 Thread Thorsten Roth
Hi guys, I currently have a problem with a simple "experiment" with RTT. I am using osgviewerGLUT as a base for this. What I am trying is to render my scene view to a texture and display this afterwards. To achieve this, I first setup a camera which renders to the texture and then another one

[osg-users] Starting a car simulator/game

2010-11-25 Thread Louis Ixo
Hi, I would like to ask, if someone can point me to some tutorial that explains the correct and fastest way to create a car simulator graphics environment (= car model + track scenery). I'll use my own physics engine, but I don't have any idea about how to create the terrain and the car model.

Re: [osg-users] Dynamic Terrain

2010-11-25 Thread Torben Dannhauer
Hi Robert, This evening I played with the tileLoadcallback and it worked, it is called for every loaded tile as desired. I can apply custom terrain technique for every tile ( it's more performance consuming than I expected) I subclassed my customTerrainTechnique from geometryTechnique and overw

[osg-users] Compressed Sub Images

2010-11-25 Thread Luciano da Silva
Hi All, I'm trying to implement a kind of Sparce Virtual Texturing system. This requires me to have a large physical texture that has to have some of it's segments "replaced" according to the texture necessities of the current on-screen objects. I believe it to be something on the lines of glC

[osg-users] Using Geometry Shaders in OSG 2.9.9

2010-11-25 Thread Joel Graff
Hi, I've been developing an app in OpenSceneGraph to help me learn shaders. One component of that is to be able to visualize normals (surface, lighting, camera, etc.). I am attempting to implement geometry shaders to do this in GLSL 1.5 and OSG 2.9.9. At present, I've had success loading ver

Re: [osg-users] how to read back from the frame buffer

2010-11-25 Thread Sajjad
Hello forum I am trying not to distort the model and i think i am doing as you have suggested. But the scene is blank. The changes i made inside the createDistortionSubgraph() are follows: ///INSIDE THE hud SCOPE 1. i m declaring the screen aligne

Re: [osg-users] [build] How to properly use the OSG_GL3_AVAILABLE CMake option?

2010-11-25 Thread Peter Wrobrl
Hi, I am having exactly the same issues, please could you post your suggestion how to fix this ? Thank you! Cheers, ParticlePeter -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=34103#34103 ___ osg