• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Main repository of MikuMikuStudio


Commit MetaInfo

Revision3a474a39d3fc0b446c2322a5e827c4d3ca02f038 (tree)
Time2013-05-13 20:56:22
AuthorKaelthas_Spellsinger@o2.pl <Kaelthas_Spellsinger@o2.p...>
CommiterKaelthas_Spellsinger@o2.pl

Log Message

Bugfix: fixes to strip box indices and normals computation.

git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10612 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

Change Summary

Incremental Difference

--- a/engine/src/core/com/jme3/scene/shape/StripBox.java
+++ b/engine/src/core/com/jme3/scene/shape/StripBox.java
@@ -46,18 +46,18 @@ import java.nio.FloatBuffer;
4646 public class StripBox extends AbstractBox {
4747
4848 private static final short[] GEOMETRY_INDICES_DATA =
49- { 1, 0, 4,
50- 5,
51- 7,
52- 0,
53- 3,
54- 1,
55- 2,
56- 4,
57- 6,
58- 7,
59- 2,
60- 3 };
49+ { 0, 1, 4,
50+ 2,
51+ 6,
52+ 7,
53+ 4,
54+ 5,
55+ 0,
56+ 7,
57+ 3,
58+ 2,
59+ 0,
60+ 1};
6161
6262 private static final float[] GEOMETRY_TEXTURE_DATA = {
6363 1, 0,
@@ -155,8 +155,8 @@ public class StripBox extends AbstractBox {
155155 norm.set(vert[i]).normalizeLocal();
156156
157157 normals[i * 3 + 0] = norm.x;
158- normals[i * 3 + 1] = norm.x;
159- normals[i * 3 + 2] = norm.x;
158+ normals[i * 3 + 1] = norm.y;
159+ normals[i * 3 + 2] = norm.z;
160160 }
161161
162162 setBuffer(Type.Normal, 3, BufferUtils.createFloatBuffer(normals));