Texture Size. Pixels to Units (unity)

Started by Reaxgrim, July 21, 2016, 12:12:40 PM

Previous topic - Next topic

Reaxgrim

Hey guys. Been looking at others textures and the official ones that come with the resources but there does not seem to be a set texture dimension for say a workbench?

as the workbench ones lets say a stove is 128x256 but ive seen mods that have the workbench at 64x64 that seem to be the same size ingame.

Basically am guessing the game resizes the textures itself but by how much? ie: pixels to units (since games made with unity)

Just trying to work out what size i should be working at.
Cheers for any info.
- Chris.

mrofa

In xml you got <graphicData> there is a <drawSize> option to set in ingame units, each unit generaly takes size 64pix. But if you make bigger texture , render will still resize it to the 64x ones
All i do is clutter all around.

Reaxgrim

ah ok. so each unit/block ingame is 64x64.

Any reason for the original resources being larger? 

Anyway thanks for the answer.
- Chris.

1000101

There used to be an "overdraw" tag but it's now been integrated directly into the texture and "drawSize" tag.  The stonecutting table, for example, is a 3x1 table with a drawSize of 3.5x1.5.  Most of this overdrawn portion is transparent except for a few pixels making the table overlap into the adjacent cells a little.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

Reaxgrim

Yeah worked out the jist of it now. thanks for the info :)

What about animations on the tiles? like a state for say a workbench that's on or off didn't see anything mentioning this.


1000101

afaik there are no actual animations just rendering tricks used to make it look like the static images are animated.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By