« Return to Thread: bitmap warping when cube spins

Re: bitmap warping when cube spins

by Rex Kilian :: Rate this Message:

Reply to Author | View in Thread

As a add-on question...
How would you do the same [material.precise = true;] if the material was not being applied via script, i.e loading a DAE file that links to a JPG file for a texture map?


On Thu, Jun 25, 2009 at 8:47 AM, Andy Zupko <azupko@...> wrote:
material.precise = true;

you can set the precision parameter in the constructor of all bitmapmaterials (bitmap, movie, etc).  This will dynamically tesselate the faces based on perspective so that it doesn't skew.

hth

-andy

On Jun 25, 2009, at 7:34 AM, Ross Hulford wrote:

Number 1 will not work for me as the material is a cd cover with a front and back with images and text.

Number 2 may work, will try and let you know how I get on. 


Thanks,

R.

On 25 Jun 2009, at 13:16, Rex Kilian wrote:

My project experienced the same issue, it also happens when a material on a plane (i.e. a wall) is viewed from an angle.
We found two solutions that met our needs but may not work in every situation:

1. make a material that contains a pattern that seems random instead of structured (avoid horizontal and vertical lines)
2. increase the number of triangles that make up the plane, or in your case the cube

Number 2 could cause a performance hit depending on the complexity of what is being rendered.

I'm also curious to see what other responses there are to this question.



On Thu, Jun 25, 2009 at 8:01 AM, Ross Hulford <ross@...> wrote:
Hi I am rotating my cube and the material warps quite badly, I am using a fairly standard setup (camera, render engine)

Is there anything I can do to improve the quality?

viewport = new Viewport3D(550, 400, false, true);
                       addChild(viewport);
                       
                       //instantiates a Scene3D instance
                       scene = new Scene3D();
                       
                       //instantiates a Camera3D instance
                       camera = new Camera3D();
                       
                       //renderer draws the scene to the stage
                       renderer = new BasicRenderEngine();

function onEnterFrame(e:Event):void
                       {
                               collada.rotationY += 1.5
                               
                               renderer.renderScene(scene, camera, viewport);
                       }

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: bitmap warping when cube spins