Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Advanced Terrain - Calculating Split value

Author
Message
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 22nd Sep 2004 00:52
How exactly do you calculate the split value? My calculation doesn't work...

Max indices per limb = 64K

Number of indices (i) = 2 * image width * image height (2 polys per pixel)

Therefore, number of Splits = SQRT(i), rounded up.

For a 256 x 256 bitmap, I would expect 2 splits, which = 4 limbs. But this crashes the app. If I set it to 4 Splits (16 limbs) it works.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
IanM
Retired Moderator
16
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Sep 2004 06:37
Aren't there 6 indices per square?

That makes a maximum of 10922 points per limb, and that's a 104x104 square. So your split for 256x256 is 3 or above.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 22nd Sep 2004 08:16 Edited at: 22nd Sep 2004 08:17
All this terminology confuses me

I was working on the number of polys, your figure sounds about right to me - cheers.

I think the Adv. Terrain Dll should automatically increase the split if it's too low - instead of crash

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply

Login to post a reply

Server time is: 2019-04-24 20:40:20
Your offset time is: 2019-04-24 20:40:20