This is regarding the camera and view volume of coin 2.0.2. I want to
create a custom view volume which is a subset of camera view volume,
and want to display objects with different colors which are inside the
new created volume.
For this I first fetch the current volume of the camera.
SbViewVolume viewVolume=camera->getViewVolume(aspectRatio);// already
has //aspectRatio this viewVolume is the frustum of the camera.
To create the custom view volume from the camera view volume, I have
used the SbViewVolume::frustum(...) method.
customViewVolume.frustum(...);// I have all aruments for passing to
Now to check whether a object(rather point for simplcity) lies inside
the frustum, we can use SbPlane.isInHalfSpace(...) method w.r.t. all
the planes of the customViewVolume.
But before checking this, we have to calculate our point w.r.t. camera
My question is :
Does the new frustum(customViewVolume) has same origin and orientation
as the camera?
I mean, Can i use the camera position and orientation to find out the
point w.r.t. new frustum?
if not How can I find the position and orientation of the new