Discussion:
Piechart: PhongMaterial looks crappy
Ruben Gerlach
2010-07-09 11:12:31 UTC
Permalink
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Makc
2010-07-09 15:44:48 UTC
Permalink
Is it maybe because in smaller pieces the vertex normals of the sides of the piece are close to be equal?
maybe, but this
...it happens from time to time... The effect may appear, alter and disappear during the movement of the piece.
suggests there may be other reasons, for example
http://bugs.adobe.com/jira/browse/FP-249
John Brookes
2010-07-09 17:32:29 UTC
Permalink
Last time I had a poke around the EnvMapMaterial which phong extends, I
found that

transformMatrix.invert();

can sometimes give an identity matrix, happens when the matrix has no
inverse. Its determinate =0. (Ithink)

Now how to get round that not a clue.

Apart from slightly move the offending vertices and hope random guessing
fixes it :p

finds thread..says same as above

http://papervision3d.758870.n4.nabble.com/EnvMapMaterial-Inverse-Matrix-problem-td949645.html#a949645
Makc
2010-07-09 18:30:36 UTC
Permalink
Post by John Brookes
transformMatrix.invert();
can sometimes give an identity matrix, happens when the matrix has no
inverse. Its determinate =0. (Ithink)
Now how to get round that not a clue.
Apart from slightly move the offending vertices and hope random guessing
fixes it :p
that is "same normals" case Ruben is talking about. so you either
change normals (if possible in pv3d) or move vertices towards their
would-be position in something that has nice mapping (such as sphere).
Loading...