-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
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.
✅ Deploy Preview for sensebox-3d ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this 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({ |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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)
public/BikeBox_Mini_S2_v101_v5.usdz
Outdated
There was a problem hiding this comment.
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