3d-model

Cross-sections of OBJ in three.js using ThreeCSG

守給你的承諾、 提交于 2019-12-01 12:10:11
I'm trying to make cross-sections of an OBJ loaded with the three.js OBJ loader using the threeCSG wrapper for the JavaScript constructive solid geometry library. When I use a regular mesh (like a sphere/cube), the intersection csg operation works beautifully. I can also make great-looking cross-sections with an obj in its initial position (white object, cross-section displayed in red below): However, when I rotate the object, the cross-section is the same no matter how I change its rotation: How can I get the csg intersection operation to take into account the rotation of the object? It works

Cross-sections of OBJ in three.js using ThreeCSG

為{幸葍}努か 提交于 2019-12-01 08:08:59
问题 I'm trying to make cross-sections of an OBJ loaded with the three.js OBJ loader using the threeCSG wrapper for the JavaScript constructive solid geometry library. When I use a regular mesh (like a sphere/cube), the intersection csg operation works beautifully. I can also make great-looking cross-sections with an obj in its initial position (white object, cross-section displayed in red below): However, when I rotate the object, the cross-section is the same no matter how I change its rotation:

WebGL importing models using the OBJMTLoader in three.js fails

老子叫甜甜 提交于 2019-11-30 19:27:38
问题 I am having some problems trying to import the following model into WebGL using three.js: http://tf3dm.com/3d-model/vanille-99084.html I've converted the obj file to JSON using the converter that comes with three.js and the model works fine when using the JSON Loader. However, when trying to load the model with the textures from the .mtl file the OBJMTLOader fails. I am using the following example and just replaced the paths with the paths to my files: https://github.com/mrdoob/three.js/blob

3D reconstruction — How to create 3D model from 2D image?

怎甘沉沦 提交于 2019-11-30 06:11:01
问题 If I take a picture with a camera, so I know the distance from the camera to the object, such as a scale model of a house, I would like to turn this into a 3D model that I can maneuver around so I can comment on different parts of the house. If I sit down and think about taking more than one picture, labeling direction, and distance, I should be able to figure out how to do this, but, I thought I would ask if someone has some paper that may help explain more. What language you explain in

3D reconstruction — How to create 3D model from 2D image?

我是研究僧i 提交于 2019-11-28 15:10:57
If I take a picture with a camera, so I know the distance from the camera to the object, such as a scale model of a house, I would like to turn this into a 3D model that I can maneuver around so I can comment on different parts of the house. If I sit down and think about taking more than one picture, labeling direction, and distance, I should be able to figure out how to do this, but, I thought I would ask if someone has some paper that may help explain more. What language you explain in doesn't matter, as I am looking for the best approach. Right now I am considering showing the house, then