Godot Version
V4.6.1
Question
Hi I have been following this tutorial on AR passthrough with meta quest 3
And I followed the steps to create this camera display
My display works but the camera feed is all in red
my code is the same as the video
cameraDetails = camera_choices[1]
#feed[1] is where the camera feed is
camera_feed = feeds[1]
#apparently might not be changing colour
var condition = camera_feed.set_format(cameraDetails[“id”], {
“width”: cameraDetails[“width”],
“height”: cameraDetails[“height”],
})
camera_feed.feed_is_active = true;
camera_viewport.size = Vector2(cameraDetails[“width”], cameraDetails[“height”])
texture_rect.size = Vector2(cameraDetails[“width”], cameraDetails[“height”])
camera_texture.camera_feed_id = camera_feed.get_id()
texture_rect.texture = camera_texture
material.albedo_texture = camera_viewport.get_texture()
material.emission_texture = camera_viewport.get_texture()
camera_display.material_override = material
and I tried other stuff like
color_feed.set_format(0, {
“width”: 640,
“height”: 480,
“output”: “grayscale”
})
Or trying to skip the viewport and assign it to the material directly but to no avail
Nothing seems to change the colour of the feed it stays red
Also would be great if someone can inform me what colour format is the camera feed returning
Thanks