Re: [Misfitmodel3d-devel] Quake3 MD3 file format
Brought to you by:
kworces
|
From: Russell V. <ru...@co...> - 2005-12-20 04:19:14
|
Russell Valentine said the following on 12/19/05 18:05: >>You may want to look at what I did in lwofilter.cc, which is more >>recent than the md2 code. That's the approach I'm using for model >>filters going forward (ie, having a readUint16, readFloat32, and doing >>the endian conversion in that function). The pending COB binary >>support uses this method as well. Doing it this way is much less >>likely to result in a missed endian conversion... speaking of which... > > > Excellent, I will defiantly make use of how you do it there. In the middle of converting it to be a little more cleaner and use functions to read in values like your lwofilter.cc, I'm copying and pasting a lot of the functions readU1, readI4, readString. Makes me wonder if I should separate that stuff and put it in bufferfilter class that could be inherited. The inherited class would have m_bufPos and the functions then are included, you setup m_bufPos correctly and off you go. Anyway I'll have my own separate ones in md3filter, I don't think it would be to hard to change it later. What were you planning of doing for with the COB support? Russell Valentine |