godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.65k stars 1.58k forks source link

Port 2D Skeleton demo to Godot 4.1 #976

Closed idbrii closed 10 months ago

idbrii commented 10 months ago

References #697.

Major changes:

Screenshot: Screenshot of world

Showing character animation (captured before I got parallax background setup): Video of character animation

idbrii commented 10 months ago

I'll have a look at those warnings. I didn't try to fix them yet.

idbrii commented 10 months ago

Fixed those warnings. Seems that you need to manually disable the auto calc option on leaf nodes.

Output and Debugger > Errors have no warnings or errors and it still looks right to me:

https://github.com/godotengine/godot-demo-projects/assets/43559/b80d1277-609b-4d4d-8641-3e7ec8feeb47

idbrii commented 10 months ago

Updated the readme to "Renderer: Forward+" even though I didn't make that change because looks like that's now true and other demo updates are making the same change. I guess GLES2 was the default before and the new default is Forward+ so no change in config files is visible?

Calinou commented 10 months ago

Updated the readme to "Renderer: Forward+" even though I didn't make that change because looks like that's now true and other demo updates are making the same change. I guess GLES2 was the default before and the new default is Forward+ so no change in config files is visible?

GLES3 is the default in 3.x, and Forward+ in 4.x.

That said, I suggest changing this demo to use Compatibility if it doesn't need features only available in Forward+. Remember to also do this for the .mobile override of the Rendering Method setting in the project settings dialog.

idbrii commented 10 months ago

Seems fine in GL Compatibility. All three modes are using GL Compatibility now and rebased on master.