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 / What's up with Matrix Textures?

Author
Message
Relativity
20
Years of Service
User Offline
Joined: 29th Mar 2005
Location: Position is relative.
Posted: 18th May 2005 08:10
I just can't figure out the DB system for texturing a matrix. Could someone please give me a step by step explanation of what everything does?

"It's against my programming to impersonate a deity!"~C-3P0
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 19th May 2005 02:19
to texture the matrix with an image:
prepare matrix texture matrix, image, across, down

when you did this, you can start with texturing:
set matrix tile matrix, x-tile, z-tile, part

The parts will go from top-left -> bottom-right

An example:

prepare matrix texture 1, 1, 10, 8
-> now you textured your matrix with an image wich
you have cut in 80 pieces (10 x 8 = 80)
note: the whole matrix is textured with part 1

THE IMAGE:
1 -2 -3 -4 -5 -6 -7 -8 -9 -10
11-12-13-14-15-16-17-18-19-20
21-22-23-24-25-26-27-28-29-30
31-32-33-34-35-36-37-38-39-40
41-42-43-44-45-46-47-48-49-50
51-52-53-54-55-56-57-58-59-60
61-62-63-64-65-66-67-68-69-70
71-72-73-76-75-76-77-78-79-80

set matrix tile 1,10,12,56
-> now the tile with coordinate 10,12 will be textured in part 56
Relativity
20
Years of Service
User Offline
Joined: 29th Mar 2005
Location: Position is relative.
Posted: 20th May 2005 02:16
Thanks! That really helped a lot.

"It's against my programming to impersonate a deity!"~C-3P0

Login to post a reply

Server time is: 2025-05-23 02:23:28
Your offset time is: 2025-05-23 02:23:28