Point3F vertPos(???) Fluidrender.cc
by John Lyons · in RTS Starter Kit · 10/23/2005 (11:03 am) · 1 replies
I consistantly crash and recieve an error when running the rts with a large waterblock.
// loop through all displayed verts
for( U32 i=0; i
{
vertex *vert = m_pVertex + m_pIndex[i];
Point3F vertPos( vert->XYZ.X, vert->XYZ.Y, vert->XYZ.Z ); <--------------------------vert->??? is the cause
// perform half angle calculation
Point3F eyeVec = eyePos - vertPos;
eyeVec.normalize();
Point3F half = -lightDir + eyeVec;
half.normalize();
F32 specular = mDot( half, Point3F( 0.0, 0.0, 1.0 ) );
if( specular < 0.0 ) specular = 0.0;
// store specular color in vert
vert->SPECULAR = m_SpecColor * pow( specular, m_SpecPower ); <--------------------------vert->??? is the cause
if I comment out this line the error goes away , but specular fails to be seen.
}
}
any suggestions would be welcomed.
// loop through all displayed verts
for( U32 i=0; i
vertex *vert = m_pVertex + m_pIndex[i];
Point3F vertPos( vert->XYZ.X, vert->XYZ.Y, vert->XYZ.Z ); <--------------------------vert->??? is the cause
// perform half angle calculation
Point3F eyeVec = eyePos - vertPos;
eyeVec.normalize();
Point3F half = -lightDir + eyeVec;
half.normalize();
F32 specular = mDot( half, Point3F( 0.0, 0.0, 1.0 ) );
if( specular < 0.0 ) specular = 0.0;
// store specular color in vert
vert->SPECULAR = m_SpecColor * pow( specular, m_SpecPower ); <--------------------------vert->??? is the cause
if I comment out this line the error goes away , but specular fails to be seen.
}
}
any suggestions would be welcomed.
Torque Owner asmaloney (Andy)
Default Studio Name