Page 1 of 1

matching exact Quad Size

Posted: 26 Oct 2011, 09:59
by RSix
hi there,

what is the calculation for the exact 1:1 quad size?

Example:
Picture 230x140 pixel (.png) = quad sizen=" ? "

Code: Select all

<!--T.L.U.R.-->
<quad sizen=" ? " posn="myposn" image="mypicurl" imagefocus="myhoverurl" url="myurl"/>
<!--END of T.L.U.R.-->

Re: matching exact Quad Size

Posted: 26 Oct 2011, 10:05
by fastforza
Moved into the ManiaScript forum. :)

This forum will be renamed soon.

Re: matching exact Quad Size

Posted: 26 Oct 2011, 10:06
by RSix
allright thx. any help for this? i dont want unsharp Pictures on our Server ;)

Re: matching exact Quad Size

Posted: 26 Oct 2011, 10:52
by gouxim
There is no such calculation because the screen size varies depending on the clients resolution. A JPG with good resolution should be sharp, provided you don't have too much pixel-sized details in it.

Re: matching exact Quad Size

Posted: 26 Oct 2011, 10:55
by Th3_Darkness
RSix wrote:allright thx. any help for this? i dont want unsharp Pictures on our Server ;)
You want the image on the Manialink to be exactly as big as the picture?

That's not possible, because the sizen in Manialinks will always be the same while the resolution of the players game will change.

A x-value of 1 will equal (for example) only 3 pixel on a small screen and 5 on a bigger one ;)

Re: matching exact Quad Size

Posted: 26 Oct 2011, 10:58
by RSix
nahh okay clear now.

http://www.techno-logic.de/unit1/trackm ... m2_aa3.png
quad sizen="15.4 12.6"

i want in 1920x1080 the highest poss quadsize.

http://www.techno-logic.de/unit1/trackmania2/tlur1.png
quad sizen="15.4 12.6"

sounds like ive to manage that matter with manual calculation for pixel to quad size. understand that resolution problem, hope nadeo will code per resolution for this, and/or for "freezed" Quads.

Re: matching exact Quad Size

Posted: 26 Oct 2011, 11:05
by gouxim
RSix wrote:hope nadeo will code per resolution for this, and/or for "freezed" Quads.
Probably not, because it doesn't make much sense. The whole idea of the game/the menus/the manialinks is that it looks the same, whatever your resolution is. This is why quad size are always relative to the screen size. For good display results, you should use quad size "about the actual size of the image" (ie. don't use 1024*1024 images to make icons that are sizen="5 5") ; but you have some latitude here, so don't worry too much about that. Just make clean images (eg. JPGs should have a good quality).

If you really need an image to be displayable at many different sizen's, consider using DDS textures with mipmapping. It's only relevant if you want to use, for example, the same image for quads sizen="5 5" and sizen="100 100".

Re: matching exact Quad Size

Posted: 26 Oct 2011, 11:15
by RSix
indeed. the problem is for me, i want an exact pixel clear Picture on my Server. Understand that the Resolution is not freezed for Quads, clear. you see my .png Pics, i cant manage this for exact pixels, just tought there was/is a fixed possibility. loving trackmania 2 and also the new changes.

maybe one proposal ... my "dream" :mrgreen:

m=modifier 1 - 16:9 - 1920x1080 exact Pixel freeze
m=modifier 2 - 16:10 - 1680x1050 exact Pixel freeze
m=modifier 3 - ....

Example ...

Code: Select all

<quad m="modifier1" sizen="auto" posn="-107.7 8.1 0.00" image="http://www.techno-logic.de/unit1/trackmania2/tlur1.png" imagefocus="http://www.techno-logic.de/unit1/trackmania2/tlur1_hover.png" url="http://www.techno-logic.de"/>
<!--END of test Logo by T.L.U.R.-->

Re: matching exact Quad Size

Posted: 26 Oct 2011, 11:33
by gouxim
Maybe someday it'll be doable in ManiaScript, if it has access to the client's resolution. If you want that feature, you should post a "[suggestion]" topic to ask for it

Re: matching exact Quad Size

Posted: 26 Oct 2011, 11:35
by RSix
here is the example ... top left is from the game, and directly below this you can see the original images. (unsharp and sharp). ill do it gouxim, thx.

http://www.techno-logic.de/unit1/images ... _rsix1.jpg