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.

DarkBASIC Professional Discussion / matrix tile count returns 16

Author
Message
EDGECOM
19
Years of Service
User Offline
Joined: 7th Sep 2006
Location: US
Posted: 27th Jun 2010 17:50
well this might be a dumb question but I am going to ask it anyways

why does the MATRIX TILE COUNT(1) return 16?

every time I use the MATRIX TILE COUNT(1) it reports 16 no matter

what I change the matrix size to example:

MAKE MATRIX 1,1000,1000,32,32

should report a total of 64 tiles or at the verry least 32 yes no?

or is 16 the max or used for some other purpose?

cause my tile picking formula works just fine for selecting tiles

JLMoondog
Moderator
17
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 27th Jun 2010 17:56
Actually the MATRIX TILE COUNT() has nothing to do with how many segments are in your matrix but how many textures have been prepared for the matrix. Honestly, confusing name choice for the command.

EDGECOM
19
Years of Service
User Offline
Joined: 7th Sep 2006
Location: US
Posted: 27th Jun 2010 18:33
yeah thank you that has to be the fastes reply ever

maybe should rename it to MATRIX TILE TEXTURE COUNT() or TEXTURE TILE COUNT()

Login to post a reply

Server time is: 2026-07-25 08:30:07
Your offset time is: 2026-07-25 08:30:07