texturefiles - how is the order and number of pictures defined?

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    What I guess so far:

    • front+back+top+bottom+left+right if IndividualSides=6
    • 4-steps if animation=true

    starting from

    • file = math.floor( textureId / 16^2 )
    • row = math.floor( textureId / 16 )
    • column = textureId-row



    For starting index I am sure. But am I right with the first two points?

    It is very hard to find usefull informations except to try everything out by yourself.



    BTW: It would be nice to know about ProjectionTo and wether just IndividualSides or together with Orientateable affects the number of block pics used.
     
    Joined
    Aug 28, 2013
    Messages
    1,831
    Reaction score
    374
    • Legacy Citizen 2
    • Top Forum Contributor
    • Legacy Citizen
    Um, it\'s:

    file = (textureID / 256)

    row = (textureID % 256) / 16

    column = (textureID %16)

    These calculations are done using int math, so divisons are rounded down to the nearest whole number. % is the modulus operator, which is the \"remainder\" operator.