Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFT-informatics-weekend
AR - Urban Planner
Commits
26edf131
Commit
26edf131
authored
Oct 12, 2025
by
Stoll
Browse files
- Added Documentation on Devlopment Setup
parent
de77f40d
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
26edf131
## Overview
## Overview
### Developer Info
#### Create a bridge to the phone
-
Phone needs to be in developer mode
-
USB Debugging needs to be enabled
```
cmd
npm run adb
```
#### Start App
-
default Port is 8081
```
cmd
npm run dev
```
#### Enable Chrome DevTools on Laptop
-
Go to
[
Chrome Devices
](
chrome://inspect/#devices
)
```
cmd
npm run adb:debug
```
Develop a WebAR application using
**Three.js**
that allows users to design their own urban planning scenarios directly in AR.
Develop a WebAR application using
**Three.js**
that allows users to design their own urban planning scenarios directly in AR.
The system should provide a
**library of 3D models (GLTF/GLB)**
such as trees, benches, lamp posts, or small buildings.
The system should provide a
**library of 3D models (GLTF/GLB)**
such as trees, benches, lamp posts, or small buildings.
Users can
**select, place, and arrange models**
in outdoor AR space through an interactive interface.
Users can
**select, place, and arrange models**
in outdoor AR space through an interactive interface.
...
...
webxr-cube/package.json
View file @
26edf131
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
"build"
:
"tsc -b && vite build"
,
"build"
:
"tsc -b && vite build"
,
"lint"
:
"eslint ."
,
"lint"
:
"eslint ."
,
"preview"
:
"vite preview"
,
"preview"
:
"vite preview"
,
"adb"
:
"adb reverse tcp:8081 tcp:8081"
"adb"
:
"adb reverse tcp:8081 tcp:8081"
,
"adb:debug"
:
"adb forward tcp:8080 localabstract:chrome_devtools_remote"
},
},
"dependencies"
:
{
"dependencies"
:
{
"react"
:
"^19.1.1"
,
"react"
:
"^19.1.1"
,
...
...
webxr-cube/src/components/XRRenderer.tsx
View file @
26edf131
...
@@ -7,7 +7,8 @@ import { Cube } from "../model/Cube"; // custom class for a simple cube
...
@@ -7,7 +7,8 @@ import { Cube } from "../model/Cube"; // custom class for a simple cube
import
{
GLTFModel
}
from
"
../model/GLTFModel
"
;
// custom loader for .glb 3D models
import
{
GLTFModel
}
from
"
../model/GLTFModel
"
;
// custom loader for .glb 3D models
import
{
ARBottomBar
}
from
"
./ARBottomBar
"
;
import
{
ARBottomBar
}
from
"
./ARBottomBar
"
;
import
{
RoomEnvironment
}
from
"
three/examples/jsm/environments/RoomEnvironment
"
;
import
{
RoomEnvironment
}
from
"
three/examples/jsm/environments/RoomEnvironment
"
;
import
{
addLightToScene
,
createCamera
,
createPlacementRing
,
createRenderer
,
setSceneBackground
}
from
"
./Setup.ts
"
;
// bottom UI for selecting objects
import
{
addLightToScene
,
createCamera
,
createPlacementRing
,
createRenderer
,
setSceneBackground
}
from
"
./Setup.ts
"
;
import
type
{
WebGLRenderer
}
from
"
three
"
;
// bottom UI for selecting objects
function
createARButton
(
renderer
:
WebGLRenderer
,
overlayRef
:
React
.
RefObject
<
HTMLDivElement
>
)
{
function
createARButton
(
renderer
:
WebGLRenderer
,
overlayRef
:
React
.
RefObject
<
HTMLDivElement
>
)
{
...
...
webxr-cube/vite.config.ts
View file @
26edf131
...
@@ -5,6 +5,6 @@ export default defineConfig({
...
@@ -5,6 +5,6 @@ export default defineConfig({
plugins
:
[
react
()],
plugins
:
[
react
()],
server
:
{
server
:
{
host
:
'
localhost
'
,
// bind to all interfaces
host
:
'
localhost
'
,
// bind to all interfaces
port
:
808
0
,
port
:
808
1
,
},
},
});
});
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment