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.

Newcomers DBPro Corner / Size of textures on a matrix

Author
Message
krannock
21
Years of Service
User Offline
Joined: 19th May 2003
Location: United Kingdom
Posted: 4th Nov 2003 01:44
Hi Guys,

Just been playing around with a matrix and single texture.
the matrix was 1000 x 1000 split into 25 each way. (800x600 display mode)
my maths say this is 40 each tile.
if i set a texture to 512x512 and set it as the texture for all the tiles it looks really clear from a height of 300 angle 55 deg.
if i then re size the texture to 128 and view the same way the image quality is really poor.
Any ideas as to why this is so, considering the size of each tile is theoretically only 40x40?
I am asuming that the 1000x1000 is pixels for the matrix size? Yes? or just an arbitary figure that varies depending on screen res etc.

Thanks.

Smile it could be worse....I smiled...it got worse!
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Nov 2003 14:19
No, the 1000 is db units. Nothing to do with pixels whatsoever!

If you create a cube with sides 1*1*1, this does not mean cube has sides of 1 pixel. You can still texture it with an image 512*512 and it will look good.

Also, whatever screenres you run in, the output will look the same but more detailed and less jaggy lines.

You might want to look at some of the matrix commands, specially SET MATRIX. Play with the 'filter' flag to get better results.

Boo!
krannock
21
Years of Service
User Offline
Joined: 19th May 2003
Location: United Kingdom
Posted: 4th Nov 2003 18:50
Thanks thats cool. Explains a lot of things.

Will have a bit more playtime with the matrix command set i think.

Just one more Question tho.. If i texture with 128*128 will the overall 'size' of the matrix be different than if i texture with 512*512? or does DBP compensate for the texture sizes and keep the matrix the same relative size to a model you might have sitting on it.

thanks

Smile it could be worse....I smiled...it got worse!
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 4th Nov 2003 21:11
The matrix size and the tile size have a "physical" size that depends on your settings:
1000,1000,10,10 or 3000,3000,25,25 etc..
Those "geometric" values won't change whatever you do with your textures..
The texture is applied in order to match and fill the tile size.
The degradation you have experienced comes from the resizing of a 512x512 texture to 128x128..(512x512 pixels resolution against 128x128). As an analogy think to what happens when you change your screen resolution...
If you compare your 2 textures in a 2D editing program (like Paint Shop Pro) you will see that the difference is already there ..
Use the zoom to better see it..
krannock
21
Years of Service
User Offline
Joined: 19th May 2003
Location: United Kingdom
Posted: 5th Nov 2003 10:59
Thanks for that Guys,

Helps alot.

Happy programming to you all.

Smile it could be worse....I smiled...it got worse!

Login to post a reply

Server time is: 2024-09-21 07:53:02
Your offset time is: 2024-09-21 07:53:02