godot_arcore
godot_arcore copied to clipboard
Need to add a demo in
Just a reminder to ourselves, need to add a small demo project in similar to other plugins so people can see how to set things up.
@BastiaanOlij Can you port the demo project you were using for the first ARCore PR to this plugin?
@BastiaanOlij Can you port the demo project you were using for the first ARCore PR to this plugin?
I think thats a good starting point, let me add it in and we can start making it work
Plugin is broken in the demo project after ./gradlew assemble is done successfully. In Godot 4.3:
Godot Engine v4.3.stable.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started on port 6006 ---
--- GDScript language server started on port 6005 ---
Loaded system CA certificates
EditorSettings: Save OK!
res://addons/ARCorePlugin/ARCoreInterface.gd:6 - Parse Error: Could not find type "ARCoreInterface" in the current scope.
res://addons/ARCorePlugin/ARCoreInterface.gd:9 - Parse Error: Identifier "ARCoreInterface" not declared in the current scope.
modules/gdscript/gdscript.cpp:2936 - Failed to load script "res://addons/ARCorePlugin/ARCoreInterface.gd" with error "Parse error". (User)
Failed to create an autoload, script 'res://addons/ARCorePlugin/ARCoreInterface.gd' is not compiling.
Failed to create an autoload, script 'res://addons/ARCorePlugin/ARCoreInterface.gd' is not compiling.
editor/editor_autoload_settings.cpp:577 - Condition "!info->node" is true. Continuing.
Add Autoload
res://main.gd:27 - Compile Error: Identifier not found: ARCoreInterfaceInstance
modules/gdscript/gdscript.cpp:2936 - Failed to load script "res://main.gd" with error "Compilation failed". (User)
Generated 'res://addons/ARCorePlugin/ARCoreInterface.gd' preview in 3831 usec
Generated 'res://addons/ARCorePlugin/export_plugin.gd' preview in 1953 usec
Generated 'res://addons/ARCorePlugin/plugin.cfg' preview in 36 usec
Generated 'res://export_presets.cfg' preview in 20 usec
Generated 'res://main.tscn' preview in 1052 usec
Similar issue on Godot 4.2. For example, var arcore : ARCoreInterface in line 6 of ARCoreInterface.gd does not have any class called ARCoreInterface.
However, plugin works when exported to an apk and ran on the phone, though of course without camera access which I know is a WIP.
We are still in the process of adding support for ARCore and are not quite done yet