Hi all,

I'm having a problem with current CVS-Version which i did not have using the 1.6
Release (but i prefer svn-release because of enhanced vrml reader :)

i've a setup using several viewports (say vp_0 to vp_n) using their own cameras
and a final Viewport vp_f for displaying a result of the screenshots taken from
  (vp-0 to vp_n) by using TextureGrabForeground.

i.e.

for (vp_0 to vp_n)
{
        vp_i = Viewport::create();
        vp_i->setBackground(mybackground);
        vp_i->setSize(0, 0, 1, 1);
        vp_i->setCamera(m_myCameras.at(i));
        vp_i->getForegrounds().push_back(m_myTexGrabbers.at(i));        
}

and similar for vp_f with material texIDs set to texIDs from m_myTexGrabbers.
All viewports are added to my windowsPtr which is an WIN32WindowPtr. The render
action starts rendering vp_0 to vp_n and finally vp_f;

The problem i get is that if i open the window with the main viewport it seems
that the back-buffer into which the whole scene is rendered is
1. bigger than my mainwindow ( i think it's depending on texture size used for
the foreground-grabbers)
2. and a power of two.

I.e. if i scale my window to e.g. 512x512 i can see the whole scene, but if i
scale it for e.g. 513x512 i just see the left half of the viewport (since the
grabber texture size is now set to 1024x512??).

Any Idea how to get around this?

thanks in advance
Klaus


-------------------------------------------------------------------------
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

Reply via email to