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 / Biggest Matrix Size

Author
Message
Robin
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 29th Jul 2003 18:52
Hi
what is the biggest matrix size you can make in DBP (I have DBC)?
Thanks
Robin
http://home.1asphost.com/thegameszone/arenabanner.gif[/img]
http://www.thegameszone.tk
[email protected]
Attreid
23
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 29th Jul 2003 18:58
I never tried to make a 20000000000*20000000000 unites matrix, but .. if you're talking about the numbers of tiles, I usually make 100*100 tiles, and I have ~100 fps

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Jul 2003 19:07
Biggest size is 16384 tiles which is 128*128 or you could have 64*256

You get much better FPS if you make lots of small matrices and join them together rather than one big matrix

The programmer formerly known as sonic
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 29th Jul 2003 19:08
i normal go

Make Ma...

And my computer laughs and goes hey guys hes gonna use a matrix again...lol...

Then i go into Milkshape3d and make a 3D object-like a matrix and use Kensupens Awsome code...

In our hearts and minds we keep the powers of love, hope and the hidden powers of evil in which we can mold a hero or daemon of ourselves-Book of Enoch Chapter III
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Jul 2003 19:11
@spooky

That has changed in U5 Beta 2 it seems, the limit is now 104*105 (which works out to be 65520 verticies)

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Jul 2003 19:16
What! I'll have to go and test that!

The programmer formerly known as sonic
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Jul 2003 19:31
You are right:

U5 says: "MAKE MATRIX now has built in check for index buffer usage that exceeds 65535 indices (only 16bit index buffer supported)"

Rob K, how do you get to 104*105 being 65520 vertices. I thought each tile is 4 vertices which when a matrix was 128*128=16384 tiles * 4= 65536 vertices.

Am I missing something? Is it a bug do you think.

Not that it really matters as 100*100 matrices are more than ample and people should be stitching together smaller matrices if they want huge matrices or some clever wrapping and matrix updating.

The programmer formerly known as sonic
Yuri
23
Years of Service
User Offline
Joined: 12th Jun 2003
Location: Italy
Posted: 29th Jul 2003 19:39 Edited at: 29th Jul 2003 19:40
but tiles doesn't have common vertices..

using the logic of spooky a 2x2 tiles matrix should have 2*2=4 tiles *4 = 16 verticies..
but a 2x2 tiles matrix doesn't have 9 verticies?



CBMZone main administrator
http://www.cbmzone.com
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Jul 2003 20:36
There are 6 vertices per tile. One for each corner of each triangle making up the tile.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Jul 2003 20:38 Edited at: 29th Jul 2003 20:39
Remember that all shapes in 3D are made out of triangles, so for each tile, you need two triangles. Each triangle has 3 verticies = 6 per tile

104*105*6 = 65520

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Jul 2003 23:23
Simple as that! I was thinking that triangles next to each other shared vertices but obviously not.

Interested to know why matrix limit was larger in P4.1 though. Guess we will never know.

The programmer formerly known as sonic
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Jul 2003 01:31
The matrix limit was larger in P4.1 because the MAKE MATRIX command didn't check the size to limit it correctly.

The Wendigo
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 30th Jul 2003 02:44
a 4x4 matrix has 5 verticese by 5 vertecese. therefore, you would have 25 verticese. 105x106 vertecese = 11130. The way you guys are talking, matricese more than double the necisarry number of verticese. Matrix tiles don't share verticese? Why not? If that's the case, then I'm never using one again.... I'll stick to my program that generates shared vertex matrices which seems to run faster anyways and it looks nicer too since it's a 3D object .

Current Projects: Game Spawn 85%, mini BSP maker 50%, Height Mapper with many features 75%, Space Tactical (Like BC300AD) 15%.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Jul 2003 03:04
I personally don't use the built in matrices as they are very limited.

BTW. It is spelt verticies not vertecese.

Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 30th Jul 2003 06:50
I regularly create matrices as large as 4000x4000 using fairly simple trickery I'm currently working on a massive matrix system for public release.

It'll be released as soon as I get around to actually writting it, which will be as soon as my DBPro starts displaying keywords again. (see seperate thread...)

Pneumatic Dryll
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Jul 2003 07:17 Edited at: 30th Jul 2003 07:18
Quote: "It'll be released as soon as I get around to actually writting it, which will be as soon as my DBPro starts displaying keywords again. (see seperate thread...)"


PD, if you really cannot get keywords to display, send me an email and I will send you the current (U5 Beta 2) keywords file + info on where to put it.

It was installed by the updater in my case, maybe your setup has somehow confused the update program.

Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 30th Jul 2003 07:24 Edited at: 30th Jul 2003 07:24
I have DBDN I could download the BETA's too - heck I think this one is even public isn't it? I just dont want my DBPro to be even more unstable and watermarked - i'll wait for the final release before I code again. Thanks for offer though

Pneumatic Dryll

Login to post a reply

Server time is: 2026-07-21 21:13:27
Your offset time is: 2026-07-21 21:13:27