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.

Dark GDK / Tiles in huge terrain

Author
Message
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 28th Jan 2009 00:16
I'm sitting with T-ED and making a terrain (just a demo terrain) and exporting it to a lot of x-files. So far I have 16.

My idea is to use 9 tiles at the time and turn them on/off during gameplay.

But to load 16 tiles takes some time and I'm a fraid of how long time it will take with 10.000 tiles. So my plan is to load the nesseary tiles during gameplay....

But... how to do that best? Any ideas?

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 28th Jan 2009 00:53
As you come within visibility of the next tile, load the necessary one...?
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 28th Jan 2009 03:35
Quote: "I'm a fraid of how long time it will take with 10.000 tiles."


Wait, you want to load your terrain as 10,000 different tiles?!??! Wouldn't you better off with, like, 16 tiles? 10,000 seems like a bit much.

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 28th Jan 2009 04:52
But AndrewT is right. Why the heck would you need that many? I'm guessing they average about a megabyte. That's 9.75 or so gigabytes. That is a lot.
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 28th Jan 2009 11:52
Quote: "
Wait, you want to load your terrain as 10,000 different tiles?!??! Wouldn't you better off with, like, 16 tiles? 10,000 seems like a bit much.
"


Each tile is 500x500 but maybe I should make it bigger?

I'm using a 9x9 matrix:

123
456
789

The player are on tile 5. When he moves toward tile 6 then i will turn off tile 1,4,7 and turn on tiles after 3,6,9.

that means that I need to load 3 tiles at the time. He can only see 1 tile ahead but when he is at the border of 5 and 6 he can actually only see to the border of 6.

The problem is the loadtime. When I do it with plane object there are no problems because its so fast...

But I will try to make the tiles bigger...

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 28th Jan 2009 12:52
use a seperate thread for loading
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 28th Jan 2009 18:01
@bjadams: Hmm..... why didnt I see that? Thanks

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 28th Jan 2009 22:16
Oh god. Do not use matrices. It's easier to set up and manipulate the vertices yourself.
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 28th Jan 2009 23:04
@Zuka - Yes... if you know how to

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 2nd Feb 2009 16:40
hey how did you get 10000 tiles in T.ED?

the maximum it lets you do is 16x16=256 tiles

dont hate people who rip you off,cheat and get away with it, learn from them
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 3rd Feb 2009 09:41
@Pagan - I havent got that .... it was just a number to show that when I mean huge.... i mean huge

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.

Login to post a reply

Server time is: 2024-09-30 17:38:15
Your offset time is: 2024-09-30 17:38:15