Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
48 views

Unable to Print Country Names on Globe Click in Angular with Three.js

I'm currently trying to implement a 3d globe that has COVID-19 information for each country that is coming from a JSON file. Whenever I click on a specific country, or mesh, on the globe, it shows ...
CGUltimateno's user avatar
1 vote
0 answers
66 views

How to show 3d polygon from three-dimensional coordinates array with javascript

I have JSON data like this. I have to show a 3d polygon with js exactly like the example. Can't change anything in the data. Need to fix it functionally. Have more similar data. // 2 features data { ...
Mohsin Uddin Abir's user avatar
2 votes
1 answer
72 views

Threejs Line2 fails toJson() serialization

I am adding a Line2 in Threejs (v 146) const lineGeometry = new LineGeometry(); const line2Points = [10, 10, 0, 0, 10, 0, 0, 0, 0, 10, 0, 0]; lineGeometry.setPositions(line2Points); const ...
user3195199's user avatar
1 vote
0 answers
60 views

Incorrect bone positions in Object3D after conversion to json

I want to export my scene (there is only one 3D humanoid object in the scene) and convert it to .json format. After that, I import that .json into threejs-editor. The result is that my model doesn't ...
shikitos's user avatar
0 votes
0 answers
101 views

Manipulating material of 3d object via API in three.js

I'm trying to dynamically update materials in my 3d object using an API call which is made every 2 seconds. I have mapped my all my 3d nodes (just over 1k of them) and I would like to update them via ...
sephiroth85's user avatar
1 vote
1 answer
220 views

How to use three JS JSON models in A-frame

I want to use some low poly models from https://clara.io/ as a ThreeJS JSON model in A-frame. I want to use this because it is much more efficient and smaller than a 3D model, which will load much ...
Gábor's user avatar
  • 327
1 vote
1 answer
109 views

three js isn't activating

This is my three js code import * as THREE from "three"; import images from "./images.js"; const container = document.querySelector(".three_bg"); const ...
XYZT's user avatar
  • 13
1 vote
1 answer
2k views

three.js GLTFLoader() "Unexpected token" error

I want to load a .glb model into three.js using the GLTFLoader. I succeeded in creating a rotating 3D mesh on a canvas--without errors in the console. However, attempting to replace that with the .glb ...
Hikiki Me's user avatar
1 vote
0 answers
319 views

ThreeJS- Ensuring objects placed on sphere are resting on the surface

I have a globe with the data of country borders. I have spheres placed at the center of the bounding box of each country- unfortunately for large countries such as the US, Russia and China or ...
Bigboss01's user avatar
  • 598
0 votes
0 answers
159 views

Three.js website throws 403 error when uploaded to the server

I created a pretty simple three.js website and uploaded it to my hosting server via FileZilla, but as soon as I try to access the site I get a 403 error. I have already spoken to the customer service ...
Aleksa Jevtovic's user avatar
0 votes
0 answers
87 views

Importing Three.js with npm

Just tried to write up a basic three scene, and didn't seemed to be working with the npm installation of THREE.js. A bit newer with working with npm so not sure what quiet is wrong with my ...
Corey Braun's user avatar
0 votes
1 answer
125 views

JavaScript not showing up in command

I'm having trouble understanding what I have to do. I work on a Mac and I'm trying to create a 3d portfolio but for some reason, this is difficult. I am trying to figure out why JavaScript is not ...
Nicholas Porc's user avatar
1 vote
1 answer
664 views

i have a problem loading my 3d object (json file) in my 3d scene

I have a problem loading my 3d object (json file) in my 3d scene. have I not yet fully integrated my property? I didn't assign any textures. My model was created from blender using three.js exporter ...
Karsten Stanley's user avatar
3 votes
1 answer
161 views

how does vans have a small-sized json 3d model

I am trying to create a 3d site using Threejs and React and react-three-fiber where I can customize shirts and then stumbled upon vans website in their customization page. I noticed that they are not ...
Jay-R Joseph Gabunada's user avatar
0 votes
1 answer
284 views

Save & load a texture with alpha component in three.js

The following code works perfectly for images that do not contain an alpha channel: toJSON() { let output = super.toJSON(); output["geometry"] = this.geometry; output['imageURL'] ...
Morne's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
22