[Papervision3D] PreciseBitmapMaterial crashing browser

John Grden neoriley at gmail.com
Fri Aug 31 21:28:11 PDT 2007


Thanks Rob, Andy looked at it tonight and I'm testing out a fix he's found.
If it works, then I'll let him explain, but it has to do with the focus
parameter.  Apparently he hardcoded it to 120 when he initially did the
conversion to PV3D.  Setting that to something like 10,000 seems to fix the
issue just fine and he's looking into how to set that dynamically.

I'll test and let you know for sure if that fixes it

On 8/31/07, Rob Bateman <rob.bateman at gmail.com> wrote:
>
> I know there is some sort of issue with textured triangles turning white
> at very small angles (ie. almost a line), but it's unclear whether this is a
> problem with the flash player or with the away3d engine. I not sure why
> PreciseBitmapMaterial would be exhibiting it though. Changing the precision
> will result is less triangles which will help with the stack overflow but
> like Pascal says - not in all cases. The only way to be sure is to cap it
> with a maximum iterations value.
>
>
>
> On 8/31/07, John Grden <neoriley at gmail.com> wrote:
> >
> > sweeet thanks Rob!
> >
> > Hey Rob, I had also seen, when appying the Precise materials to an
> > object, that when I rotated it, I saw cracks or what seemed to be faces not
> > drawn - not totally sure.  Would changing the ration like Andy talked about
> > help that out?  or do you know of other issue?
> >
> > Thanks man, appreciate your help very much,
> >
> > John
> >
> > On 8/30/07, Rob Bateman < rob.bateman at gmail.com > 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
> > >
> > >
> >
> >
> > --
> > [  JPG  ]
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> Work: 0207 4823328
> Mobile: 07714 329 073
>
> rob.bateman at gmail.com
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


-- 
[  JPG  ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070831/cca7a867/attachment.html 


More information about the Papervision3D mailing list