ywywdh / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

Problem using VectorVision with RenderLayers #209

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm developing a website that implements RenderLayers and noticed a bug
when using the Text3D class in combination with RenderLayers. I provided an
example and description of the problem on my <a
href="http://www.andreashamberg.com/2009/07/13/problem-using-vectorvision-with-r
enderlayers/">website</a>.
To summarize the RenderLayer merges with the RenderLayer in the previous
frame. Instead of drawing a new one for each frame.

Version of PV3D: 2.0.0 March 12th, 2009
operating system: Mac OS X 10.5.7

Original issue reported on code.google.com by andreas....@gmail.com on 13 Jul 2009 at 4:47

GoogleCodeExporter commented 9 years ago
Instead of
var leftSphereLayer:ViewportLayer = new ViewportLayer(viewport, text3D);
viewport.containerSprite.addLayer(leftSphereLayer);
leftLayers.push(leftSphereLayer);

Use
var leftSphereLayer:ViewportLayer = new ViewportLayer(viewport, null);
viewport.containerSprite.addLayer(leftSphereLayer);
leftSphereLayer.addDisplayObject3D(text3D, true);
leftLayers.push(leftSphereLayer);

Join the forum
http://forum.papervision3d.org/index.php

Original comment by jbp...@googlemail.com on 15 Jul 2009 at 7:03