Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • V Visualization
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Volker Coors
  • Visualization
  • Wiki
  • Three.js 101 : Hello World!

Three.js 101 : Hello World! · Changes

Page history
Update Three.js 101 : Hello World! authored 2 years ago by Alfakhori's avatar Alfakhori
Hide whitespace changes
Inline Side-by-side
Showing
with 19 additions and 1 deletion
+19 -1
Three.js-101-:-Hello-World!.md
View page @ 7357cc0e
...@@ -30,7 +30,25 @@ The first thing you need to use three.js is a simple HTML page. you can start wi ...@@ -30,7 +30,25 @@ The first thing you need to use three.js is a simple HTML page. you can start wi
</html> </html>
``` ```
## Initialize three.js ## Initialize three.js
In order to use the three.js library, first you need to add it as a script to your HTML page. you can add the flowing code to the head section.
``` ```
<!-- three.js --> <!-- three.js -->
<script src="https://unpkg.com/three@0.126.0/build/three.js"></script> <script src="https://unpkg.com/three@0.126.0/build/three.js"></script>
``` ```
\ No newline at end of file
## WebGlRenderer, Scene and Camera
This is the first common pattern we are going to see in every Three.js app.
- Create a Renderer.
- Create a Scene.
- Create a Camera.
The renderer is the place where we are going to put the result of our scene. In Three.js we can have multiple scenes and each one can have different objects.
![image](uploads/d21895e6a5457bebfc3ded3e5b5b652c/image.png)
Here we create our WebGLRenderer, we pass it the size of the window as a parameter and then append it to the DOM.
Clone repository
  • Create a simple web AR application [De]
  • Create a simple web AR application
  • Exercise for Multiresolution Models
    • Feature manipulation engine (FME)
    • Introduction
    • Open source datasets
    • Visualization with ArcGIS
    • Visualization with CesiumJS
    • Visualization with Deck.gl
  • FME
  • OGC API 3D GeoVolume
  • Project_1
  • Styling of 3D building models by Attributes
  • Three.js 101 : Hello World!
  • Useful tools
  • Visualization of Bike Sharing Data
View All Pages

Menu

Explore Projects Groups Snippets

Dies ist die Gitlab-Instanz des Transferportals der Hochschule für Technik Stuttgart. Hier geht es zurück zum Portal