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 / Need Help With Texturing a Matrix

Author
Message
Anonymous
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Australia
Posted: 9th Nov 2002 13:46
I know how to make a matrix,I want to know how to put a texture on one. I tried puting a texure on, but there was a error. Heres the code I wrote:

load bitmap "floor1.bmp",1
MAKE MATRIX 1,10000.1,10000.0,25,25
prepare matrix texture 1,1,2,2

This is what the the error log said:
Image does not exsit. I added the image in to my project.

I know theres something wrong in the code where it says prepare matrix texture 1,1,2,2(I think)
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 9th Nov 2002 13:56
Ok u put the code wrong here is what u put

load image "floor1.bmp",1
MAKE MATRIX 1,10000.1,10000.0,25,25
prepare matrix texture 1,1,1,1

or

load image "floor1.bmp",1
MAKE MATRIX 1,10000.1,10000.0,25,25
prepare matrix texture 1,1,2,2

cloud
TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 9th Nov 2002 16:03
thats not right. Anonymous, check your code or game again. it cant be the "load bitmap "floor1.bmp",1
MAKE MATRIX 1,10000.1,10000.0,25,25
prepare matrix texture 1,1,2,2" problem because it seems to be right. the syntax is PREPARE MATRIX TEXTURE matrix number, image value, across,down. it must be another code problem or something else. also, when you see a line being hylighted(saying image does not exist), remember that it is the code above it.

Anonymous
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Australia
Posted: 13th Nov 2002 07:12
Thanks! its working now. And sorry, I think I put this in the wrong board, I think it ment to go in the New Corner Board.

Login to post a reply

Server time is: 2024-04-23 23:36:46
Your offset time is: 2024-04-23 23:36:46