PDA

View Full Version : m15 file changing vertices



kryton9
03-07-2007, 02:45
Petr, if a m15 file was loaded and it had various layers into a display list, how can the vertices for a particular layer be accessed?

For the new model viewer I plan on supporting layers and manipulating them if needed.

Also is looking over the m15 format, you have the color info, but no alpha, is that why we can't fade m15 files as we can say in Blender?
If that is the case, I think adding an alpha value would be great. It would be neat to design glass in blender and that have that appear as planned in thinBasic.

Thanks.

Petr Schreiber
03-07-2007, 09:28
Hi Kent,

yes, no alpha there. But you can use TGA textures for model from TBGL 0.2.0, so this could be the way.
Another thing is ( when you do not use vertex color ) to fade whole model using blending + set of tone of gray color to whole model ( 1 line of code ).

Regarding layer, each vertex has its layerID accesible through tbgl_GetVertexLayer. So you can test for this value and manipulate vertices as usual.

I will add functions to retireve / set string name for the layer in next TBGL.


Bye,
Petr

kryton9
04-07-2007, 01:25
THanks for the explanations, I have a better picture now of how to go about things.