Collection of examples from discourse.threejs.org

The answers to some questions contain some very interesting and instructive basic examples. These are difficult to find in the large number of questions on discourse.There are also good examples in resources and showcase.

Therefore I collected them and put them on one page, clearly arranged by time.
The collection may be a help for beginners. :slightly_smiling_face:


UPDATE
2019
http://discourse.threejs.hofk.de/ is now redirected
to the safe side * discourse.threejs.hofk.de
2020
The note on local use of the examples has been adapted with regard to the use of ES 6 modules since 2020.
2021
In addition to BeginnerExample, I added ShaderBeginner, a small shader book for beginners. It is in progress and will be supplemented with more examples.
See also page 42 here. (Collection of examples from discourse.threejs.org - #42 by hofk)


The examples are organized by year. There are not many in the beginning year of the discourse, but there are many more in the following!

A download is available for completed years.


cut-out

You can try them out immediately and use Ctrl U to view the code.
The source code contains the links and the author.

In addition, extended examples ar aviable.

cut-out

These are links to the original pages. Only examples with code on jsfiddle, codepen, codesandbox, github and my own page are considered to avoid broken links.

62 Likes
Animating Camera LookAt
THREE.StaticMesh - Less memory, render faster
Create collision with particles of a 3d model Three.js
See inside cube, occluding wall space with other cube
Linesegment line position
How to add contextmenu on right click?
Drag and drop with snapping objects
Is it possible to add a button into the scene?
Rotate gltf model around custom axis
Loaded(gltf) something, but now I want to make it so I can walk around on it
How to load a 3D Model?
Help Loading a 3D Model (.obj)
Data Driven Visualization
Adding hotspot to sphere geometry 360 image texture
Why is the Geometry faster than BufferGeometry?
How to render geometry edges?
Render multiple views
How to Build a car with Geometries
Wall building in a level-editor
How To Make Curved Surfaces
Net (polyhedron)
Plane mesh with rounded corners that can have an image texture
Shape lineTo animation [noob question]
Draw shapes on a sphere
Help with GridHelper - 3d coordinates
Curve as a path for moving a mesh
How do I make my edge lines thicker?
Three.js + Delaunator
How to use three.js to change the size and position of the imported obj model?
Coloring a face in buffer geometry
Input realtime value to a 3d object
Looking for a simple tutorial to load a 3D charactor not the one I've already had problems with
CustomGeometry & newBone
[SOLVED]Mesure distance between two points on a object by clicking
Create pulse animation and beating heart
Text is not loading in THREE.js
Globe with markers
Unable to use fontLoader or textGeometry
Move object along the surface of another object
Custom UV Mapping
How to select a part of a geometry?
How to use faceVertexUvs from new version of three.js?
Best practices Three.js project setup & learning resources
BufferGeometry compute UV
How to build a nav viewer (or compass nav)
Cube rotation using Leap motion sensor + three.js
Sphere with clickable faces
Move camera with Tween
Mesh with a clickable corner and side
How to create a scene like this?
CircleGeometry with edges
How can I manipulate the vertices of the sphere in three.js?
How to rotate model?
How to load OBJ and MTL?
How to draw a model from lines
How to create a line/curve that connects points that I clicked on the model?
Taking an existing HTML5/JS project into three.js?
How to build wall more efficient?
Interior architecture helpers
Round-edged box flat
Dividing Plane Geometry into definite number of small planes like cells in excel sheet
How would I get these joints simulating correctly?
How to animate obj model move along with curve
Project with threejs
Very basic ViewCube
Dynamically add bones to skinned mesh
How to create a simple dynamically expanding rectangle geometry
What is the best way to create this shape?
Extract surrounded surface
3D Mesh from cloud of points
Round-edged box
Drawing a circle with shaders
Surface from array of vector3
Question of particles, textures and png files
Drawing a shape in xz plane
How to rotate a gltf model in a specific direction
Room Generation using BufferGeometry
Create custom Fish Geometry
Sensor data read into website
How to extrude polygon from X-Y until intersection with inclined plane
Module Import / Usage
Create perpendicular object3D with a corresponding object3D
Mouse lags behide the object when dragging
How To Make Plane Object Face's Texture Reversed?
Possible idea for 'old tutorials don't work' problem?
Low-poly ocean/water
How to get intersecting geometry of two mesh geometries
Add marker on mouse click on a 3D cube
Don't know how to access ParametricGeometry in Three.js
Circular control used for walkable areas control
Does anyone else find the docs search function to be poor?
Vertices and face data into three object
Flying through clouds
Drag 3D object with mouse using three.js
BoxGeometry vs BoxBufferGeometry
Modify point cloud directly in browser
Can't run html files in Chrome locally
How can i make a pyramid shape based on a periodic table
Which method of text presentation is preferable?
Dressing a cube with images does not work for me, mapping textures
How to add multiple GLB models in the same scene?
Shader effect cannot show behind transparent mesh
Getting error while using GLTFLoader
How to make object from line clicks
I wanted to rotate this model but it seems to not work, is the scope the problem?
How to make Indexed BufferGeometry Fat Line?
Getting Vertices' positions and changing their position
Beginner Question: Using a For Loop to add multiple cubes that all animate
How complex is it to create a chess like grid and add object so positions (perhaps animate)
Texture doesn't load correctly
Geometry -> buffergeometry migration
Curve and Font - undefined
VideoTexture rendering but frozen
How to create holes in objects without modifying the mesh structure in Three.js?
When loading obj model, why are the coordinates of mesh objects {0, 0, 0}?
How to sculpt an obituary shape onto the surface of my mesh
Using local images for texture?
Rotation of camera around origin with tween js
Modify Extruded Geometry
Wall building in a level-editor
Help with NPM on simplified scenes?
3D models don't seem to have a geometry property so how can I compute a bounding box?
Rotate around itself
New user converted to Three.js
Addon to create special / extended geometries
[Solved] Help with wrong position meshes along a curve
3D model help newbie
Start journey in 3js
Three.js Cookbook Relevance
How do I render different scenes on different sections of a page?
End Caps of TubeGeometry
PlaneGeometry hello world
Why does LineGeometry form a loop with the start and end points?
How can i implement THREE.Curve to draw a 3D multiple vertex line?
Raycaster for multiple objects
RepeatWrapping returns Cannot read property 'set' of undefined
Build/three.js depreciation?
Getting started with Three.js. Looking for tutorials
How can I apply PNG as a 2side pattern texure on a RingBufferGeometry
Indexed BufferGeometry front and back side assignment - normals or order of indices?
Writing 2D text onto a surface
Animating a camera flip
Can anyone help me build a barrel with texture and correct geometry
Can't apply container size when open or refresh page
Model does not display
Camera Rotaion and Move at point
How to avoid model intersections
Creating a cross-section outline
How can i draw a polygon in three js if i have 4 vertices
Skinned mesh with dynamic knees
How to create window and door openings in the wall?
An example of text to canvas to texture to material to mesh. Not too difficult
How to update BufferGeometry vertices as a track on a circle
Problem with code
Is there a way to have skinned line segments?
How to judge and prevent the intersection of lines
CSS2D Renderer - Markers to far from the model
Why I can't create Face3 in ThreeJS Typescript project
Im new to three.js. Im stuck at GLTFLoader. I have downloaded the GLTFLoader externally and with threes package also. But still it is not imported. I don't know why
How do i create some projects?(im new)
Create a scene with multiple canvas
Triangular Pyramid
Uncaught ReferenceError: THREE is not defined
Is it possible to create objects based on matrix array?
Align plane and ring geometries together
How to texture merged geometries?
Adding planeGeometry inside sphereGeometry as a sprite
Can we add text top of a mesh/object/material?
Questions about ExtrudeGeometry extrudePath property
Rounded corners on BoxGeometry where faces not touching
Updating plane vertices in animation loop
How to Extrude a path?
2D Shape to Cube
Orbit Control autorotate once
Move points to saved position
How do I render a video on sphere in THREEJS
Spiral effect with divs
Applying different textures to different aspects of object
Beginner, can make a cube, a cone, but not a sphere
Where are located now FontLoader.js and TextGeometry.js?
Object rotation then why object position changes
Three Js - without NPM
How to rotate an object around a pivot point?
How to make a hole in the wall?
I changed versions of the 121 to 125 and there were problems with the modification of vertices in THREE.BoxGeometry
VideoTexture on 3D Object - Problem Appear Transparent
How to make a navigation path like this? thanks
How to set a Plane GridHelper ? how to have my gridHelper oriented by a plane define from points?
Why not load the Texture in Three.js
Drawing 3D mesh with giving 2D array
Three.js book recommendation
Extrusion with varying heights
Show distance between Objects when attached to wall
Align plane and ring geometries together
Group And Animate Meshes
Group And Animate Meshes
Mapping Text onto faces of Cube
How to animate drawing a wide strip on a plane?
How to load the GLB model correctly?
Black screen when I use Three js editor published project in firefox or chorome
How to load OBJ and MTL?
Random points on surfaces
Drawing curve on a globe
What is the difference between points and vertices
How to assign multiple image textures to a subdivided face
Something about VideoTexture.
How can I embed an Iframe in Three.js 3D modeling?
Examples website
Examples website
BufferGeometry sharing vertex
.obj file looses color
How to showcase multiple examples in one page
Modeling avatar (Newbie frenchspeaker)
How mix colors in Mesh basic material?
How to offset geometries with a certain degree of randomness
Creating custom geometry elements like AR glasses or Waves
Cloth / Flag Simulation
Three js video with rounded corners
[RESOLVED] Sharp mesh edges around edgy curve
[SOLVED] Transform controls changes to different mesh on a scene even when the arrow is in focus
Set location of object using object vertex
How to animate curved arrows in threejs?
script not working - console shows no errors but still black and no 3d model
Transformation of an individual Instance possible?
CylinderGeometry lookAt and its rotation
Change vertex position with BufferGeometry
Help getting the actual position of a vertices in a buffer geometry!
Struggling with paths
How to bend a grid of particles into kinda sphere-looking shape?
THREE.PrespectiveCamera is not a constructor
How to import OrbitControls? I'm having trouble importing it!
Translate and rotate planete in three js
I am trying to draw a color filled rectangle with a thick border
Handling Meshes in the same way as Points
Objloader loaded but not display model in scene
Is there an easy way to create a hollowed out extrusion?
Instanced lines scaling and rotation
How to make this kind of shape using BufferGeometry?
Geometry from two planes
How to remove a face of a cube
Trying to adjust this "Wave a flag" example
Surface/Mesh/Loft from closed lines
Moving objects along curve very slowly with instanced curve modifier (InstancedFlow)
Rotoscoping in three.js
BufferGeometry with Material
How do I create parametric families with an option to change sizes?
How can I bend a corner of the plane in three.js
Pre-render HTML Div Element as texture
Closing ribons vertices
Fabric shader on threejs
Resizing imported object/resizing shape
Changing the center of object
Eliptical path for camera movement
Issue with my three code nothing shows
𝔽 How many ways to load a font in Three.js?
Create circle with fuzzy edge made of individual random particles
I seem to be to stupid to install three.js
Robotics 'physics'
Looking for animated annotation guidance
OpenSourced Library/List of Meshes/Geometries
How do I get vertices and faces from THREE.BufferGeometry
How to use GLTF model outside of loader
How complex is it to create a chess like grid and add object so positions (perhaps animate)
How to calculate quaternion from world position of 3 points on a plane
Texture mapping on a custom geometry
Creating stars that move along a specific path
Hexagon Voxel(Minecraft Like) Geometry
Help | Sphere dots model
Can't load 3d model with GLFTLoader()
How to create a road from vector points?
Normals wrong when Indexed Geometry shares Vertices
How to place icon on particular 3d Model parts dynamically
No errors, but only see black
Don't know how to access ParametricGeometry in Three.js
Rotate Mesh/Body with Quaternion
How to draw a triangle?
How to rotate object around its center?
Periodic circular opening and closing box
Multi Form Geometry
Is there a function to loft entities through a group of closed curves?
Get position of object based on its center
Change vertex position over time
Can Threejs achieve cloud rendering?
Fill space between cubic bezier curves and straight lines
Threejs move along complex path animation
[SOLVED] Rotate .GLB Model (GLTFLoader) ← thanks hofk
How to make a rounded-edge and rounded-corner cube by BufferGeometry with split vertices
Example of how to use CCDIkSolver with a generic SkinnedMesh?
How three.js differs from other libraries
How to make a cube out of six bounding boxes
Emulate claw machine movement in threejs
Wireframe -- how to implement and with user settable toggle?
Rotate GLTF model with Mouse Move
Why is the Geometry faster than BufferGeometry?
Help me to port a shadertoy shader to three js
matrix.makeShear() using degrees?
Merge multiple mesh into a single one
Collected much resource showcase Three.js examples and demo, it is free. if it help you give me a star
Sharing Codebase on own website for a course
How to convert to Quaternion to AxisAngle
How to build corner with two intersecting line segments?
Animate every point of a line to another line
Trying to rotate a laser beam correctly
Traverse from one cube room to another cube room with the help of keys
Raycasting visible objects under few layers in glb model using orthographic projection
Rotate object with its own local axis
How to Surround a Human-Shaped OBJ File with a Rectangular Mesh in Three.js?
Select area and access it
Elliptical orbits, objects following EllipseCurve
Getting unfolded SphereGeometry 2D plane
PolyhedronGeometry or something similar, for constructing a mesh from the coordinates of points in space
How to load GLTF model at specified position?
How to merge cone geometries to one mesh?
How can I embed 2D text into my mesh?
Is computeVertexNormals working correctly?
Help with implementing an animated line component
Create a squared link that connects two objects on a grid
Why people passes array of materials to mesh?
The MeshPhongMaterial do not work
Create a 3D plane and plot the line on it
A ring of text without using torus?
Why is there a forum and a stack?
Need help for obj & mtl loader display
Procedural Skinned mesh is not visible
Can I draw 3D characters in three.js?
Drawing custom shape in top view - polygon
Generating more than 7-8 cubes causes low fps
Post Processing Bloom Effect & Composer Only Creating White Screen
How to make a deformed bubble
Implement the different color for each face of the shape which is made by extrude geometry
Change color of shader
Help adding thickness to a cylinder with no caps
How to scale glb model
How can I create a hole in a geometry with text?
Y position at a certain x position of a moving tubegeomerty
No more vertices in r162
Uncaught (in promise) TypeError: onLoad is not a function
Convert 2D coordinates to 3D objects (walls)
Animate path of TubeGeometry
Scene stays black
Calculating faces and vertices
.rotation doesn't work past a certain amount of degrees
Easy cool vsual effect to apply to an existing image texture while a replacement image is loading?
[newbie] Cannot display a texture on uv
I'm new to threeJS and want to display a sphere. But somehow I cant. Please help
Shaders that draw different types of geometry
Dont change position model third
Calculations and Mathmatics in shaders
Trying to adjust this "Wave a flag" example
Bend a geometry
How to dig a hole in planar geometry
How to move my 3D loaded model?
Rotate object around in circle
How to Calculate skinIndices and skinWeights for Developing SkinnedMesh?
Handmade kinematic robot arm simulation I made a while ago...
How to have different colors/textures on bottom and top side of a Plane?
How can i set scale
Create a 3D modeling app with ThreeJS
How to move a chain of parts at the same time (like a robotarm)
BufferGometryUtils
Render multiple views
How to bend models using a spline or similar?
How to map uvs with one texture?
Happy New Year - 2024
3D render from blender
[SOLVED]Create a spring
Threejs Book For Beginners
Adding video texture results in Error
Where has the "how to run things locally" page gone?
Issue with module imports without external dependencies
How to create custom geometry?
How do you integrate Signed Distance Fields (SDF) into a basic three.js scene?
Compare three.js scenes with overlay slider
Can't get three.js DodecahedronGeometry on the screen
What material do I need to use to implement this kind of sphere?
Model not aligned to the ground plane
Wall/ room drawing prototype (like The Sims)
Useful shaders examples
How to create a custom automatic camera movement
Can't understand why result is a triangle instead of rectangle when creating 3d polygon
Scientific Software Applications with three.js?
I made some simple fireworks.
Deform displace geometry sphere question
How to create bubble effect
How would you create this mesh deformation effect?
How do I draw a quadrilateral grid on my model
How to add thickness to any flat mesh
Rotational movement of robot arm
Loading 3D models
THREE.js triangulation
How do you integrate Signed Distance Fields (SDF) into a basic three.js scene?
Looking for a simple example to render my .OBJ along with its .MTL (and OrbitControl)
Simulating Realistic Rigid Body Impact on an Inclined Plane in Three.js
Animated sphere covered with text of different sizes and fonts
Is it possible to generate individual ice floes from cylinderGeometry
Is the usage of Content Delivery Networks (CDN) for deployment recommended/discouraged?
Understand how we place the value
Preloading issue with URL links fetched from backend
The 3d model i created is not visible in website i am a beginner and cant resolve this issue just with the help og chat gpt even the babylon.js validated my model but provides 10 warnings someone one plzz help
How do I create a rounded cube with "segments"?
Use Texture for BufferGeometry
How to get all faces of cube in newest version?
New to Three.js looking for help in the right direction
Is it possible to reset object's rotation but to preserve orientation?
Mesh Material Color rendering as undefined
Drawing a plane from line
Trying to simplify fat lines code
How to make the camera move along a given curve path?
Noob need help with Cameras
SDFs in the scene - raymarching
How to remove interior faces while keeping exterior faces untouched?
How to use easing functions to improve lerp/slerp
Three.modul.js ? var geoField = new THREE.Geometry();
Add 3D Model into div tag in carousel WebSite
How to change the color of the polygons of an object during a collision in Three JS?
Rotating a specific joint after reaching a target
Vertex mismatch with raycaster and plane mesh
Need help in getting started
Class constructors cannot be invoked without 'new'
Extend (scale) line passing through 2 points
Duplicate vertices in buffergeometry
Infinite marquee across a dynamic perspective? Is it possible in Three?
Noob - Basic model import 404'ing
Shape requirements best fit material and geometry
How to animate curved arrows in threejs?
Can I place obects on a sphere surface evenly
How to label all of the vertices of an object?
I can't get my model
Text on faces of Icosahedron geometry
Create a curved plane surface which dynamically changes its size
Collection of sphere definitions
Triangles between lines
Change vertex position over time
Shape with different clickable parts
How to remove interior faces while keeping exterior faces untouched?
Deleting face of mesh
Create a bar chart protruding from a sphere
Approach to dynamically "draw" mesh in space
Import command not working
How to change the position of perspective camera vertically?
Draw grid on top of model on each face
Align items in a specific layout
Performance problem when using raycaster
How to create a Z-like Shape?
How to convert uv coordinates to 3d object?
Quaternion - method .setFromBasis( e1, e2, e3 )
Normal website with forms on threejs
See trough another object in MeshPhysicMaterial
How to write a hollow cylinder?
3d Model Object Rotation
Robotics Simulation - Six DoF
Raycasting support for French beginner please :)
How to show grid division dimension
Can't Get Text Geometry to show
How to recenter loaded model on the scene
Cast a ray at LineSegments
Three.js camera rotation
TrackballControls aren't working
Cannot import models into my browser
Draw a line on surface mesh!
How can I create custom polygon?
𝔽 How many ways to load a font in Three.js?
20 questions help with the basics! Move, rotate, scale, destroy
Audio in Javascript and HTML
Help converting shader from ShaderToy
Find intersection between two Line3
Some Basic Questions
How to add click event on child mesh of an object?
Get edges of plane - vertices not in right order
I can't load a model into Three.js
Problems with creating custom polyhedron geometry
How to modify (distort) a geometry
WebGLRenderer & CSS3DRenderer in one
Easiest way for straight path animation?
Paint the chessboard
Compute surfaces of objects
Lights for car headlight
Lights for car headlight
How to put numbers to the sides of a cube and later get which number landed on top
VideoTexture with TextureLoader possible?
SeaShell Mesh from point array? extrude along path?
Is this possible using three.js? PLEASE GUIDE
Shadow on transparent plane
Interest for collaborative coding "jams"?
How to make a camera transition to a different point
Centering object3D with child meshes
How to make diamond looks real?
Videotexture not working on Xiaomi and Huawei devices
I started to learn shader programing for WebGL, but I am facing issues while learning it
Is it possible to texture map a Line
There are no errors in my script, but I can't see the model
Draw a three-dimensional map
Is it possible to add a button into the scene?
End Caps of TubeGeometry
Problem with interaction when merging WebGLRenderer & CSS3DRenderer
Module Import / Usage
Module Import / Usage
Debug winding validator
Add Texture to polygon geometry shap

