ywywdh / papervision3d

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

FrustumClipping ALL or DEFAULT not working #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use all white skybox DAE (Attached)
2. Add DAE to stage with DAE parser
3. Set renderer clipping: new FrustumClipping(FrustumClipping.ALL);
4. Set you flash background color to something other than white to see clipping

What is the expected output? What do you see instead?
You should see all white. Instead you see the skybox clip. Was working before  
11.11.08 update 
switching FrustumClipping to Sutherland-Hodgman. Log HIstory: 773 - tim.knip - 
11/11/2008 
18:37/:23 - FrustumClipping: now uses Sutherland-Hodgman

What version of the product are you using? On what operating system?
Papervision3D Public Beta 2.0 - Great White (September 9th, 2008)
OSX 10.5

Please provide any additional information below.
Switch back to previous FrustumClipping.as class and it works perfect.

Original issue reported on code.google.com by jesserlu...@gmail.com on 30 Nov 2008 at 8:31

Attachments:

GoogleCodeExporter commented 9 years ago
Tim ? 

Original comment by r.hauw...@gmail.com on 1 Dec 2008 at 4:02

GoogleCodeExporter commented 9 years ago
The issue exists in all revs after rev #741 (where clipping was first added). 
Issue
is more visible after change to Suterland-Hodgman, but as said: in earlier revs 
the
issue also exists to a lesser extent.

Hence I flag this issue invalid.

Issue arises when an object has non-uniform scaling applied (the sample DAE _is_
non-uniformly scaled).

The real issue is now reported here :
http://code.google.com/p/papervision3d/issues/detail?id=140

Original comment by tim.k...@gmail.com on 1 Dec 2008 at 9:10

GoogleCodeExporter commented 9 years ago
Tried it with a perfect cube and it's still clipping. Looks a little better but 
it doesn't render the edges. It kind of 
crops the cube all around as the camera moves.

//Here is my camera
//setup camera
this._camera = new Camera3D();
this._camera.x = -8;
this._camera.y = 83;
this._camera.z = -235;
this._camera.fov = 18.03;

//Here is the cube
var orangeMaterial:ColorMaterial = new ColorMaterial(0xFF9900, 1);
orangeMaterial.doubleSided = true;

var redMaterial:ColorMaterial = new ColorMaterial(0xFF0000, 1);
redMaterial.doubleSided = true;

var materialList:MaterialsList = new MaterialsList();
materialList.addMaterial(orangeMaterial,"top");
materialList.addMaterial(orangeMaterial,"bottom");
materialList.addMaterial(redMaterial,"back");   
materialList.addMaterial(redMaterial,"front");
materialList.addMaterial(orangeMaterial,"left");
materialList.addMaterial(orangeMaterial,"right");

//this._skybox = new Cube(materialList, 506, 973, 295);
this._skybox = new Cube(materialList, 900, 900, 900);
this._skybox.x = -9;
this._skybox.y = 0;
this._skybox.z = 133;

Original comment by jesserlu...@gmail.com on 5 Dec 2008 at 3:31