-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan: 3D viewport -> 2D sprite rendering no longer works #50327
Comments
Related to #50296. |
I made a change to the Godot 4 minimal reproduction project that makes this problem stand out even more. The 3D scene rendered by the viewport is now a separate scene, to demonstrate that running the 3D scene This change should just make it a little more clear that it's not the 3D rendering itself not working, or something wrong with my computer (as far as I can tell), but possibly something more specific to the |
I thought this might be related to #52528. But it does not appear to be fixed by it. |
By the way I tried this on a couple other computers to make sure it's not just my environment. I have this problem on every computer I have tried it on, though they are all Linux too so I do not know whether it affects other OS's. |
Ooh, breakthrough. I did what @navy-cap-echo said here and set Render Target Update Mode to "Always" and it works. |
Duplicate of #55471 (same cause). |
Godot version
4.0.dev (a5b2988)
System information
Arch Linux
Issue description
In Godot 3 one great workflow for rendering 3D scenes in an otherwise 2D world is simply to set the
texture
property of a sprite to the texture of a viewport. Inmaster
, this seems to be broken.In Godot 4 it actually does do something, but it seems to be loading in or creating a random texture. To me it seems like maybe a pointer problem, loading in a texture from an unexpected memory address, because the images it ends up using as the sprite texture are very weird and artifacted.
The results also seem somewhat nondeterministic, or at the very least I get different results on different monitors. This should obviously have no coupling whatsoever with anything outside Godot itself, which is one thing that made me think it may be a memory address problem. Maybe this is a problem with Godot's vulkan renderer?
Edit: I want to clarify that 3D works very well in Godot 4 for me. So it's not the vulkan renderer itself, nor graphics drivers issues, nor anything else like that. It's really just this very specific case I have found so far.
Godot 3:
Godot 4:
Steps to reproduce
I have attached two minimal reproduction projects to demonstrate this problem, but the problem is pretty easy to understand even just by looking at code, as the scene tree is pretty self explanatory.
Godot 3:
Godot 4:
Minimal reproduction project
Godot 3: godot-3-3d2d.zip
Godot 4: godot-4-3d2d.zip
The text was updated successfully, but these errors were encountered: