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 Discussion / Matrix changing textures

Author
Message
Data
20
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 30th Nov 2006 23:19
Hi,

I'm wondering is there anyway to texture a matrix in one texture, and then once the player(1st person camera) passes over a specific tile to change this specific tile to a different texture.



Thanks
Data

Free sigs, email addresses and contests!
JimmyR.Co.Uk
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Dec 2006 00:20
Try the set matrix tile command, which works along with the prepare matrix texture command.

Data
20
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 3rd Dec 2006 00:50 Edited at: 3rd Dec 2006 00:50
This is the code I began with



I tried using if statements to determine where the camera is in terms of x and z coordinates and then tried to use that to change the tile. In my main loop I would put in



Basically if the if statemnt above was true then I believed the player was in tile 1,1 so the computer needs to set the matrix texture of tile 1,1 to texture 2. At least thats what I think should happen. Unfortunately, when I used the above I would either get no result at all or the entire matrix would change texture.
What am I doing wrong?

Free sigs, email addresses and contests!
JimmyR.Co.Uk

Login to post a reply

Server time is: 2025-05-28 02:22:14
Your offset time is: 2025-05-28 02:22:14