-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Skeleton causes error and project stops working when played when a camera3D is in the scene. #78470
Comments
I have reported similar problem with |
@bitsawer @YuriSizov I'm not sure about the solution. I compiled the engine with the fix and it hides the errors but I still have issues, my character still doesn't render. It does render in the editor itself but when I hit the play button the 3D camera doesn't show the character. Should I open a new bug report or ask to reopen this in case it's related? EDIT: I'll be posting a video in couple minutes after it uploads to showcase it. |
@viksl Make sure you have environment configured. If there is no source of light in the scene, you won't be able to see anything. There is a preview environment in the editor, but there is nothing at runtime, unless you add it yourself. (You can copy the preview environment, if you want). |
@YuriSizov I have everything set up, the scene works just fine in 4.0.3 too. In the video I have it with and without environment just in case but the camera can see the model in the editor but not after I hit the play button for some reason and why it works in 4.0.3? I'm confused. |
If you upload an MRP, someone can take a look. |
That's the issue, the model's license doesn't allow that :'/. I'm not sure what to do exactly. EDIT: Here's the video of it in action: https://youtu.be/0xBjVyfYey0 , maybe I'm just being stupid about something but the same project works in 4.0.3. Btw I built against master so I'm not sure if it's 4.1 beta2 or already beta3 just in case it matters? EDIT2: (Just in case it matters I also saved the environment and later added it to the camera but that's not in the video, it resulted in no changes so I kept the video shorter) |
I'm starting to think that the skeleton errors maybe weren't the cause of the actual issue here, I guess they were just a visible thing to pin the visual error to, but looks like the real reason could be elsewhere. So at least the issue title could probably be changed. And like YuriSizov says, it's hard to do anything without a test project, it would just be an endless guessing game. It could be something silly like a Camera3D cull mask. |
@bitsawer well I wish I could provide the project as is. OH! I can provide a test project, I just downloaded a character from mixamo and it has the same issue, so I'll quickly put together an MRP. Where do you want me to put it, new bug report or here and have someone reopen this or ...? |
You can post the test project here, I can take a look. If it's not related to skeleton stuff we can always make a new issue later. |
@bitsawer Here's the project: https://we.tl/t-DS8T1dlcbm, it's above the github file size limite so I had to upload it to wetransfer, is that ok with you? (the link will expire in 7 days) |
I downloaded the test project and I can repro the issue. I'll try to dig a bit deeper and try report back in a few days or next week. I think this could be re-opened for now, although the title can be a bit misleading if the issue is not actually caused by a skeleton bug (then again, maybe it is). |
@bitsawer I guess that's up to @YuriSizov if he reopens it again? If you come later back figuring out it's not a skeleton issues than I can still change the name but for now this is the best I can tell since I have no idea what else to name it. Btw, could be caused by the fbx importer in some way? Although I guess that should show in the editor as well, shouldn't it? Thank you for checking it out so quickly and confirming the issue! |
|
Tested, the regression seems to start with 4.1-dev3 (both the skeleton error, and the fact that it doesn't render). Would be worth bisecting further, it's still a lot of changes: https://godotengine.github.io/godot-interactive-changelog/#4.1-dev3 |
Added the |
@viksl Could you create a minimal reproduction project? The "MRP" you linked in #77780 is:
Thank you! |
@adamscott the #77780 is not mine project, it's someone else's. I linked an MRP here in the chat above (https://we.tl/t-DS8T1dlcbm) since the project file is larger than git limit it's on a temporary link which will expire in 6 days. EDIT: This MRP was created using non- mono editor, same issue: https://we.tl/t-qf82XF7XQj (it will expire on 30.06.2023) |
@viksl I took your non-mono editor MRP and reduced the textures to the 1/4 of their original size. |
CC. @lyuma, @fire and @TokageItLab |
@bitsawer in the #78623 you mentioned main thread but you can also set the group to sub thread and it will also work, I'm not sure if it means anything, is there at this point even a difference between the choice of main/sub thread or is it not yet implemented (since group order can't be changed anyway)? Thanks for looking into this, I appreciate a lot! |
@viksl Forgot this detail about MRPs for your future reporting of issues. 🙂 Don't forget to delete the |
Oh, I see. I should have also removed the textures to reduce the size. I was tuneled so much on the issue and trying it out that I failed to properly think about the rest. Thanks for the info, definitely nice to know .godot is not necessary ;). |
Godot version
4.1 b2
System information
Windows 10, Nvidia GTX 1660Ti, Vulkan
Issue description
As you can see in the image:
In the editor I have an imported model, no errors. The model has a skeleton. Moving bones moves the mesh accordingly no errors and nothing seems to be wrong as far as I can tell.
When I play the project without the camera I get no errors.
When I play the project with a Camera3D the project throws 12 errors (see the image above) and the whole project freezes without dispalying anything as you can see in the image it's just a gray window.
This model and import works just fine in 4.0.3, this is also not the only model I have issues with so it's not just this model.
I can't provide a test scene or models because these models are purchased but I hope the fact it works in 4.0.3 and the error could help?
I'll try anything you ask me to do to help to resolve this - hopefully before 4.1 get released.
NOTE: Same error and the following line as in the screenshot appear in the windows Console, no other errors.
NOTE2: This project was initiated from 4.1beta as brand new, nothing else is in as you can see.
NOTE3: I'll need to double check but I had some models working before so it might not be with every model but I'll check later on today.
Steps to reproduce
Hard to tell, if you have a model with a skeleton give it a try, add the model t othe scene, camera3d and then see if it happens?
Minimal reproduction project
For now check this one from another report: #77780TestMeshWithSkinGD.zip
EDIT:
Related line where the editor takes me to:
godot/servers/rendering/renderer_rd/storage_rd/mesh_storage.h
Line 693 in a2575cb
Production team edit: Added the non-mono MRP (reduced to fit Github's size limit) to the issue.
The text was updated successfully, but these errors were encountered: