matching exact Quad Size

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
RSix
Posts: 7
Joined: 26 Oct 2011, 09:51

matching exact Quad Size

Post 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.-->
regards RSix | Headadmin T.L.U.R. | http://www.techno-logic.de
User avatar
fastforza
Posts: 850
Joined: 15 Jun 2010, 11:19
Contact:

Re: matching exact Quad Size

Post by fastforza »

Moved into the ManiaScript forum. :)

This forum will be renamed soon.
Mania Exchange - Share your maps!

ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti

Need technical help for ManiaPlanet? Click here. :)
User avatar
RSix
Posts: 7
Joined: 26 Oct 2011, 09:51

Re: matching exact Quad Size

Post by RSix »

allright thx. any help for this? i dont want unsharp Pictures on our Server ;)
regards RSix | Headadmin T.L.U.R. | http://www.techno-logic.de
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: matching exact Quad Size

Post 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.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
Th3_Darkness
Posts: 114
Joined: 15 Jun 2010, 11:03

Re: matching exact Quad Size

Post 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 ;)
User avatar
RSix
Posts: 7
Joined: 26 Oct 2011, 09:51

Re: matching exact Quad Size

Post 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.
regards RSix | Headadmin T.L.U.R. | http://www.techno-logic.de
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: matching exact Quad Size

Post 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".
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
User avatar
RSix
Posts: 7
Joined: 26 Oct 2011, 09:51

Re: matching exact Quad Size

Post 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.-->
regards RSix | Headadmin T.L.U.R. | http://www.techno-logic.de
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: matching exact Quad Size

Post 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
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
User avatar
RSix
Posts: 7
Joined: 26 Oct 2011, 09:51

Re: matching exact Quad Size

Post 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
regards RSix | Headadmin T.L.U.R. | http://www.techno-logic.de
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest