aardvarkxr / aardvark

A platform for AR in VR
BSD 3-Clause "New" or "Revised" License
184 stars 20 forks source link

Suggestion: Let an AvPanel be projected on any arbitrary mesh that has UV coordinates #162

Closed BOLL7708 closed 4 years ago

BOLL7708 commented 4 years ago

Description

Have the browser texture being something we can apply to any mesh with a UV map.

Reasoning

Considering we right now have browser content projected on a quad, it feels like it could be possible to pipe this texture to any mesh instead, mapping it to the existing UV map.

This would be a nice feature to make curved projection screens, multiple panels from a single browser page or any other non-quad page display that is needed.

Myself I want to wrap a webpage all around me as an environment.

JoeLudwig commented 4 years ago

I think this is already possible.

AvPanel is implemented entirely in the gadget with AvInterfaceEntity and AvModel. If you set the flags on a model to use the browser texture it should work for any textured model, not just planes.

Actually interacting with that model as a panel is harder. That's more of a volume intersection question. But displaying a web page should be supported.

BOLL7708 commented 4 years ago

Ooooh, I had a small suspicion this could be the case, but wasn't sure. I've honestly not come far enough to even doodle around with the scene graph, I'm still just hacking around the panel alone 😅 I'll keep this in mind and revisit if I can't manage it when I get to it 😗