Re: [osg-users] Passing location-based data to a fragment shader

2013-06-23 Thread Shahar Kosti

Sebastian Messerschmidt wrote:
 Hi Shahar Kosti:
 As you don't provide any exact numbers I can only guess. But usually I'd 
 bind one or more textures per tile of paged set.
 Depending on your hardware bind of 8192x8192 textures is no problem.
 Can you be a bit more specific on how big the set is?
 
 Also for the hidden textures - I don't really get what you mean. My best 
 guess is, that you mean not displayed.
 Therefore write a custom fragment shader and bind the data-textures 
 along with you diffuse or whatever textures to the stateset of the tile.
 
 As the fragment shader is fully programmable, it is your choice what is 
 done with the data.
 
 cheers
 Sebastian
 


Hi Sebastian,

Sorry for my late reply, it took me some time to get the data. 
One TXP I'm currently looking at, represents a 3000 kmĀ² area with texture 
resolution of 5m/pixel. Some areas have better resolution, up to 10 cm/pixel. 
The additional metadata has similar resolution. So obviously wouldn't fit on a 
single texture.

Regarding your suggestions, could you elaborate on the bind one or more 
textures per tile of paged set approach?

My current approach (which doesn't work), is to intercept paged nodes using a 
custom ReadFileCallback, which runs a NodeVisitor. The visitor finds all Geode 
objects and then the underlying geometries. I can bind a new texture to these 
geometries, but I'm not sure how to set the values correctly. 
Each texel in the new texture, should be set based on the world location of the 
corresponding texel in the current geometry texture. I'm not sure how to do 
that using the geometry vertex and texture coordinate indices.
I hope this is clear enough.

Thanks for the help,
Shahar

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54810#54810





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [vpb] Obtain terrain heigth in meters?

2013-06-23 Thread Massimo Tarantini
Hello,

i have no problem to get terrain height in meters if the terrain has a UTM 
projected GCS. But if a use Geographic system, the terrain intersection is in 
degrees. Of course i can use a coefficient to convert from degree to meters, 
but i think it can't give good results.

Probably i'm missing something. 
There is a standard way to get such value?

Thank you!

Massimo

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54811#54811





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] How do I build OpenSceneGraph as a shared lib without sonames?

2013-06-23 Thread Preet
Hi,

I'm building for a platform where I can't use sym links when packaging an
application and soname versioning complicates the deploy process. Is there
a way to tell osg/cmake that I don't want to build versioned libraries with
sonames?


Preet
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How do I build OpenSceneGraph as a shared lib without sonames?

2013-06-23 Thread Preet
Easy fix;

In the main CMakeLists.txt simply change

# We want to build SONAMES shared librariess
SET(OPENSCENEGRAPH_SONAMES TRUE) -- change to false
SET(OPENTHREADS_SONAMES TRUE) --- change to false

Would be cool to have a cmake option that controls this though
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org