Skip to content

Refactor ARView: Remove extraneous UI and load glTF model from public directory #6

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

georgi-s
Copy link
Contributor

@georgi-s georgi-s commented Apr 7, 2025

  • Removed all unnecessary UI overlays, loading messages, and buttons from ARView.
  • Simplified the AR session logic to auto-start based on detected AR capability.
  • Updated the modelPath to use a relative URL (e.g., /gltf/bike/senseBox_bike.gltf) from the public folder.
  • Cleaned up unused variables to ensure a streamlined AR experience.

… directory

- Removed all unnecessary UI overlays, loading messages, and buttons from ARView.
- Simplified the AR session logic to auto-start based on detected AR capability.
- Updated the modelPath to use a relative URL (e.g., /gltf/bike/senseBox_bike.gltf) from the public folder.
- Cleaned up unused variables to ensure a streamlined AR experience.
Copy link

netlify bot commented Apr 7, 2025

Deploy Preview for sensebox-3d ready!

Name Link
🔨 Latest commit 6bb8eb2
🔍 Latest deploy log https://app.netlify.com/sites/sensebox-3d/deploys/67f3e76d904f4b0008758e24
😎 Deploy Preview https://deploy-preview-6--sensebox-3d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@felixerdy felixerdy left a comment

Choose a reason for hiding this comment

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

looking good so far. besides the comments, there is the issue on ios (safari) that first opens an image of the 3d model and then the AR view is opened. the AR view should be opened immediately when clicking on the button

label: string;
}

export default function FloatingButton({
Copy link
Member

Choose a reason for hiding this comment

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

please make the button a little bit more subtle

  • remove the shadown waves
  • make button a little bit wider

import * as THREE from "three";
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";

function detectARCapability() {
Copy link
Member

Choose a reason for hiding this comment

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

please try not to show the AR button on desktop since they dont support AR (tested on macOS with chrome)

Copy link
Member

Choose a reason for hiding this comment

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

please apply the following changes:

  • remove the ultrasonic distance sensor mount (only using the tof one)
  • make display black / dark grey

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.

2 participants