Christen Lofland bf4d1038d6 Minor spelling fixes in strings, comments and non-code files. (#1236) před 1 dnem
..
player 90f309174d Add Sprite3D and AnimatedSprite3D demo (#1191) před 3 měsíci
screenshots 2d64c95990 Update 3D Sprites screenshot to match the recent bugfix před 3 měsíci
scripts 90f309174d Add Sprite3D and AnimatedSprite3D demo (#1191) před 3 měsíci
shaders 9456158841 Fix the bug of shader effect (#1198) před 3 měsíci
textures 90f309174d Add Sprite3D and AnimatedSprite3D demo (#1191) před 3 měsíci
3d_sprites.tscn 90f309174d Add Sprite3D and AnimatedSprite3D demo (#1191) před 3 měsíci
README.md bf4d1038d6 Minor spelling fixes in strings, comments and non-code files. (#1236) před 1 dnem
icon.webp 90f309174d Add Sprite3D and AnimatedSprite3D demo (#1191) před 3 měsíci
icon.webp.import 90f309174d Add Sprite3D and AnimatedSprite3D demo (#1191) před 3 měsíci
project.godot 90f309174d Add Sprite3D and AnimatedSprite3D demo (#1191) před 3 měsíci

README.md

3D Sprites and Animated Sprites

This project demonstrates the usage of Sprite3D and AnimatedSprite3D in 3D space.

Both Sprite3D and AnimatedSprite3D are nodes that allow 2D textures or animations to exist within a 3D world. They are particularly useful for stylized or lightweight 3D effects using traditional 2D assets.

  • Sprite3D: A node that renders a single 2D texture or frame in 3D space. It can be rotated, scaled, and positioned like any 3D node. Optionally, it can behave as a billboard to always face the camera.
  • AnimatedSprite3D: Extends Sprite3D by supporting frame-based animation. You can assign a SpriteFrames resource to play sequences of textures, making it suitable for character sprites, visual effects, or flipbook-style animations in 3D.

Both types can be combined with custom shaders to simulate outlines, lighting effects, or other visual enhancements. In most scenarios, Sprite3D is used for static images or simple animations, while AnimatedSprite3D is preferred for more complex animations or when you need to manage multiple frames efficiently.

This demo includes examples of basic rotation animation and showcases how shaders can be applied to Sprite3D and AnimatedSprite3D for stylized results. The shaders demonstration also shows how to create paper-like effects, which can be useful for creating a unique visual style in most of the game.

Language: GDScript

Renderer: Forward+

Screenshots

Screenshot