Skip to content

XEOK-511 Add scaleAxis for Ortho.js camera - #2088

Merged
MichalDybizbanskiCreoox merged 1 commit into
xeokit:masterfrom
paireks:XEOK-511-add-scale-axis-for-ortho
Oct 5, 2026
Merged

MichalDybizbanskiCreoox merged 1 commit into
xeokit:masterfrom
paireks:XEOK-511-add-scale-axis-for-ortho

Conversation

@paireks

@paireks paireks commented Sep 30, 2026

Copy link
Copy Markdown
Member

Hello @MichalDybizbanskiCreoox and @xeolabs,

this PR is about making it possible to support BCF 3.0 files in the future. BCF 3.0 requires using ortho scale as vertical (https://github.com/buildingSMART/BCF-XML/blob/release_3_0/Documentation/README.md?plain=1#L378), while our Ortho camera sets automatically scale to vertical or horizontal, depending on the aspect. In this PR scaleAxis is added so it's possible to set the actual axis for which scale would be applied.

It's this topic #2071 but revisited. I changed the namings into scaleAxis as it makes it more clear what it does to me, and it is more consistent with the existing Perspective's fovAxis namings.

Please let me know what you think, I will update d.ts types when this part will be accepted.

Wojciech

@paireks
paireks force-pushed the XEOK-511-add-scale-axis-for-ortho branch from bff887a to c4ede29 Compare September 30, 2026 10:05
@paireks
paireks force-pushed the XEOK-511-add-scale-axis-for-ortho branch from 3fcd3fe to eaebd0e Compare October 5, 2026 09:35
@paireks
paireks force-pushed the XEOK-511-add-scale-axis-for-ortho branch from ef92697 to 1cf40b3 Compare October 5, 2026 09:56
@MichalDybizbanskiCreoox
MichalDybizbanskiCreoox merged commit 4e771bf into xeokit:master Oct 5, 2026
3 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.

3 participants