blackears / cyclopsLevelBuilder

A Godot plugin to let you block in levels inside the Godot editor.
MIT License
920 stars 36 forks source link

Texture auto-align #154

Open darkhog opened 2 months ago

darkhog commented 2 months ago

I think it's really needed. I keep fiddling with offsets and so on on neighboring blocks (results of CSG operations) because textures got misaligned badly and the brick pattern is a mess, lol. It's a huge productivity sink right now and auto-align solution, similar to the one several Doom and Quake editors have would be much welcome.

blackears commented 2 months ago

I've modified the material brush so that it can now sample face properties. Select the material brush, make sure Paint UVs is enabled in the tool properties panel, hover the mouse over the face you want to copy from and then paint those UVs onto the faces you want to match. You can copy other properties such as color and material this way too.

darkhog commented 2 months ago

The issue is that I need different offsets for different faces in order to have it aligned correctly (I use CSG operations a lot). In my repo, funnicapsule, in the scene Menu.tscn there are two misaligned houses. When you just set the offset on all faces of those houses, the textures are misaligned.

I was talking more like the autoalign feature that Doom editors such as Slade3 have to align textures of the walls that are next to each other.

blackears commented 2 months ago

Redesigning the UV layouts is one of the things I'm working on. It might be a while before I'm able to address this issue since it will depend on some core redesigns.

darkhog commented 2 months ago

It's okay, take time. Having to align textures manually is annoying, but can be done.