Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-29 Thread Robert Osfield
Hi Jonathan, On 15 November 2011 13:21, Jonathan Klein jonathan_kl...@web.de wrote: Well, the problem is, that I need the surrounding heights. It is a terrain visualisation project and i need to calculate things like openness (some Ambient Occlusion related thing) or terrain roughness, for

Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-25 Thread Jonathan Klein
Hi, what about the GeometryType Parameter in osgdem? http://www.openscenegraph.org/projects/VirtualPlanetBuilder/wiki/CommandLineOptions I can't find any documentation what the difference between HEIGHT_FIELD, POLYGONAL and TERRAIN is, but I think, HEIGHT_FIELD might be able to solve my

Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-15 Thread Jonathan Klein
Well, the problem is, that I need the surrounding heights. It is a terrain visualisation project and i need to calculate things like openness (some Ambient Occlusion related thing) or terrain roughness, for which I need for example a 5x5 kernel around my pixel, so a heightmap lookup would be

Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-15 Thread Jean-Sébastien Guay
Hi Jonathan, It seams that there is no way to extract that information just form the vertex data (because the vertex shader only processes one vertex at a time). Yes, sounds like what you need is more than what I thought you needed :-) I don't think VPB supports that out of the box, but

[osg-users] [vpb] Terrain Height as Texture

2011-11-14 Thread Jonathan Klein
Hi, I used osgdem to create a Terraindatabase from 2 image files (Heightmap and Colormap). Is there any way to access the height information in a texture? I need to do some calculations in the shader for which i need informations abount the surrounding terrain height, at guessed that it would

Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-14 Thread Jean-Sébastien Guay
Hi Jonathan, I used osgdem to create a Terraindatabase from 2 image files (Heightmap and Colormap). Is there any way to access the height information in a texture? I need to do some calculations in the shader for which i need informations abount the surrounding terrain height, at guessed