Re: [osg-users] VPB: creating flat earth DB with specified projection

2009-10-18 Thread Alejandro Aguilar Sierra
Perhaps not the best solution, but you could reproject your terrain data with gdaltranslate, before using osgdem. Regards. -- A. On Tue, Oct 13, 2009 at 8:26 AM, John Vidar Larring larr...@weatherone.tv wrote: Hi all, I'd like to create a flat VPB terrain with a specified projection and I a

[osg-users] osg::AnimationPathCallback Volocity

2009-10-18 Thread Danny Lesnik
Hi, Is there any way to use Velocity while moving object by ControlPoint and time? Thank you! Cheers, Danny -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18363#18363 ___ osg-users mailing

Re: [osg-users] how to improve frame rate of my scene with lots of cubes and cylinders?

2009-10-18 Thread Maurizio Lodo
Hi, Thanks Peter for your very helpful reply. I have sorted that issue thank to your pointers. Now I have only one more question then I promise I won't bother you anymore. It seems that when I generate my model using the simple geometries I created and using VertexShader, the resulting cube,

[osg-users] Can't assign more than 7 texture matrices

2009-10-18 Thread Johannes Schüth
Hi, i have a small problem. I want to access gl_TextureMatrix[8] within my Shader. As you can see i used a loop to setup 10 texture matrices: Code: for (int i = 0; i 10; i++) { stateSet-setTextureAttributeAndModes(i, texMat,

Re: [osg-users] Can't assign more than 7 texture matrices

2009-10-18 Thread Johannes Schüth
Seems to be another ati related issue. I was able to reproduce this issue with pure opengl. :-\ Any suggestions on how i can handover multiple texture matrices to my shader? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18366#18366

Re: [osg-users] Can't assign more than 7 texture matrices

2009-10-18 Thread Wojciech Lewandowski
Hi Johannes, It don't think this is an an error. There are only 8 texture coords and 8 tex matrices in fixed pipeline. If you want more simply use uniforms. Matrix array uniforms are available in OpenGL and OSG. Use setElement to sent n-th array. Cheers, Wojtek Lewandowski

Re: [osg-users] Can't assign more than 7 texture matrices

2009-10-18 Thread Paul Martz
I don't see the problem. Quoting from the GLSL 1.20 spec below, it looks to me like you're lucky you're even getting 2 matrices -- the minimum value for gl_MaxTextureCoords. You can't simply use a uniform? Paul Martz Skew Matrix Software LLC _http://www.skew-matrix.com_

[osg-users] re-initialize OpenGL objects after window resize

2009-10-18 Thread Terry Welsh
I'm working on and OSG/SDL application. Resizing the window in Linux works fine, but resizing it in Windows causes the app to lose all its OpenGL objects. Is there a recommended way to re-initialize all OpenGL objects? So far I have been experimenting with SceneView's releaseAllGLObjects,