[Papervision3D] Delayed Render in Papervision 2.0

Paul Decoursey paul at decoursey.net
Thu Jun 5 20:40:09 PDT 2008


I don't really buy that.

I have seen that I can call render and things like the camera position  
and zoom and textures are updated but object rotation is not.  It  
happens on the next render cycle.  I can call render twice in one  
frame and it looks like it did it all in one frame.  I think that the  
order that updates occur in isn't quite right.  I have not looked into  
it, I only noticed it a few days ago myself and I'm up to my ears in  
this project so I just dropped in two render calls per frame as a hack.

Paul


On Jun 5, 2008, at 4:41 PM, James Hay wrote:

> The thing is the papervision render cycle can take some time. So  
> what I think is happening in your circumstance is that the render  
> cycle is taking more than one frame so your changes aren't showing  
> up on the screen until Flash moves into the next frame and renders  
> everything again. You could call an updateAfterEvent() once the  
> papervision render cycle has finished. I think there's an event that  
> is fired render.renderScene method has completed doing it's stuff.  
> Hope that helps.
>
> Jimmy.
>
> On Thu, Jun 5, 2008 at 7:35 PM, Colby Walburn <colby.walburn at iqinteractive.com 
> > wrote:
> Initially I had it at 30 fps and you can't really tell what the  
> problem is, but when I slowed it down to about 10 fps to better see  
> what was going on I was able to see what was happening. I also used  
> the debugger in flash to step through the process one frame at a time.
>
>
>
> On 6/5/08 2:26 PM, "James Hay" <jimmyhay at gmail.com> wrote:
>
> What is your fps set to?
>
> On Thu, Jun 5, 2008 at 6:58 PM, Colby Walburn <colby.walburn at iqinteractive.com 
> > wrote:
> I'm using papervision 2.0 and I've come across a problem when I  
> render the
> scene.
> I have a mouse collada I'm moving forward in every frame using a  
> function
> called refresh(), and on a KeyboardEvent the mouse changes direction  
> and
> continues forward in the new direction.  The problem comes in when  
> they
> Keyboard Event is triggered.  The mouse is supposed to rotate 90  
> degrees and
> continue in the new direction like so:
>
> mouse.rotationY +=90;
> renderer.renderScene(scene, camera, viewport);
>
> When stepping through this in the debugger, the mouse.rotationY  
> variable was
> what it was supposed to be but the changes weren't reflected on the  
> screen.
> After this, refresh() gets called, the mouse gets moved forward and  
> the
> scene is rendered again:
>
> mouse.x+=speed;
> renderer.renderScene(scene, camera, viewport);
>
> This time the scene reflects the change in the x position of the  
> mouse but
> the rotation still is not reflected.  The rotation finally shows up  
> in the
> next frame.
>
> Does anyone know what could cause a rendering delay like this?
> Thanks for any help!
>
> Colby
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080605/5e1ab66e/attachment.html 


More information about the Papervision3D mailing list