Re: HVAedit and malformed voxels. - XCC ForumRegister | Login | Search
History | Home | Messages

HVAedit and malformed voxels.Blade00:16 01-03-2002
Re: HVAedit and malformed voxels.Koen van de Sande06:41 01-03-2002
Re: HVAedit and malformed voxels.Blade07:21 01-03-2002
Re: HVAedit and malformed voxels.will18:44 01-03-2002

> > Wasn't it the .Det entry (could be called differently,
this is the VXLSE name) in the head/tail of the
VoxelSection, which is the scale and must always be about
0.83? This was a bug in one of the VXLSE versions...

yes it was. And that is what DMZ describes below:

> This is what DMZ sent me:
> <quote>
> Anyway... I seem to remember the problem is in the way the
creation programs
> don't initialise one of the values to 1/18th, or
something. It's been a
> while. No, I can't do it myself since I'm not reinstalling
VC++ back onto my
> machine now, but it should be easy for anyone to fix *my*
editor, given the
> source, to change the values automatically when it loads
it in.

> In VoxelSection.cpp:

> std::istream& operator>>(std::istream &stream,VoxelSection
&section)

> Where it says
>
stream.read(reinterpret_cast<char*>(&tmp._scale),sizeof(float));

> just beneath this line, add the line:

> tmp._scale = 0.083333F;

maybe it would be nicer if the HVAEditor prompts the user to
correct this value if it isn't very near to this value?

> Which should (hopefully) correct the problem. The code had
recently been
> modified to compile under Visual Studio.NET, but hopefully
still compiles
> under VC++6.
> </Quote>

> He has sent me the source code, but I don't have VC++ or
visual studios.net to compile it myself.

sorry, can't help. But is the sourcecode public? (It ought
to be ;))



Home | Post | Users | Messages