Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support ar in webxr #1665

Merged
merged 3 commits into from
Apr 24, 2024
Merged

feat: support ar in webxr #1665

merged 3 commits into from
Apr 24, 2024

Conversation

xiaoiver
Copy link
Contributor

@xiaoiver xiaoiver commented Apr 10, 2024

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / Document optimization
  • TypeScript definition update
  • Refactoring
  • Performance improvement
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#1664

💡 Background and solution

参考 Three.js 的用法。提供默认的 ARButton:

import { ARButton } from '@antv/g-webgl';

const $button = ARButton.createButton(canvas, renderer, {});
container.appendChild($button);

点击后进入 AR 模式。

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@xiaoiver xiaoiver merged commit 2948b0f into release Apr 24, 2024
3 checks passed
@xiaoiver xiaoiver deleted the feat-webxr branch April 24, 2024 06:10
xiaoiver added a commit that referenced this pull request Apr 24, 2024
* feat: support ar in webxr (#1665)

* feat: support ar in webxr

* feat: each tick on canvas will pass webxr frame

* chore: commit changeset

* chore(release): bump version (#1669)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

1 participant