Hello Gerrit,
so, here they come, the parameters for my holobench setup:
First the "real" values as measured from the hardware
//vertical top plane
OSG::Pnt3f pTopProjPlaneEdges[4] = {
OSG::Pnt3f(-2.953f, 0.0f, -3.609f),
OSG::Pnt3f(+2.953f, 0.0f, -3.609f),
OSG::Pnt3f(+2.953f, +3.609f, -3.609f),
OSG::Pnt3f(-2.953f, +3.609f, -3.069f)
};
//Horizontal bottom plane
OSG::Pnt3f pBottomProjPlaneEdges[4] = {
OSG::Pnt3f(-2.953f, 0.0f, 0.0f),
OSG::Pnt3f(+2.953f, 0.0f, 0.0f),
OSG::Pnt3f(+2.953f, 0.0f, -3.609f),
OSG::Pnt3f(-2.953f, 0.0f, -3.609f)
};
Second the test values, that I used for my "proof of concept" (...which up to
now doesn't proof a thing ;-))
//test data for simplicity
//top plane
OSG::Pnt3f pTopProjPlaneEdges[4] = {
OSG::Pnt3f(-1.0f, +0.0f, -1.0f),
OSG::Pnt3f(+1.0f, +0.0f, -1.0f),
OSG::Pnt3f(+1.0f, +1.0f, -1.0f),
OSG::Pnt3f(-1.0f, +1.0f, -1.0f)
};
//bottom plane
OSG::Pnt3f pBottomProjPlaneEdges[4] = {
OSG::Pnt3f(-1.0f, +0.0f, -1.0f),
OSG::Pnt3f(-1.0f, +0.0f, +0.0f),
OSG::Pnt3f(+1.0f, +0.0f, +0.0f),
OSG::Pnt3f(+1.0f, +0.0f, -1.0f)
};
I did the setup of the projection plane according to the
OSG/System/window/testProjection.cpp example. It's looking like
pDecorator->getSurface().push_back(pProjPlaneEdges[0] ... [3]);
Hope to here from you soon...
Greetings
Bernd
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users