RE: [Plib-devel] md2
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2005-08-03 16:42:16
|
Gentlemen, Should the change in (2) below be put into CVS? John F. Fay Technical Fellow, Jacobs/Sverdrup TEAS Group joh...@eg... 850-729-6330 _____ From: pli...@li... [mailto:pli...@li...] On Behalf Of ha...@th... Sent: Monday, July 25, 2005 4:18 AM To: pli...@li... Subject: [Plib-devel] md2 I use the md2 format in qcake (http://www.qcake.org) 1. On Intel System it works. On PPC-Linux and OSX i have problems. I think tihis is an endian problem. The md2 loader reads the binary data from the file in the memory in a strucht pointer. On ppc the byteorder is not the same as on intel systems. 2. I have changed the routine to load a bmp texturfile if it ist not devined in the md2 File, it works fine. I use md2 files from cube. I convert the skin files to bmp und rotate them. -- SNIP -- static ssgEntity * convert_to_ssg() { sgVec3 vert; sgVec2 uv; ... ... /**Activate the first state*/ if(stated) states -> selectStep( 0 ); else { ulSetError(UL_WARNING, "LoadMD2: No skins specified in MD2 file! use skin.bmp"); ssgSimpleState *state = new ssgSimpleState(); state -> enable ( GL_TEXTURE_2D ); state -> setTexture( current_options -> createTexture ( "skin.bmp" ) ); states -> setStep(0, state); states -> selectStep( 0 ); } } -- SNIP -- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |