ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: Re: [Antialiasing] Snapshot issue
Sender: nalex@parallelgraphics.com 18.07.07 07:45
It works, but when I get the buffer, the antialiasing hasn't been applied to the frame yet, and I can get only bad quality snapshots. I thought that can set a timer to wait about half a second before getting the snap, but it's not 100% reliable and pretty ugly code :-)
How can I intercept a sort of event "Antialising applied", if it exists?

There is no special event signaling the completion of antialiasing. But you can wait for 8 cycles of rendering and grab a buffer with antialiased picture. Note, that this works if the scene was completely "static" during these 8 frames; that is, there was no events fired/processed. To count frames passed, you can implement IVRMLGeneralCallback and register it as a service in the Engine. The Engine will call back the IVRMLGeneralCallback::OnFrame() method after every rendering cycle.

 


[Antialiasing] Snapshot issue / Andrea B / 18.07.07 06:27
     Re: [Antialiasing] Snapshot issue / nalex@parallelgraphics.com / 18.07.07 07:45
         Re: [Antialiasing] Snapshot issue / Andrea B / 18.09.07 10:42
         Re: [Antialiasing] Snapshot issue / Andrea B / 20.07.07 11:17

Messages in thread: 4


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.