godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.43k stars 20.25k forks source link

ArrayMesh or ImmediateMesh are not cooperating with MeshInstance3D #83958

Open robertostrowskijagoda opened 11 months ago

robertostrowskijagoda commented 11 months ago

Godot version

Tested on 4.0, 4.1.2 and 4.2

System information

Windows 10, Intel iris plus

Issue description

I am trying to generate mesh using ArrayMesh or ImmediateMesh (I've try both). Mesh seams to be ok, because when I saved it as a resource - it is displayed properly, but when I am trying to use it dynamicly in game, nothing happens whatever I do. Details are on stackoverflow: https://stackoverflow.com/questions/77351955/godot-procedural-mesh-generation

Edit: It works in godot 3.5, so... probably bug

Steps to reproduce

Copy that code: https://stackoverflow.com/questions/77351955/godot-procedural-mesh-generation Create a simple scene setup with dir. light, camera and Chunk (assign a ChunkMesh to it).

Minimal reproduction project

Octree.zip

clayjohn commented 10 months ago

A user responded to your stack overflow question with a solution. It seems this may have been a case of user error.

Can you please confirm that the answer on StackOverflow worked?