You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decals do not line up with the camera when using the Perspective menu's Align Transform with View or Align Rotation with View options while a Decal node is selected. This is because the default Decal orientation doesn't match the camera's.
In contrast, using this shortcut works as expected when aligning a Camera3D node.
This is something we should fix before 4.0 is released, as fixing it after 4.0 is released would break existing projects.
Edit: reduz said that the current default orientation should be kept, since pointing straight down by default makes it more usable. Instead, we should hack around the Align Transform/Rotation with View tools to adjust the rotation with a constant offset if the selected node is a Decal.
Steps to reproduce
Add a MeshInstance node with a BoxMesh resource to display the decal on.
Add a Decal node and load a texture in its Albedo property.
Set the Decal's Normal Fade property to 0.3 to ensure the decal isn't drawn on surfaces that aren't facing the decal.
Select the Decal node, move the camera to be close to the box (while looking towards the box) and use the Perspective menu's Align Transform with View or Align Rotation with View.
Notice how the surface won't always be painted as expected (rotation is off by 90 degrees on an axis). You can look at the Decal's gizmo. When the Decal node is rotated correctly, the gizmo's line should point away from the surface the decal is being painted on.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
Godot version
4.0.dev (6d98f84)
System information
Fedora 34, GeForce GTX 1080 (NVIDIA 465.31)
Issue description
Decals do not line up with the camera when using the Perspective menu's Align Transform with View or Align Rotation with View options while a Decal node is selected. This is because the default Decal orientation doesn't match the camera's.
In contrast, using this shortcut works as expected when aligning a Camera3D node.
This is something we should fix before 4.0 is released, as fixing it after 4.0 is released would break existing projects.
Edit: reduz said that the current default orientation should be kept, since pointing straight down by default makes it more usable. Instead, we should hack around the Align Transform/Rotation with View tools to adjust the rotation with a constant offset if the selected node is a Decal.
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: