Skip to content

Commit dd3a2fb

Browse files
committed
adding custom models and images
1 parent f09d299 commit dd3a2fb

File tree

3 files changed

+95
-2
lines changed

3 files changed

+95
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
sidebar_position: 6
3+
---
4+
import MuxPlayer from '@mux/mux-player-react';
5+
6+
# Adding Custom Models and Images to 3DStreet Scenes
7+
8+
## Importing 3D Models
9+
10+
3DStreet supports importing custom 3D models in glTF / GLB format to enhance your street scenes with unique objects and elements.
11+
12+
<MuxPlayer
13+
streamType="on-demand"
14+
playbackId="xf7ytm7VAP9QTLtyLL3Cs01Jul7rHHM26"
15+
primaryColor="#FFFFFF"
16+
secondaryColor="#000000"
17+
accentColor="#653CB0"
18+
/>
19+
20+
### Prerequisites
21+
* GLB format 3D model files
22+
* Public URL access to your hosted models, usually via web hosting service (e.g., Glitch.com)
23+
24+
### Validation and Hosting
25+
26+
Before importing, double check that your file is compatible with three.js by validating your GLB file at [gltf-viewer.donmccurdy.com](https://gltf-viewer.donmccurdy.com/). If your model is not compatible, you may need to convert it to a compatible format.
27+
28+
To host your file you will need a public URL to access it. You can use a web hosting service like Glitch.com to host your files:
29+
30+
* Create a [Glitch.com](https://glitch.com/) account
31+
* Create a new project
32+
* Upload your GLB file to the Assets section
33+
* Copy the public URL for your model
34+
35+
### Adding Models to Your Scene
36+
37+
* In 3DStreet Editor, open or create a scene
38+
* Click "Custom Layers"
39+
* Select "GLTF model from URL"
40+
* Paste your model's public URL
41+
* Click OK to add the model
42+
43+
### Adjusting Your Model
44+
45+
Use the Properties panel to modify:
46+
* Scale (adjust size on different axes)
47+
* Position (move model within the scene)
48+
* Rotation (orient model as needed)
49+
50+
51+
## Importing Images
52+
53+
3DStreet allows you to import custom images to add signage, existing conditions photos, maps, and other visual elements to your scenes.
54+
55+
<MuxPlayer
56+
streamType="on-demand"
57+
playbackId="7eUdcuA6vIAJmdooxO02va1lzdd52HqES"
58+
primaryColor="#FFFFFF"
59+
secondaryColor="#000000"
60+
accentColor="#653CB0"
61+
/>
62+
63+
### Prerequisites
64+
* Image files in JPG, PNG, or WEBP format
65+
* Public URL for your images, usually via a web hosting service (e.g., Glitch.com)
66+
67+
68+
### Adding Images
69+
Host your image:
70+
71+
* Upload to [Glitch.com](https://glitch.com) Assets
72+
* Copy the public URL
73+
74+
In 3DStreet Editor:
75+
76+
* Click "Custom Layers"
77+
* Select "Place New Image Entity"
78+
* Paste your image URL
79+
* Click OK
80+
81+
### Positioning and Adjusting
82+
83+
* Use Transform Controls for position
84+
* Rotate images to face desired direction
85+
* Adjust scale in Properties panel
86+
* Consider mounting images on existing scene elements
87+
88+
### Best Practices
89+
90+
* Validate file formats before importing
91+
* Scale elements appropriately for scene realism
92+
* Position near relevant street features
93+
* Use double-click to zoom for precise placement

docs/3dstreet-editor/keyboard-shortcuts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 7
2+
sidebar_position: 8
33
---
44

55
# Keyboard Shortcuts

docs/3dstreet-editor/mouse-and-touch-controls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 6
2+
sidebar_position: 7
33
---
44

55
# Mouse and Touch Controls

0 commit comments

Comments
 (0)