Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Using anything but the default TVViewport causes FRAPS to stop working  (Read 383 times)
freckert
Customers
Community Member
*****
Posts: 26


WWW
« on: March 31, 2008, 03:26:27 PM »

FRAPS won't capture movies or display FPS in a window if a viewport is created manually on a window handle which is not the handle passed to TV.Init, and SetViewport is called on the new viewport.
« Last Edit: March 31, 2008, 04:40:12 PM by freckert » Logged
freckert
Customers
Community Member
*****
Posts: 26


WWW
« Reply #1 on: March 31, 2008, 04:34:31 PM »

Modify the C# Template project to include a Panel inside the Form.

TV.Init3DWindowed(this.Handle, true);

// Add these lines underneath the Init
TVViewport manuallyCreatedViewport = TV.CreateViewport(this.panel1.Handle, "VP1");
TV.SetViewport(manuallyCreatedViewport);

FRAPS will no longer work.
Logged
freckert
Customers
Community Member
*****
Posts: 26


WWW
« Reply #2 on: March 31, 2008, 04:52:24 PM »

A workaround for this is to keep the viewport the default (init handle) but RenderToOtherHWND(manuallyCreatedViewport.Handle)
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #3 on: April 03, 2008, 06:42:35 AM »

Yes looks like fraps only captures the first swap chain that has been created.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks