Hi Dirk,
> I've been battling a similar problem with TexGens lately, so I might
> have an idea what a possible fix would be.
>
> Manuel, can you try the following:
>
> In OSGSlicer.cpp and OSGDVRVolume.cpp replace the matrix returned by
>
> action->getCamera()->getBeacon()->getToWorld()
>
> with this matrix:
>
> Matrix cameraMat;
> Viewport *vp = action->getViewport();
> if(vp != NULL)
> {
> action->getCamera()->getViewing(cameraMat, vp->getPixelWidth(),
> vp->getPixelHeight());
> }
But Manuel needs to take care, since Camera::getViewing already returns
the inverted matrix. So in Slicer the mat.invert must be removed.
And unless you have a better idea how to retrieve the eyepos in object
space in DVRVolume the matrix needs to be inverted before extracting
the 3rd column.
Manfred.
======================================================================
Manfred Weiler [EMAIL PROTECTED]
Visualisierung und Interaktive Systeme Telefon: 0711/7816-208
Universitaet Stuttgart, IfI FAX: 0711/7816-340
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users