[osg-users] mirrorize a slave with a offset from the master camera
robert.osfield at gmail.com
Tue Sep 11 01:40:31 PDT 2007
On 9/11/07, Johan Johnsson <johanj at autosim.no> wrote:
> Hello !
> I want to mirrorize a specific slave counted from the mastercameras view.
> At the moment i use a offset matrix
> addSlave(camera.get(),osg::Matrixd(),offsetMatrix); that rotate it 180
> degrees in Z-axis, well thats good now i look "straight back". but i dont
> have the mirror view i want. , any suggestions to get this work properly ?
You just need to scale the y axis by -1, then flip the front face to
prevent the wrong faces from being culled.
> And Robert i still have some issues with the statistics rendering, so my
> wondering to you before i dig even deeper is the text "framerate" and the
> actual framerate value , are they on the same renderdepth? I check this
> out i must render something upon it, that hides the bars and the framerate
> value. But its so strange that the framerate text and all the other
> different colorized texts below are beeing rendered in a correct way..
> But just dont the FR value or the represented bars below. :S
I'm afraid I can't make any sense of this paragraph.
> Anyways and anyhow tnx for the wonderful Improved build configuration
> under Visual Studio release.
Thanks go to Luigi for all the hard work ;-)
More information about the osg-users