Skip to content

Recognize brush's face texture scaling from .MAP files. #109

@jaruizramon

Description

@jaruizramon

TBroom 5.15.2

Consider this brush:

// brush 1
{
( -688 600 -30.85714285714772 ) ( -688 -576 -30.857142857145828 ) ( -688 -576 -320 ) 256x256/Tile/Tile_11-256x256 0 -17.777775 0 1.5 0.9642858
( -688 600 -30.85714285714772 ) ( 1960 600 -30.857142857147146 ) ( 1960 -576 -30.857142857145252 ) 256x256/Stone/Stone_11-256x256 0 0 0 1.5 1.5
( -688 -576 -30.857142857145828 ) ( 1960 -576 -30.857142857145252 ) ( 1960 -576 -320 ) 256x256/Stone/Stone_11-256x256 0 -17.777775 0 1.5 0.9642858
( 1960 -576 -320 ) ( 1960 600 -320 ) ( -688 600 -320 ) 256x256/Stone/Stone_11-256x256 0 0 0 1.5 1.5
( 1960 600 -320 ) ( 1960 600 -30.857142857147146 ) ( -688 600 -30.85714285714772 ) 256x256/Tile/Tile_11-256x256 0 -17.777775 0 1.5 0.9642858
( 1960 -576 -30.857142857145252 ) ( 1960 600 -30.857142857147146 ) ( 1960 600 -320 ) 256x256/Tile/Tile_11-256x256 0 -17.777775 0 1.5 0.9642858
}

This brush has faces with a texture scale of 1.5 for x and y respectively, but on Godot, the scaling of the textures seem like 0.1 for both axes.

This is the sample map from Tbroom.
image

This is Tbloader's output in Godot.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions