[Papervision3D] PreciseBitmapMaterial crashing browser

pascal pascal at specialmoves.com
Fri Aug 31 08:36:26 PDT 2007


Andy,
Yes, there are large faces near the camera.
I've tried increasing the number of faces in the plane and turning  
down the precision which helped a bit, but not enough to deal with  
all the circumstances.

Rob,
Have looked through the away3d update and think i should be able to  
put something similar into the papervision version. It seems to me to  
be more of a bug though in terms of determining whether to recurse or  
not. If it is and i find a fix i'll post an update.

Thanks for your help guys,
Pascal


On 30 Aug 2007, at 15:40, Rob Bateman wrote:

> Hey Pascal
>
> just performed an update in the Away3d sources to combat this -  
> it's a limiter that stops the precisebitmapmaterial going past 100  
> iterations in it's renderRec loop (that 100 iterative loops not 100  
> faces total). You'll very rarely hit the limit, in fact it may be  
> too high to stop a stack overflow like you are describing.. but set  
> to the right level it definitely could.
>
> To any PV developers interested - the updates are in the trunk of  
> the away3d repo - look in http://away3d.googlecode.com/svn/trunk/ 
> away3d/core/material/PreciseBitmapMaterial.as . you're welcome to  
> merge this with your papervision version if you're interested in  
> performing the same fix :)
>
>
> atb
>
>
> Rob
>
>
> On 8/30/07, Andy Zupko <azupko at zupko.info> wrote:
> Are you dealing with large faces really close to the camera?
>
>
> I would try turning the precision down (down == higher number) to  
> see if that helps – you could also try to use more smaller faces  
> instead of one large one.  Just some ideas.
>
>
> From: papervision3d-bounces at osflash.org [mailto:papervision3d- 
> bounces at osflash.org] On Behalf Of pascal
> Sent: Thursday, August 30, 2007 7:17 AM
> To: papervision3d at osflash.org
> Subject: [Papervision3D] PreciseBitmapMaterial crashing browser
>
>
> Hi,
>
>
> Don't know if anyone's found this but PreciseBitmapMaterial is  
> quite frequently crashing Safari & Firefox for me.
>
>
> It seems to happen when you're viewing the material quite close up.  
> It's hard to debug as it just kills the browser but sometimes Flash  
> manages to pop up this error.
>
>
> Error: Error #1023: Stack overflow occurred.
>
>             at org.papervision3d.materials::PreciseBitmapMaterial/ 
> renderRec()
>
>             at org.papervision3d.materials::PreciseBitmapMaterial/ 
> renderRec()
>
>             at org.papervision3d.materials::PreciseBitmapMaterial/ 
> renderRec()
>
>             at org.papervision3d.materials::PreciseBitmapMaterial/ 
> renderRec()
>
>             at org.papervision3d.materials::PreciseBitmapMaterial/ 
> renderRec()
>
>             at org.papervision3d.materials::PreciseBitmapMaterial/ 
> renderRec()
>
>             etc...
>
>
> I've had a quick look at the renderRec function and it's recursive  
> which would explain the stack overflow error, but has anyone got  
> any ideas on how to track down and fix the problem?
>
>
> Thanks,
>
> Pascal.
>
>
>
>
> _______________________________________________
> 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/20070831/46e55fb0/attachment.html 


More information about the Papervision3D mailing list