Great idea! :+1:

1 Like

Klaus, you rock! :metal::star_struck::+1:
Great job. Seriously.

3 Likes

Super! Thanks:fire:

Added to the bookshelf!

2 Likes

:slightly_smiling_face: UPDATE January 2019 - new organization after years and download - see original post above. :slightly_smiling_face:

5 Likes

Looks great! :+1:

1 Like

UPDATE January 2020

:slightly_smiling_face: Year 2019 completed, annual download available. See original post above. :slightly_smiling_face:

4 Likes

@hofk Hello! I was noticing that the individual examples don’t have a date or forum post title listed with them. This would make it easier to find the examples in your index.

Is the code for the index open source somewhere so we can suggest modifications to add such features?

Everything is of course in the license like three.js itself.

I have to keep the workload on this thing to a minimum. See the discussions, links “Discussion about this side” at the bottom of * discourse.threejs.hofk.de.

With the extended examples I cannot guarantee the actuality.

For example, your example for “HTML-Buttons-Shadow” on eXtended eXamples currently works with Chrome, but not with Firefox.

Also I have to make a choice with the extended examples, it becomes more and more. I won’t post big projects, they are better found elsewhere.

If I find an example that is smaller but not so easy to copy, it will automatically become an extended example. It is possible to specify the links.

