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 texturing

Author
Message
BENOJ
19
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 25th May 2006 21:57
hi guys,
i recently upgradged to DBP, and i am making a matrix editor. The reason i am posting in here, is because i have come to the texturing part and it has ground to a halt. I asked on the DBP forums and no one seems to knwo, mainly becasse everyone uses terrains now rather than matrices.
http://forum.thegamecreators.com/?m=forum_view&t=79860&b=1
anyway i was wondering if you could help, ive got all the code sorted so far, i can texture tiles witht he click of a button etc... on thing is though, there is the checkerboard look :


how can i blend the tiles together making an attractive looking matrix texture, anyone know?



Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 25th May 2006 21:58
I told you how on your other thread

BENOJ
19
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 25th May 2006 22:01
oh yea, sory i never noticed your post, sorry about that, i just tried to search for it, i cant find it in any of the forums, is it in announcements or anything?

do you have the link



BENOJ
19
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 25th May 2006 22:10
ok i now have a theory on how tod o this:
if i get the image at every tile and get the image of the 4 around it, then i blend these images into on, and then set the tile as that image. This should work. (i think)
is it possible to get the image at a tile?



Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
BENOJ
19
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 25th May 2006 22:38
Thanks, but u couldnt use this.
what i mean is its so the user can texture the matrix and then the program can blend the textures in, if i used that then i would have to make loads of images etc.. and then have individual buttons for it etc... unless there is a way do do this in the code, work out which tile is where and then which angle it should be at etc...



Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th May 2006 22:26
nope, cant blend textures on a matrix unless you premake the images like chris suggested.

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike

Login to post a reply

Server time is: 2025-05-25 01:40:14
Your offset time is: 2025-05-25 01:40:14