I did it
- Kharg
- - Honorable Old Guard -
- Posts: 406
- Joined: Mon Jan 12, 2009 14:37 pm
- Location: Italy - Sicily - Palermo
- Contact:
Re: I did it
FINALLY!
▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓
• Creator of the: • Current Projects:
• Creator of the: • Current Projects:
- SEASMOD
Code: Select all
Kharg: I'll go to Nottingham on Monday for a 15 days trip! :D
AyCe: Make some screenshots!
Re: I did it
We did our waiting! 12 years in Paraworld!
very nice! how did you do it?
very nice! how did you do it?
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
- AnthonyCole
- - Admin -
- Posts: 2134
- Joined: Sat Apr 18, 2009 13:17 pm
Re: I did it
I've never seen code like this.
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
Re: I did it
// Assuming BBox.min.X <= x <= BBox.max.X, etc.
unsigned long long packedBits;
int ix, iy, iz;
ix = (int)(8191.0f*((x - BBox.min.X)/(BBox.max.X - BBox.min.X)) + 0.5f);
iy = (int)(8191.0f*((y - BBox.min.Y)/(BBox.max.Y - BBox.min.Y)) + 0.5f);
iz = (int)(8191.0f*((z - BBox.min.Z)/(BBox.max.Z - BBox.min.Z)) + 0.5f);
packedBits =
(unsigned long long)ix |
((unsigned long long)iy << 13)|
((unsigned long long)iz << 26);
unsigned long long packedBits;
int ix, iy, iz;
ix = (int)(8191.0f*((x - BBox.min.X)/(BBox.max.X - BBox.min.X)) + 0.5f);
iy = (int)(8191.0f*((y - BBox.min.Y)/(BBox.max.Y - BBox.min.Y)) + 0.5f);
iz = (int)(8191.0f*((z - BBox.min.Z)/(BBox.max.Z - BBox.min.Z)) + 0.5f);
packedBits =
(unsigned long long)ix |
((unsigned long long)iy << 13)|
((unsigned long long)iz << 26);
Re: I did it
so now,new dynosaurs/units can be added?