general sizing info

Forum Archive - from http://theuniversal.net
Locked
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

general sizing info

Post by hedgehog »

is the size of a "start block" area actually 256x256px?

and is there any kind of formula to convert TUs into pixels?
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

theoretically, isen't a start block area 1 pixle? as height maps are 256x256 pixles and the server map is 256x256 squares

but then, you can take a 50x50picture and texmap it onto 1 square (suggesting 1 square = 50x50pixles)
could also do the same with a 200x200 picture though.
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

yeah i guess the question is what stuff is being shrunktofit and what's being blown up. i dunno if the heightmap is just magnified, or if the 256 textures are shrunk down to fit 1/4th of a tile, or...?

i think there's a doc somewhere that says what a full tile is in px, isn't there? if i had that then i could just divide by four and we'd be all set.

i'm guessing with a texmap, if i made a 512x512 one it would need a whole tile (4 startblocks) to display at actual size, but then i still wind up wondering if that really is actual size.


and cue the they might be giants music.... :P
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

um, ya can't put a value on pixel -> tile size, coz it depends on how close you are to the tile and also the screen res & window size of the client. If you've zoomed the camera right in and one tile is filling the screen then one tile is gonna be something like 1200x800 or whatever ur screen res is.

FYI.
the width of one tile is currently a little less than the height of 3 tractors (i.e. about 2.8TUs), ish, but that doesnt really make any odds in terms of texture size.

Also, the world size of the tile (0.44921875) (for reference, a TU is approximately 0.159659) is potentially variable, to allow islands with larger or smaller surface areas. (Tho with a corresponding increase or decrease in resolution).

FYI.
all these numbers come from calculations in the gamecode, so therefore the numbers themselves are absolutely correct. However this is no guarantee that the numbers listed here come from the correct calculations :).
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

anyone lived in a pretty how town
(with up so floating many bells down)
spring summer autumn winter
he sang his didn't he lemured his did

FYI.

Women and men(both little and small)
cared for anyone not at all
they sowed their isn't they reaped their same
sun moon lemurs rain


FYI.

children guessed(but only a few
and down they forgot as up they grew
autumn winter spring summer)
that noone loved him more by more

FYI.

when by now and tree by leaf
"oh look, a lemur!" she cried in grief
lemur by snow and stir by still
anyone's any was all to her

FYI.

someones married their everyones
laughed their cryings and did their dance
(sleep wake hope and then)they
said their nevers they slept like lemurs

FYI.

stars rain sun moon
(and only the snow can begin to explain
how monkeys are apt to forget to remember
with up so floating many bells down)

FYI.

one day anyone died i guess
(and noone stooped to kiss the lemur)
busy folk buried them side by side
little by little and

FYI.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

monkeys, lemurs, oh yes, all the ingredients of a nice crap poem :)
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

yeh, i aped you with the fyi element though. it really adds to the cadence.


the cummings' estate will surely be displeased :P
Locked