20132177 / papervision3d

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

Code change in GeometryObject3D.flipFaces is malfunctioning #250

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First of, I already know which code tweak is causing the problem. In r911, 
a small change was made to GeometryObject3D.as (line 203). The following 
line of code was commented out:

f.uv = [f.uv2, f.uv1, f.uv0];

If I restore this line of code, my skybox -simply a Cube with materials 
applied and configured with a size and number of segments, and finally, 
with flipped faces- works perfect.

What steps will reproduce the problem?
1. Update code to revision 910
2. Create a skybox as shown here (source is downloadable there as well): 
http://blog.projectnibble.org/2009/05/22/easy-papervision3d-skybox-
tutorial-and-source/
3. Update code to revision 911

What is the expected output? What do you see instead?
The same stretched texture as in pre-rev.911 source code. A generic skybox 
with flipped faces (since you're inside).

What version of the product are you using? On what operating system?
I checked out the trunk from the AS3 branch and updated to 911. The bug 
remains when I update to HEAD.

Please provide any additional information below.

Original issue reported on code.google.com by b.bottema on 1 Feb 2010 at 9:58

GoogleCodeExporter commented 8 years ago
Also, I've tried avoiding the calling flipfaces() manually by instantiating the 
Cube 
using the 8th parameter (insideFaces = Cube.ALL). This gives better results as 
the 
texture isn't repeated on a small scale anymore, but no dice: the faces, or 
rather 
the connecting sides of the cube are distorted and don't blend well anymore 
(malformed sharp edges).

Original comment by b.bottema on 1 Feb 2010 at 10:02

GoogleCodeExporter commented 8 years ago
Also, regardless whether the code tweak was intentional or correct, shouldn't 
showing the texture on all faces (Cube.ALL) and the geometry.flipFaces() 
approach 
not display the same behavior? That is to say, the inside of a cube the same 
way 
regardless of any distortions?

Original comment by b.bottema on 1 Feb 2010 at 10:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Since the link wasn't parsed correctly by Google, here a direct link to the 
source:
http://projectnibble.org/dump/blog/papervision3d_skybox/skyboxtutorial.rar

Simply recompile this with r911 from repo:
http://papervision3d.googlecode.com/svn/trunk/as3/trunk/

Original comment by b.bottema on 1 Feb 2010 at 10:11