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 / It would be cool if...

Author
Message
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 30th Aug 2003 02:35
You could make a texture just cover the WHOLE frigging terrain or matrix. Not repeated over and over or messing with tiles, just plop a single texture on the whole thing. Why is that so hard?
cusoi
23
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 30th Aug 2003 03:00
Just a tought, but couldn't you just make the matrix 1 tile big. So use:
make matrix 1,1000,1000,1,1.
Than you can have 1 texture. But now I'm typing it I understand, you still want mountains and stuff I think...

B-e-a-utiful... Visit my site: www.cuso.tk
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 30th Aug 2003 03:28
It's easy to do that. Prepare the texture and make a function to set each tile of the texture to each tile of the matrix.

--Mouse

Famous (Avatarless) Fighting Furball
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 30th Aug 2003 03:34 Edited at: 30th Aug 2003 03:35
You need a few lines of code, but you can do that pretty easily.



That's not tested but it should work. The thing about matrices is they'll crash if you try and texture beyond the extremities, so you might have to for loop from 1 to xtile-1 (for example) to make sure it works.

Insiiiiiiiiiiiiiiiiiiiiiiiide!
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 30th Aug 2003 03:41
I think ZomBfied is feeling a little lazy

Perhaps something as simple as: Texture Matrix <matrix number>, <image number> would be handy.

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 30th Aug 2003 03:57
Yeah, it would be handy, but there are a million possible command shortcuts you could ask for. I think using DB is one way of cutting a huge corner as it is, without asking for even more shaved off the apex.

Insiiiiiiiiiiiiiiiiiiiiiiiide!
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 30th Aug 2003 04:16
hmmm, true. Also if we keep adding these "shortcuts" into DBPro that would increase the final .EXE by a long way. It compiles to over 4MB for a simple program as it is

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 30th Aug 2003 06:31
I'm sure I heard they were gonna set it up to compile only the command sets required? Or maybe I heard wrong. Or maybe that was just a request from someone.

Insiiiiiiiiiiiiiiiiiiiiiiiide!
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 30th Aug 2003 15:11
Lazy is what DB Pro is all about! That's what keeps me coming back.
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 30th Aug 2003 20:28
Here is your function and an example of how to use it.

Change or add any image as needed




Hope it helps

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 31st Aug 2003 03:16
YES! thanks.

Login to post a reply

Server time is: 2026-07-25 08:13:16
Your offset time is: 2026-07-25 08:13:16