Hi there, 

I have a rather strange problem that I would like to tackle using OSG, I wonder 
if anyone could offer some advice on whether it is possible or not?

In brief, the application I am working on must allow users to detect what parts 
of a scene containing in a large CAD model are and are not visible (ie: 
occluded) when viewed from certain vantage points. To do this, I am currently 
using line of sight calculations from my eye (Detector) to points spaced 
equally throughout the scene in three dimensions, however this is proving very 
slow. 

I could simplify my problem greatly by saying "If the vantage point, or camera, 
was a light source, what is the shadow map on a horizontal plane placed at a 
certain level?"

I was thinking to use osgShadow functionality to generate a shadow map on a 
horizontal plane of a size/location that I specify, given a light source at the 
vantage point. However, I would need to get the bitmap (or other representation 
- I need to know what parts of the plane are in shadow and what parts are not) 
of the shadow map back in order to process it. 

Some questions:

- Is it possible to get the shadow map out as a texture or bitmap?

- Would the OSG fail to deliver a shadow map if I used osgShadow and the 
graphics card didn't have the correct features (i.e. would it fall back to CPU 
rendering?)

- What method of shadow mapping would best suit this problem?

The above operation does not have to be real time, but it has to work on a 
variety of hardware, ranging from onboard Intel graphics to top-end video 
cards. I would greatly appreciate something that defaulted to render on CPU as 
opposed to a GPU only technique, and I must be able to get the shadow map 
applied to the plane out as a bitmap. 

Thank you!
Andrew

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to