Godot Version
Godot Engine Web Editor 4.2.2
Question
How do I import fbx models into Godot Web Editor?
Godot Engine Web Editor 4.2.2
How do I import fbx models into Godot Web Editor?
Install GitHub - SIsilicon/Godot-Web-File-Manager: A user script for the web that allows you to view and edit files in the Godot Web Editor to bring your fbx import in.
Upload a fbx like Keyboard (Casio VL-Tone) - Download Free 3D model by AleixoAlonso [be22fbe] - Sketchfab
Then open the project and use the fbx imported into the web editor.
However, I checked the latest Godot Engine Web Editor (4.3.stable.official) editor and seems like the fbx imports are disabled.
Can investigate more.
There was an attempt at disabling the fbx importer, but FBXDocument is still in the web editor godot engine.
I wasn’t able to get my script to work.
@tool
extends EditorScript
func _run() -> void:
var resources_path = "res://Casio_VL-Tone/"
var dir = DirAccess.open(resources_path)
dir.list_dir_begin()
var file_name = dir.get_next()
while not file_name.is_empty():
if file_name.ends_with(".fbx"):
var fbx_path = resources_path + "/" + file_name
var fbx_document = FBXDocument.new()
var fbx_state = FBXState.new()
fbx_document.append_from_file(resources_path, fbx_state)
var node = fbx_document.generate_scene(fbx_state)
get_scene().add_child(node)
node.owner = get_scene()
Hi @fire I am also facing a similar kind of issue, the same code i am using, there is no error, but the model is not showing.