Skip to content

Is there a way to display a Godot scene 'in' the UI? (Basically Godot's SubViewport Control) #7

Answered by MrJul
MechWarrior99 asked this question in Q&A
Discussion options

You must be logged in to vote

It should be possible in theory. They're all Vulkan images at the end of the day, so one can render a Godot viewport to a texture, get the underlying Vulkan image, and use Avalonia's GPU interop to manipulate it. Setting up the correct Vulkan fences to get all that to render correctly is probably the hardest part.

What use case do you have in mind? You should be able to render Avalonia in Godot using Estragonia today, add some control as a placeholder to where you need a scene to be rendered, and transform a Godot's SubViewport to match its position and size - all that without any new GPU interop. A bit convoluted, but it should work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MechWarrior99
Comment options

@MrJul
Comment options

Answer selected by MechWarrior99
@MechWarrior99
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants