collada

Importing Google Sketchup models in Mathematica

江枫思渺然 提交于 2019-12-04 09:01:31
问题 Google's Sketchup is a nice, simple 3D-object modeler. Moreover Google has an enormous warehouse of 3D objects so that you actually don't have to do much modeling yourself if you aren't particularly gifted in this area. Many of the 3D buildings in Google Earth are made with Sketchup. The capability to import Sketchup's SKP files in Mathematica would be very nice, but alas, it doesn't do that yet. The free version of Sketchup doesn't export to any other formats than the KMZ (Google Earth) and

THREE.js Collada textures not loading

跟風遠走 提交于 2019-12-04 05:14:01
问题 1) start local web server C:\Users\Public\Documents\Rick>http-server . -p 8832 --cors Starting up http-server, serving . on: http://0.0.0.0:8832<br/> Hit CTRL-C to stop the server<br/><br/> **partial log** from (node.js) http-server . -p 8832 --cors<br/><br/> [Mon, 15 Jun 2015 18:14:57 GMT] "GET /2015_03_19_Try6a3D_dae/2015_03_19_Try6a3D/scrn_ground.png" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36"<br/><br/> 2) start html file

How do you load a .dae file into an SCNNode in iOS SceneKit?

你离开我真会死。 提交于 2019-12-03 03:47:29
问题 I am having trouble understanding how geometry from .dae files should be loaded into an iOS SceneKit scene graph. I know that you can load .dae files directly into an SCNScene: // create a new scene let scene = SCNScene("test.scnassets/test.dae") I also know that you can create an empty SCNScene and add built-in 3D objects into it as child nodes: let scene = SCNScene() var sphereNode = SCNNode() sphereNode.geometry = SCNSphere(radius: 1.0) scene.rootNode.addChildNode(sphereNode) In the second

COLLADA: Inverse bind pose in the wrong space?

拥有回忆 提交于 2019-12-03 02:13:29
I'm working on writing my own COLLADA importer. I've gotten pretty far, loading meshes and materials and such. But I've hit a snag on animation, specifically: joint rotations. The formula I'm using for skinning my meshes is straight-forward: weighted; for (i = 0; i < joint_influences; i++) { weighted += joint[joint_index[i]]->parent->local_matrix * joint[joint_index[i]]->local_matrix * skin->inverse_bind_pose[joint_index[i]] * position * skin->weight[j]; } position = weighted; And as far as the literature is concerned, this is the correct formula. Now, COLLADA specifies two types of rotations

Importing Google Sketchup models in Mathematica

馋奶兔 提交于 2019-12-03 01:42:47
Google's Sketchup is a nice, simple 3D-object modeler. Moreover Google has an enormous warehouse of 3D objects so that you actually don't have to do much modeling yourself if you aren't particularly gifted in this area. Many of the 3D buildings in Google Earth are made with Sketchup. The capability to import Sketchup's SKP files in Mathematica would be very nice, but alas, it doesn't do that yet. The free version of Sketchup doesn't export to any other formats than the KMZ (Google Earth) and DAE (Collada) formats. Though MMA can read KMZ/KML files it doesn't read those containing 3D objects.

ThreeJS collada file not centred

China☆狼群 提交于 2019-12-02 16:29:11
问题 I'm new to ThreeJS and I'm trying to load collada files into a viewer. I've started by copying the code for the Elf colladaLoader demo. https://threejs.org/examples/#webgl_loader_collada I've got that working fine inside an 800px square modal window and it looks good. Trouble is when I load any other .dae file it's not centered. The demo is obviously created with all the right settings to put the object and the camera in the right place, but I don't know what files are going to be loaded. Is

ThreeJS collada file not centred

左心房为你撑大大i 提交于 2019-12-02 08:37:37
I'm new to ThreeJS and I'm trying to load collada files into a viewer. I've started by copying the code for the Elf colladaLoader demo. https://threejs.org/examples/#webgl_loader_collada I've got that working fine inside an 800px square modal window and it looks good. Trouble is when I load any other .dae file it's not centered. The demo is obviously created with all the right settings to put the object and the camera in the right place, but I don't know what files are going to be loaded. Is there any way of getting the camera to look directly at the object so it's centered and position it far

THREE.js Collada textures not loading

青春壹個敷衍的年華 提交于 2019-12-02 06:29:36
1) start local web server C:\Users\Public\Documents\Rick>http-server . -p 8832 --cors Starting up http-server, serving . on: http://0.0.0.0:8832<br/> Hit CTRL-C to stop the server<br/><br/> **partial log** from (node.js) http-server . -p 8832 --cors<br/><br/> [Mon, 15 Jun 2015 18:14:57 GMT] "GET /2015_03_19_Try6a3D_dae/2015_03_19_Try6a3D/scrn_ground.png" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36"<br/><br/> 2) start html file that loads 2015_03_19_Try6a3D_dae/2015_03_19_Try6a3D.dae from collada.html (javascript console)<br/>

xcode9 / SceneKit - .dae file not loading into SCNScene - returns nil

吃可爱长大的小学妹 提交于 2019-12-02 06:05:07
问题 I'm trying to load a .dae file into SCNScene, using the following code: let solutionScene = SCNScene(named: "art.scnassets/level1.dae") print(solutionScene?.rootNode) // prints nil solutionNode = solutionScene?.rootNode.childNode(withName: "level1", recursively: true) I exported the .dae file from Blender as COLLADA with default settings, contains just a one simple object. When i click on the .dae file in my art.scnassets folder in XCode, it opens without problem and i can see the geometry,

xcode9 / SceneKit - .dae file not loading into SCNScene - returns nil

房东的猫 提交于 2019-12-02 01:01:06
I'm trying to load a .dae file into SCNScene, using the following code: let solutionScene = SCNScene(named: "art.scnassets/level1.dae") print(solutionScene?.rootNode) // prints nil solutionNode = solutionScene?.rootNode.childNode(withName: "level1", recursively: true) I exported the .dae file from Blender as COLLADA with default settings, contains just a one simple object. When i click on the .dae file in my art.scnassets folder in XCode, it opens without problem and i can see the geometry, camera etc. I just can't get it loaded in the SCNScene. Is there anything i missed either on Blender