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 / Multiple matrix textures issue

Author
Message
Regnuar
17
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 10th May 2010 10:30 Edited at: 10th May 2010 11:38
Hello

I'm trying to make a small program to make matrix terrains. unfortunately i have one more problem to solve and after days of thinking, seems like i'm not going to complete it by myself.

So, simply the issue is, how can i use more than one texture and how to make shading between texture01 and texture02? Is there possibility to make them as layers?

edit: Oh, i found great post that is pretty much i was looking for. Gonna take a look of it and i'm going to scream if there is still need for aid. For people who're at the same situation as i'm, the link is below.

http://forum.thegamecreators.com/?m=forum_view&t=30456&b=7

- Regards, Regnuar
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 10th May 2010 20:26
Is that what you were looking for? I don't think it is capable to have multiple textures, but it can have a tiled texture with each "square" of the matrix having it's own section of the larger texture.

The fastest code is the code never written.
Regnuar
17
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 11th May 2010 09:00
yup, thats true. you could help by telling me something new, not the things i already know Currently i'm using just one picture from the bird view and sectioning it up to how many tiles exist. After that i use the tools to raise / lower the matrix. this seem to work pretty well. but if someone have tips how to use multiple textures, please tell me.

- Regards, Regnuar
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th May 2010 14:15 Edited at: 11th May 2010 14:17
You can't multi texture a matrix. You need to use plains. But for the effect you're looking for using matrices, you do all the blending in a graphics package, and have each type of blend in s separate section of the main image and use the standard matrix texture commands to texture the matrix.

An image like this...


Or you could use the image kit plugin to create the blends at runtime, then texture the matrix with those.

But you can't take 3 images, and texture one matrix with them.

1 matrix, 1 texture.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-27 20:18:17
Your offset time is: 2026-07-27 20:18:17