#108195 - chrissieboy - Mon Nov 06, 2006 4:31 pm
Hi guys, im busy with building a script for 3dmax/gmax to export the models to header files, just like the maya exporter.
But i tried to analyse the ouput from the maya exporter, but it not realy make any sense to me?
I'll try to explain my problem, with this code :
the first problem is in here :
it send 2 times the FIFO_COLOR with the same value RGB15(31,31,31).
when i change the color of it in the first part is works, but the second part doesn't do anything?
But i was thinking that this is just garbage to fill the chunks to make it 4 bytes??
Because later in the output i saw this :
in the second part 2 times the FIFO_VERTEX16 was send, but in the last part of the second part there's this code :
its exactly the same as in the first part!
So i was really thinking that this is just to fill the fifo or something?
Am i right??
(sorry for my bad english, im dutch)
But i tried to analyse the ouput from the maya exporter, but it not realy make any sense to me?
I'll try to explain my problem, with this code :
Code: |
FIFO_COMMAND_PACK(FIFO_BEGIN, FIFO_TEX_COORD, FIFO_COLOR, FIFO_VERTEX16), GL_TRIANGLE, TEXTURE_PACK(inttot16(0),inttot16(117)), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2619139552),floattov16(0.125)), VERTEX_PACK(floattov16(-0.1084881499),0), FIFO_COMMAND_PACK(FIFO_TEX_COORD, FIFO_COLOR, FIFO_VERTEX16, FIFO_TEX_COORD), TEXTURE_PACK(inttot16(8),inttot16(117)), RGB15(31,31,31), VERTEX_PACK(floattov16(0.9004603148),floattov16(0.125)), VERTEX_PACK(floattov16(-0.200460121),0), TEXTURE_PACK(inttot16(0),inttot16(128)), FIFO_COMMAND_PACK(FIFO_COLOR, FIFO_VERTEX16, FIFO_TEX_COORD, FIFO_COLOR), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2309698611),floattov16(0)), VERTEX_PACK(floattov16(-0.09567070752),0), TEXTURE_PACK(inttot16(8),inttot16(128)), RGB15(31,31,31), FIFO_COMMAND_PACK(FIFO_VERTEX16, FIFO_TEX_COORD, FIFO_COLOR, FIFO_VERTEX16), VERTEX_PACK(floattov16(0.176776737),floattov16(0)), VERTEX_PACK(floattov16(-0.1767765582),0), TEXTURE_PACK(inttot16(0),inttot16(128)), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2309698611),floattov16(0)), VERTEX_PACK(floattov16(-0.09567070752),0), FIFO_COMMAND_PACK(FIFO_TEX_COORD, FIFO_COLOR, FIFO_VERTEX16, FIFO_TEX_COORD), TEXTURE_PACK(inttot16(8),inttot16(117)), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2004603148),floattov16(0.125)), VERTEX_PACK(floattov16(-0.200460121),0), TEXTURE_PACK(inttot16(8),inttot16(117)), FIFO_COMMAND_PACK(FIFO_COLOR, FIFO_VERTEX16, FIFO_TEX_COORD, FIFO_COLOR), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2004603148),floattov16(0.125)), VERTEX_PACK(floattov16(-0.200460121),0), TEXTURE_PACK(inttot16(16),inttot16(117)), RGB15(31,31,31), |
the first problem is in here :
Code: |
FIFO_COMMAND_PACK(FIFO_COLOR, FIFO_VERTEX16, FIFO_TEX_COORD, FIFO_COLOR), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2309698611),floattov16(0)), VERTEX_PACK(floattov16(-0.09567070752),0), TEXTURE_PACK(inttot16(8),inttot16(128)), RGB15(31,31,31), |
it send 2 times the FIFO_COLOR with the same value RGB15(31,31,31).
when i change the color of it in the first part is works, but the second part doesn't do anything?
But i was thinking that this is just garbage to fill the chunks to make it 4 bytes??
Because later in the output i saw this :
Code: |
FIFO_COMMAND_PACK(FIFO_COLOR, FIFO_VERTEX16, FIFO_TEX_COORD, FIFO_COLOR), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2309698611),floattov16(0)), VERTEX_PACK(floattov16(-0.09567070752),0), TEXTURE_PACK(inttot16(8),inttot16(128)), RGB15(31,31,31), FIFO_COMMAND_PACK(FIFO_VERTEX16, FIFO_TEX_COORD, FIFO_COLOR, FIFO_VERTEX16), VERTEX_PACK(floattov16(0.176776737),floattov16(0)), VERTEX_PACK(floattov16(-0.1767765582),0), TEXTURE_PACK(inttot16(0),inttot16(128)), RGB15(31,31,31), VERTEX_PACK(floattov16(0.2309698611),floattov16(0)), VERTEX_PACK(floattov16(-0.09567070752),0), |
in the second part 2 times the FIFO_VERTEX16 was send, but in the last part of the second part there's this code :
Code: |
VERTEX_PACK(floattov16(0.2309698611),floattov16(0)), VERTEX_PACK(floattov16(-0.09567070752),0), |
its exactly the same as in the first part!
So i was really thinking that this is just to fill the fifo or something?
Am i right??
(sorry for my bad english, im dutch)