mrdoob/three.js — Issue #918: another json question ... help please!!!
Author: TreedeeAnimation
Created: 2011-12-15 22:33:43+00:00
State: open

been playing with the json buldup of models for a bid now and i understand the basic how it works ......
came accross 2 questions ,,,,, hope you can help me .......

i made a cube of quads with a material .....all good and working
but when i came to the normals i got stuck .....

4: 0 = no face normal, 1 = face normal (1 index)
5: 0 = no face vertex normals, 1 = face vertex normals (3 indices or 4 indices)

for a face normal i get a index .... and vertex normals i repeat the vertex numbers ....
i setup a face list to add face vertex normals and in a normal list i made 4X3 values .... (4 vertecies times 3 values for xyz)
this seems to work .... bit i dont understand the index (1 number for the face normal) ...

is it that with the face normal (index) you switch the normal list on and off and then with the vertex normals you call for the values? ...

the same goes for the uvs and face color .........

this brought up another question ..... whats the differance between face material and face color?

hope you can halp me ... loving it all sofar!!!!!

many thanx maarten