I collect the examples myself while reading and copy only the discourse link.

The editing (copy, addition of the HTML page) is done in irregular intervals. Sometimes there are then in the contribution already again other examples. There it becomes with the time sequence again an expenditure.

Sometimes there are contributions from previous years.

The wish list ( see Is it possible to add a button into the scene? - #11 by hofk ) can possibly be fulfilled by someone else. It is no problem to copy the existing years (there is also a complete download). The HTML pages are simple filled out lists of the elementary template lines above.

Then one can add a link to the completed page. :slightly_smiling_face:

When I was younger (see Module Import / Usage - #15 by hofk) and a high school teacher, this would have been a nice exercise for a student. :girl: :boy:

So basically what you’re saying is, the code is there, at https://hofk.de/main/discourse.threejs, right?

What I meant is, do you have a code repo? for example on GitHub? This would encourage and make it easier for anyone to suggest code changes to improve the site.

I checked here but don’t see a repo: https://github.com/hofk?tab=repositories

I think your index is valuable, and would like to help propose changes when I find some time.

I’m imagining we can beautify it, organize the thumbnails into a nice grid (with information still visible), make the examples live code so editing code shows live updates, etc.

The individual years as a template copied e.g. for 2020 view-source:discourse.threejs.hofk.de .

So would you like to put everything that is under https://hofk.de/main/discourse.threejs on GitHub to make it easy to propose changes? Or you’re not interested in that? EDIT: Oh, I just saw your private message after this. I can reply there.

Hello: I am very new at threejs, but I really like it a lot!
I just got the Collection of examples from discourse.threejs.org
I download and open the folders. I just double click on the .html file and some of them work, and some don’t… the DraggingObjects.html on folder 2019
works fine when double click on my computer…
but if I upload it to my server to see it on my web-page… it doesn’t work

I don’t change anything, why is not working on my site: http://songnes.com/g/DraggingObjects.html
and why some of them work, and some don’t

it has to do with this?:

The console shows
ReferenceError: THREE is not defined

You must respect the structure of the folders.

See
script src=“…/js/three.min.106.js
in source code.

Or it is something with the configuration of your server?
See note @amitlzkpa How to add a .png texture to a cube - #2 by amitlzkpa


By the way, have you read this book? https://discoverthreejs.com/ by three.js co-author and moderator looeee

1 Like

Thank you for that, but I guess that was my question…
script src="…/js/three.min.106.js"

when it says “…/” it means from somewhere …
where do I get that file, so I can upload it into my server

http://songnes.com/js/threeJS/three.min.106.js <------ here

when I go to github, I don’t know how to get the actual file…
is there any place I can go and just download it easy…

thank you!

Actually this does not fit into this topic, but since other beginners may have similar problems, here are some explanations. :slightly_smiling_face:


If you download the zip-file from * discourse.threejs.hofk.de you will get all necessary things in the folder structure I use.

If you look in the source code of
DraggingObjects
you see

2020-05-11 11.10.35

“…/” does not mean somewhere, but means “go to the next higher level folder”.

Then it says “js/”, so together “…/js/”

So you will find the file three.min.106.js in the folder js in the next higher level folder.

If you unzip the zip file, you will have many folders with the examples in the folder of the year.

If you look carefully, you will also find the folder js. The short name is often used for JavaScript scripts.

Open the folder and you will see the files I needed for the examples in this particular year.

If you put examples on your server, you either need to create the folder structure like mine, or you change the path to access the files.

In one of your examples I have seen:

2020-05-11 11.34.48

So you have your own structure /js/threeJS/ , which you probably always choose. You should be a bit constant there, otherwise you get mixed up easily.


Sometimes I see examples where the version of three.js is not clear to me, or the author has changed three.js. This is allowed. Then I just copy the file.

Just click on the .js link in the source code and the file will be displayed in the browser. Copy with Ctrl + C and paste it into your own code editor with Ctrl + V .

Now you can name the file correctly and copy it into your appropriate directory.

:slightly_smiling_face:

A statement (GetSources) was added below. 2020-05-11 17.29.29



With the module version it gets a bit more complicated for beginners.

See

Further information can be found at the bottom left corner of
* discourse.threejs.hofk.de – Module usage

1 Like

Thank you. I got the first part…

I will read the module explanations!!!

Changes for 2018


Since 2018 the restrictions in the browsers have been tightened. Therefore the example VideoProjection and the underlying fiddle did not work anymore.

A play button was added.


In the example ChangeTextureByTime I had forgotten to copy the textures. Meanwhile the texture UV_Grid_Sm.jpg no longer exists on threejs. org examples textures.

Replaced by uv_grid_opengl.jpg


Please also download and replace the corrected file 2018.zip if necessary.

2 Likes