126
Releases / Battle model > Field model Conversion FINALLY!!
« on: 2005-12-08 23:40:07 »
Jinrei: Look here, you can find file names in this thread: http://forums.qhimm.com/viewtopic.php?p=62916
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
mov cx, 4B000h
mov ax, ptr pVal
mov di, ax
push ds
pop es
mov eax, 80BFh
rep stosdw
memset( g_fZBuffer, 0x000080BF, sizeof( FLOAT ) * 640 * 480 );
.. because I think that memset() casts 2nd parameter to unsigned char usually, so it won't help you to set the floats, I would use the for() loop instead: int i; float g_fZBuffer[ 640*480 ];
for( i=0; i<640*480; i++ )
g_fZBuffer[ i ] = -1.0;
My engine interpolates already and I have found problems when playing animations where Squaresoft took shortcuts.Yup mine interpolates too and I saw some problems aswell.
void CF7BwDlg::GlDisplayBoneChildren( int bone_parent )
{
int b;
float f;
for( b=0; b<skelet.bones; b++ )
if (( skelet.bone[ b ].parent == bone_parent ) &&
( skelet.bone[ b ].displayed == false )) {
glPushMatrix();
glRotatef( skelet.bone[ b ].roty, 0.0f, 1.0f, 0.0f );
glRotatef( skelet.bone[ b ].rotx, 1.0f, 0.0f, 0.0f );
glRotatef( skelet.bone[ b ].rotz, 0.0f, 0.0f, 1.0f );
//displaying skeleton
glBegin( GL_TRIANGLES );
f = skelet.bone[ b ].length / 10;
glColor3f( 1.0f, 0.8f, 0.8f );
glVertex3f( f, 0.0f, 0.0f );
glColor3f( 0.8f, 1.0f, 0.8f );
glVertex3f( -f, 0.0f, 0.0f );
glColor3f( 1.0f, 1.0f, 1.0f );
glVertex3f( 0.0f, 0.0f, skelet.bone[ b ].length );
glColor3f( 0.8f, 1.0f, 0.8f );
glVertex3f( -f, 0.0f, 0.0f );
glColor3f( 0.8f, 0.8f, 1.0f );
glVertex3f( 0.0f, f, 0.0f );
glColor3f( 1.0f, 1.0f, 1.0f );
glVertex3f( 0.0f, 0.0f, skelet.bone[ b ].length );
glColor3f( 0.8f, 0.8f, 1.0f );
glVertex3f( 0.0f, f, 0.0f );
glColor3f( 1.0f, 0.8f, 0.8f );
glVertex3f( f, 0.0f, 0.0f );
glColor3f( 1.0f, 1.0f, 1.0f );
glVertex3f( 0.0f, 0.0f, skelet.bone[ b ].length );
glEnd();
skelet.bone[ b ].displayed = true;
glTranslatef( 0.0f, 0.0f, skelet.bone[ b ].length );
GlDisplayBoneChildren( b );
glPopMatrix();
}
}
and thanks a bunch for the huuge list MirexDon't thank me, its not my work, it was done by someone else (dunno who).
Oh I forgot to ask, but Mirex, would you happen to have a list of the battle.lpg files too?mine - http://mirex.mypage.sk/FILES/monsters.txt
How did you find out what each of them do anyway?? can you actually view them somehow...?Yea by viewing them probably There are few viewers available on the net, I will ofcourse promote mine Biturn and also see this thread with list of other software: Compilation of Programs