Skip to content

Redefines camera to pose#144

Merged
zachernuk merged 6 commits into
mainfrom
redefine-camera
Mar 16, 2026
Merged

Redefines camera to pose#144
zachernuk merged 6 commits into
mainfrom
redefine-camera

Conversation

@zachernuk

@zachernuk zachernuk commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator

Updates the section relating to camera and orientation to reflect the discussion of leveraging the DOMMatrix object as an entityTransform over the model, per discussions in the CG.

Fixes #42
Fixes #41


Preview | Diff

Updates the section relating to camera and orientation to reflect the discussion of leveraging the `DOMMatrix` object as an `entityTransform` over the model.

Fixes #42
Fixes #41
Comment thread index.html Outdated

<div w-nodev>

<p>The position, rotation, and scale of a model element's contents are controlled through the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be strengthened with MUST, SHOULD, etc

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated!

Comment thread index.html Outdated

<ol>

<li><p>Determine the <code data-x="dom-model-boundingboxextents">boundingBoxExtents</code>, <var>extents</var>, of the resource and store it in the relevant attribute.</p></li>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be rewritten as an algorithm. You can see how to do that in the WebXR spec.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This boundingBox computation is happening below the level of the UA in our implementation - does that still make it a candidate for definition within the scope of this document?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fantasai provided guidance on an appropriate level of detail about the bounding box. I'm hoping that anyone leveraging an underlying 3D engine will simply be able to call this, rather than having to write their own in-place.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cabanier Do you think the algorithm needs to be spelled out here, or is it something we can expect to leverage in an underlying system?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it should. It doesn't matter where the code runs.

Add some MUSTs and a SHOULD to reflect a stronger stance on correct functioning
Adds a definition of the bounding box (which can be further clarified when we get to animation etc)
Added a plausible bounding box calculation algorithm
@zachernuk

Copy link
Copy Markdown
Collaborator Author

Okay, I've added an AABB calculation - @cabanier LMK if it needs more detail!

zachernuk and others added 2 commits March 16, 2026 12:46
Removed links to issue 41 and 42, which this PR is supposed to resolve.
@zachernuk zachernuk merged commit 2ba6816 into main Mar 16, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reseting the camera? Camera controls and requestAnimationFrame()

4 participants