Re: [osg-users] Dynamic HeightField

2013-02-11 Thread bilal zeidan
Hi,

Thanks, that's what I did after investegating this issue. 

Thank you!

Cheers,
bilal

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





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


[osg-users] Dynamic HeightField

2013-01-24 Thread bilal zeidan
Hi,
I tried to create a dynamic heightField by attaching a heightField Shape 
drawable into a Geode node, and then I called the dirtyDisplayList on each 
frame. I noticed that the frame rate drop a lot when the HF is quite big ( 200 
x 200 ). I did the same test by using a drawable of type geom and I get a 
better perforamance. 

My questions are the follow:
 1- What is the best to create a dynamic heightField?
 2- Is there any optimal way to update the heights of a given heightField
 shape. I did this attempt osg::HeightField::getFloatArray()-dirty() 
 but it didn't update the heights.
 3- What about the use of osg::Terrain/osg::TerrainTile to create a  
 dynamic heightField?  Is it a better alternative in term of perforamce?
 
Thank you!

Cheers,
bilal

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





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


[osg-users] Set Node color

2009-10-02 Thread Bilal Zeidan

Hi every one,

I am asking if some can help me to set a non shaded color to a node. In 
another words, I don’t want the color of the node to be affected by the 
light source of the scene. In my case, I don’t have a direct access to 
the node’s drawables that’s why I am using the node’s material to set 
the color of the node. I tried to set the ColorMode of the material to be GL_DIFFUSE/GL_EMISSION but none of 
them has worked well. I also tried to activate and deactivate the light attribute 
of this node but I didn’t get the desired result.


My question is how can I set a single non shaded color to a loaded 
graphic model if I don’t have access to its geometry?


Thank you in advance.



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


[osg-users] shadowVolme bugs

2009-05-15 Thread Bilal Zeidan

Hi all,

I am trying to create a shadowed scene by using osg::shadowVolme 
technique but I have noticed that when the objects in the scene are 
moving their shadows still unchanged?


I have also another a problem with SoftShadowMap technique. My 
application crashes when it uses the SoftShadowMap technique to render 
the scene.


I am using the version 2.6 of OSG.

Any one has an idea about these problems?

Thanks.

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


[osg-users] Geometry merging problem

2008-10-01 Thread Bilal Zeidan

Hi all,
I am trying to merge two geometry objects that have two different 
textures by using the merging function:
bool Optimizer::MergeGeometryVisitor::mergeGeometry(osg::Geometry 
lhs,osg::Geometry rhs)
After calling this function, one of these objects looses its own 
texture. In fact it inherits the texture of the other object. did anyone 
already try this function or know how to merge two geometry objects 
correctly ?


thanks.

The following snippet code shows how I did the merging:
osg::ref_ptrosg::Geometry  mergeGeoms(osg::Geometry *g1,osg::Geometry *g2)
{
 osgUtil::Optimizer::MergeGeometryVisitor::mergeGeometry(*g1,*g2);
 return g1;
}

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