Hi, I'm working on a pet project to learn about working with objects in 3D, and I uploaded an early WIP on gotm.io to see how it looks.
The objects render correctly when I open the browser game from my laptop..
but it shows up entirely as magenta when I open the page on my Android phone.
I was wondering how I should debug such an issue? I'm currently still using Godot 3.4.2.
The texture is added on the mesh's material_override by code.
Something like this
On the script for each planet I have in my game:
func _ready():
var material = SpatialMaterial.new()
randomize()
var rndno = randi() % Globals.p_material_list.size()
material = Globals.p_material_list[rndno]
$Sphere.material_override = material
and in another autoloaded script (Globals.gd)
var p_material_string = ["res://Assets/987_103_planet.png",
"res://Assets/987_144_planet.png",
"res://Assets/987_158_planet.png",
"res://Assets/987_175_planet.png",
"res://Assets/987_203_planet.png"]
func _ready():
for string in p_material_string:
var material = SpatialMaterial.new()
var texture = load(string)
material.albedo_texture = texture
p_material_list.append(material)
Here's a link to my WIP prototype in case it helps.
Gotm
Many thanks in advance !