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.

Newcomers DBPro Corner / Why is this matrix textured??

Author
Message
thedubdude
21
Years of Service
User Offline
Joined: 24th May 2003
Location: San Jose, Ca.
Posted: 17th Sep 2004 16:02
Hi Folks,

I copied this code from the examples supplied by DarkBasic Pro. I modified it a bit to simplify things. I'm trying to understand how to texture a matrix. The following code works but I can't figure out why. There is no SET MATRIX TILE command which is what I thought was needed. Why is this matrix textured? Thanks for your help?


Regards Don Wile
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 17th Sep 2004 19:04
The PREPARE MATRIX TEXTURE command has the extra effect of filling each tile with the first image in your texture file. You can of course then use FILL MATRIX to fill each with a different tile or SET MATRIX TILE to update individual tiles.


Boo!
thedubdude
21
Years of Service
User Offline
Joined: 24th May 2003
Location: San Jose, Ca.
Posted: 18th Sep 2004 15:59
Actually, upon futher examination, the matrix isn't textured with the indicated bitmap. Maybe the SET MATRIX TILE command is needed? Please help. Thanks.

Login to post a reply

Server time is: 2024-09-23 00:18:38
Your offset time is: 2024-09-23 00:18:38