JK and MotS Editing >> Level Editing >> JKL format question     (Moderator: Admins) Previous Topic | Next Topic
Page 1 of 1
 Author 
 Post 
Post 14-Jul-2009 13:16        

If you open a JKL in a text editor and scroll down to the surfaces section, you will see the vertices of a surface listed like:

1,1 2,2 3,9 4,10 etc..

Why are there 2 numbers for each vertice? one must be an ID to the world vertices list, but what is the other one?
ZeqMacaw
Site Admin
Post 14-Jul-2009 21:43        

In the Specs - JKL section of the Jedi Knight Editing Manual, it states:

World surfaces N
# Number of surfaces in the level

#num:   mat:  surfflags:  faceflags: geo: light: tex: adjoin: extralight: nverts: vertices:               intensities:
0:      -1    0x0         0x0        0    3      1    0       0.00        4       16,-1 17,-1 20,-1 0,-1  0.159676   0.422598   0.127744  0.005013   
1:      307   0x24        0x4        4    3      1    -1      0.00        4       17,4  22,5  23,6  20,7  0.664690   0.459507   0.419392  0.395703   
2:      2     0x0         0x4        4    3      1    999     0.00        4       75,3  76,17 77,18 79,19 0.325678   0.456224   0.234435  0.253744           
3:      253    0x4        0x4        4    3      1    -1      0           4       4,14  5,15  6,16  7,17   .137614    .137614    .137614   .137614   .128789   .128789   .128789   .128789   .148912   .148912   .148912   .148912   .264894   .264894   .264894   .264894

 


"mat" is index of material in the list of materials. -1 means none.
"adjoin" is the index of adjoin in the list of adjoins. -1 means none.
"Nverts" is a number of vertices in this surface.

Then go indices of vertices as:

vertex,texture_vertex


That is, the second number is an index to the "World texture vertices" list.

Post 14-Jul-2009 23:52        

OH! hah, awesome, thanks!
*** Post commands are unavailable for guests. ***