Compile Fixes for Win32.
This commit is contained in:
@@ -199,11 +199,11 @@ int *numComponents_ret)
|
||||
|
||||
// previous size calculation, see new calcs below.
|
||||
long size_prev = hd.siz[1]+hd.siz[0]*65536;
|
||||
osg::notify(osg::INFO) << "previous size calc = "<<size_prev<<" hd.siz[1]="<<hd.siz[1]<<" hd.siz[0]="<<hd.siz[0]<<endl;
|
||||
osg::notify(osg::INFO) << "previous size calc = "<<size_prev<<" hd.siz[1]="<<hd.siz[1]<<" hd.siz[0]="<<hd.siz[0]<<std::endl;
|
||||
|
||||
// order of size calculation swapped, by Christo Zietsman to fix size bug.
|
||||
long size = hd.siz[1]*65536+hd.siz[0];
|
||||
osg::notify(osg::INFO) << "new size calc = "<<size<<" hd.siz[1]="<<hd.siz[1]<<" hd.siz[0]="<<hd.siz[0]<<endl;
|
||||
osg::notify(osg::INFO) << "new size calc = "<<size<<" hd.siz[1]="<<hd.siz[1]<<" hd.siz[0]="<<hd.siz[0]<<std::endl;
|
||||
|
||||
|
||||
int ncpal=4; // default number of colours per palette entry
|
||||
|
||||
@@ -133,12 +133,12 @@ osgDB::ReaderWriter::ReadResult ReaderWriterLWO::readNode(const std::string& fil
|
||||
osg::Vec3* coord = new osg::Vec3[vertexCount];
|
||||
for (int i=0;i<lw->vertex_cnt;++i)
|
||||
{
|
||||
// From the spec_low.lxt :
|
||||
// "By convention, the +X direction is to the right or east, the +Y
|
||||
// direction is upward, and the +Z direction is forward or north"
|
||||
// However, the osg sticks to the more conventional, y to the north,
|
||||
// z upwards, x is the same - rigth/east. To handle this difference
|
||||
// simple exchange osg_z for lwo_y, and osg_y for lwo_z.
|
||||
// From the spec_low.lxt :
|
||||
// "By convention, the +X direction is to the right or east, the +Y
|
||||
// direction is upward, and the +Z direction is forward or north"
|
||||
// However, the osg sticks to the more conventional, y to the north,
|
||||
// z upwards, x is the same - rigth/east. To handle this difference
|
||||
// simple exchange osg_z for lwo_y, and osg_y for lwo_z.
|
||||
|
||||
if (cim[i]>=0) coord[cim[i]].set(lw->vertex[i*3], lw->vertex[i*3+2], lw->vertex[i*3+1]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user