Jump to content

Default Texture size is too big again.


Go to solution Solved by Josh,

Recommended Posts

Posted

In Options > General "Brush Textures per meter" should be set to 400.

400 texels / meter = 1024 texels / 2.56 meters

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
1 minute ago, reepblue said:

Hopefully this doesn't happen again.

 

200.gif

  • Haha 1

i now hate love C++

Beeeeeeeeeeeeeep~~This is a test of the emergency signature system~~Beeeeeeeeeeeeeep

RX 6800XT | i5-13600KF | 32GB DDR5 | 1440p is perfect

Posted

I think the brush texture scale isn't actually getting saved in the map file, though.

  • Sad 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
5 minutes ago, Josh said:

In Options > General "Brush Textures per meter" should be set to 400.

400 texels / meter = 1024 texels / 2.56 meters

It was, but I recall making it 200, and then making it 400 again before closing the application. Maybe I re-triggered something? 

Had the editor regenerate the settings file and it works as intended. 

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Posted

I changed the way brush texture scaling works.

When using the programming API the value set in Face::SetTextureMappingScale is now in units of texels per meter, with a default value of 400.

The brush texture mapping scale in the program options does two things:

  • Defines the default scale a new brush's faces uses when it is created. Changing this setting does not change the texture mapping of existing brushes.
  • Provides a conversion factor that is used in the face properties interface, because values like 1.0 and 2.0 are more intuitive than 400 and 800.

The engine library has not been updated with this change yet.

Some changes will still be needed to retain correct texcoords with Leadwerks maps.

All existing Ultra maps will have wrong texture coordinates, but you can reset them by selecting all faces and setting their mapping scale to 1,1.

The align buttons are probably wrong now. seems these are fine

This resolves the problem of using two scale values and puts everything on the right track, while still allowing a user-defined default texel density.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

  • Solution
Posted

Editor seems to be loading Leadwerks maps with correct texcoords now. Issue is resolved I think.

My job is to make tools you love, with the features you want, and performance you can't live without.

  • Josh locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...