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 Professional Discussion / Could someone explain Set Matrix Trim??

Author
Message
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 14th Nov 2003 17:21
Ok,..I use set matrix trim to take out the nasty line between tiles that seems to be caused by the texture grid reading into the next texture. I have done it imperically becasue there is no details as to what this command actually does to achieve the triming effect.
I have it set to a value of 0.001 for both the x and y values,and that seems to work well,..although values of 0.0005 work to and values greater than 0.01 seems to tear the texture map apart...but what does it mean?? Will it change for different textures or texture sizes? It would be nice to know what is actually happening when I set the trim values rather than just trial and error at it LOL.
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 14th Nov 2003 17:58
I had high hope for new command Set Matrix Trim but am not very impressed with it. Values of .001 are about the best as you have discovered but you can still see the joins between tiles, specially if tiles are perfectly seamless.

I have gone back to setting 'filter' value of set matrix command to 1 for intermediate filtering. This gives perfect tiling but no smoothing. Good enough for my game but may not be acceptable for certain types of game where a filter value of 2 for nice smoothing is a must.

Boo!
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 14th Nov 2003 19:17
Understood,...Ive toyed with the numbers and either .0006 or .0005 seem to work well. Also Ive played with tons of texturemaps for the ground surfaces and have found that you can determine the texturemaps worthiness right in the paint program you are using by zooming in very close to the texture. Any blockiness at all will show up like crazy on the ground map, so I now do a smoothing on that map sometimes combined with a blur. I thought it would still appear blocky no matter what I did,..because if u zoon far enough thats all you see LOL,..but I only zoom to about that same level of detail or size that the texture will appear as you are walking or crawling over it. Smoothed/blurred to that level makes it look great in the game. Its all smoke and mirrors anyways,...hehe

Any ideas how to get the mipmapping working?? or is that just tacked onto the command for future possibilities?? apparently the .X format (.dns??) allows for mipmapping the texture, and its suppose to automaticlaly adjust for the correct mip map. I havent touched that one yet,..but wondered if u have.
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 14th Nov 2003 20:52
just read the help for matrix commands. Most important one being SET MATRIX where you can set mipmapping mode, 0=none,1=no smoothing,2=smoothing

You can also set transparency, wireframe, light sensitivity, e.t.c.

another command is SET MATRIX TEXTURE which also set mipmap mode and how texture tiles across your matrix.

Boo!

Login to post a reply

Server time is: 2026-07-26 14:31:07
Your offset time is: 2026-07-26 14:31:07