<p>I use the md2 format in qcake (http://www.qcake.org)</p><p>1. </p><=
p>On Intel System it works. On PPC-Linux and OSX i have problems. I think t=
ihis is an endian problem.</p><p>The md2 loader reads the binary data from =
the file in the memory in a strucht pointer. On ppc the byteorder is not th=
e same as on intel systems.</p><p> 2. I have changed the routine to lo=
ad a bmp texturfile if it ist not devined in the md2 File, it works fine.</=
p><p>I use md2 files from cube. I convert the skin files to bmp und rotate =
them. <br /></p><p>-- SNIP -- </p><p> </p><p><p>static ssgEntity * con=
vert_to_ssg()<br />{<br /> sgVec3 vert;<br /> =
sgVec2 uv; <br /></p></p><p><p> ...<br /> ...<br /> </p=
><p> /**Activate the first state*/<br />  =
; if(stated)<br /> states -> select=
Step( 0 );<br /> else {<br /> &nb=
sp; ulSetError(UL_WARNING, "LoadMD2: No skins specified in MD2 f=
ile! use skin.bmp");<br /><br /> ssgSimp=
leState *state =3D new ssgSimpleState();<br /> &nbs=
p; state -> enable ( GL_TEXTURE_2D );<br /> &nbs=
p; state -> setTexture( current_op=
tions -> createTexture ( "skin.bmp" ) );<br /> &nbs=
p; states -> setStep(0, state);<br /> &nb=
sp; states -> selectStep( 0 );<br />&nbs=
p; }</p><p>} </p></p><p>-- SNIP --<br /> </p><p><br /=
></p><BR>=
|