Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Headscratching

willneedit edited this page Dec 29, 2018 · 1 revision

Coordinates and scales

Lining up enclosures and MREs

For the 'Gate I needed both an enclosured browser app next to the MRE, with the enclusured app doing the actual porting stuff, as the MRE doesn't offer the functionality.

The gate is designed to have the origin at the center of its rings, so placing the Gate at (0,0,0) and a disc to show up in the enclosure at (0,0,0) would be fine if the enclosure itself is placed at (0,0,0) in the world's setting, right?

Wrong!

Taking things from an example, the enclosured up started with a-scene altspace="vertical-align: bottom" which had the disc's origin be at the bottom of the enclosure, not centered. And the enclosure itself has its origin point in its center, so the disc appeared waaaay down.

How far?

Fiddling around with the coordinates and scale told me that the offset is measured in display / 10, so with display.y set to 720, I had to move the enclosure up by 36 units (meters) to get things lined up.

Lesson learned: To line up things, create the enclosured app with vertical-align: middle, so that no coordinate translation is needed between enclosure and Space Editor.

It didn't update!

When switching the alignments in the abovementioned issue, updates didn't show. I changed the color, didn't show either.

  • Restarted the MRE which hosted the page, still no updates.
  • Used 'Reenter Space', still a no-go.
  • Same as with 'Reset Browsers', which should reload pages. Right. Right? Wrong!
  • Completely leaving and reentering the space, still no such luck.
  • Completely exiting and restarting the client didn't help either.

The client caches the web pages in %localappdata%\Temp\AltspaceVR\AltspaceVR and refuses to reload them unless you explicitly instruct it to using the in-client browser toolbar. But since there wasn't one shown for that enclosure, I was out of luck!

I really had to exit out, delete the cache manually, and reenter. Then, and only then the changes (color and alignment) did show up.

Feature request: Button in the settings: Clear Browser cache

Clone this wiki locally