d1,d2 level program

The place to promote and link to Descent levels - both multiplayer and singleplayer - D1, D2 and D3.

Moderators: Sniper, Xfing

Post Reply
User avatar
Theftbot
DBB Ace
DBB Ace
Posts: 172
Joined: Sun May 11, 2003 2:01 am

d1,d2 level program

Post by Theftbot »

I am not a programmer, I was wondering if it is possible to make a d1,d2 level volume calculator like a single normal cube would be 8000units cubed(20X20X20)
User avatar
Topher
DBB Alumni
DBB Alumni
Posts: 3545
Joined: Thu Nov 05, 1998 12:01 pm
Location: New York
Contact:

Post by Topher »

This is something I pseudo implimented in LVLVIEW32, but it didn't work right (the math was probably correct, but my programming most likely wasn't). Calculating the volume is pretty tricky. The way I did it was to divide the cube into 4 tetrahedrons and figure out their volume based on their side lengths. However, I never really investigated if this would work for all cases (it wouldn't work if the cube intersected itself for example).

Why do you need the volume anyway?
Post Reply