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.

2D All the way! / Matrix Tiles problem

Author
Message
black_doT
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 5th Jul 2004 08:15 Edited at: 5th Jul 2004 08:21
I have porblem with tiles for matrix i have made 128x64 image file with two colors to use it as test texture... and when i make matrix prepare texture with 2 accross and 1 down i get this on the screen

and i used this as texture

so how can i remove this lines to show... the texture colors are each 64x64 and are aligned exactly one to each other.. and still u can se that lines on overlap.. i have tried to change set texture to miror it and all other but with no succes
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 5th Jul 2004 17:22
when loading the texture did you add a ,1 to the end of the load image command?

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th Jul 2004 18:31
look up the command "set matrix trim"

"eureka" - Archimedes
black_doT
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 6th Jul 2004 02:39
@indi that partialy helps .. but still it leaves small amount of ovelaping texture...
@phaelax.. i have tried that and only when i set it to x=0 and y=0 it show good texture but still leaves that ugly lines..
here is the result after setting 1 after load image command

so does anyone have any clue.. and if not.. do u have any other idea how to make landscape... cuz if i use make terrain i get terrain woth just couple polygons.. and it is ugly... and i cant find anny good Bsp compiler that can make landscapes...
black_doT
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 8th Jul 2004 07:33 Edited at: 8th Jul 2004 07:35
thanks phalex that trim helped me.. but i had to look on another code to se that it has to be arround 0.1.. so now it works..
and i if someone hase wonder how to apply grass texture on flat tiles and rock on ridges... here is code to do that.. it will tile a matrix that is 128x128 tiles.. try it on some matrix to see how it looks..
before i made this i alwas had some tiles badly texturized like on that pics above where u can see the grass on that ridge... now i have fixed that with diagonal checking height...
anyway.. all this is for RTS i want to make..
so if somebody can provide me with code that can handle selection of units but keep in mind that camera can xrotate too... so it is litle harder....but i know there is some talented guys in there

Login to post a reply

Server time is: 2025-05-15 10:08:49
Your offset time is: 2025-05-15 10:08:49