I am attempting to make one 3D model orbit another, but as soon as I change my mesh from a wireframe box to a 3D Model’s geometry it disappears. What am I doing wrong? I get no errors, I have a feeling it may be to do with the scale of the 3D model but I’m unsure. Am I getting
Tag: 3d
How to cut a figure (3D model) with a plane into 2 parts?
please tell me how to cut a figure into a plane into 2 parts, something like in the picture I tried to do as on this link, but it did not work, maybe someone else will tell you how you can divide the figure into 2 parts Three JS – How to cut a 3D object with Y plane? Answer
Three.js extrude vertically
I am new to three.js and I want to extrude a shape vertically. I can set the points of the 2D shape, but when I extrude it, the extrusion happens along the z axis. I want to extrude the shape along the y axis, how can I make this happen in the simplest way?(In this example I know could use
ThreeJs scale object relative to another object
I’m using threejs to render some models (gltf/glb). All of them are of different sizes, some are big and some are small. Now I want scale all of them to the same size. if i use mesh.scale() that would scale the object relative to it’s own size. Is there any way to achieve this without manually calculating each model’s scale?
Three.JS: Move 3D cube with accelerometer data over x an y-axis
Following my previous post I am developing a 3D model that moves based on input from accelerometer and gyroscope sensors. The 3D model is written with three.js, and the input data for rotation and translation are in JSON format. Currently the 3D cube moves in 3D space but I have two main problems: The 3D cube move off boundary when
Rotate object on specific axis anywhere in Three.js – including outside of mesh
Trying to rotate an object around any axis. For example like a door hinge (on edge of object) or planet around the sun (outside of object). The problem seems to be defining the axis. The below unit vector results in axis remaining on object’s origin (centre) therefor identical to standard rotation: See code example: JSFiddle EDIT: Looking for a way
Loading object as Geometry instead of BufferGeometry in threejs
I’m trying to load an .stl file into three.js. Everything works fine and I get the model as BufferGeometry using this code: To make it easier to further manipulate the model I would like to have the geometry as regular THREE.Geometry instead of THREE.BufferGeometry. Is it possible to either load the .stl in a way so I receive it as