José Pedro Dias wrote: > I've been reading this mailing list for quite some time and I usually > find the answers for most questions here. > So congrats to you all: OpenSG rocks and so does its mailing list! > > On with the question: > > Is there a way of having a viewport added to the viewports list with > the purpose of capturing a birds-eye-view (a smaller square viewport > with a transformed beacon and a texturegrabforeground for getting the > 'map') without explicitly showing it? I already draw it in a polygon > as I want but I don't want the 'behind-the-stage' viewport showing up... > > One obvious way of doing it is making this 'texture-grabbing-viewport' > appearing earlier than the main viewport in the viewports list but I > would like to keep the main one the first > since I'm extending a framework which heavily uses the first one... > I hope this makes sense :) > You could use a FrameBufferObject-viewport (FBOViewport for short). It's not a part of 1.8 (it really should be.. hm) but it's been posted on this list a few times, and I have it available (with some slight improvements). Anyway, it would allow you to add a viewport that does not render to the framebuffer, but still uses the same window/gl-context as everything else. Ideal for any render-to-texture work.
Would it help? Cheers, /Marcus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
