collada

How to render .dae(collada) file in android studio using openGL

蹲街弑〆低调 提交于 2019-12-11 00:14:11
问题 I am developing a android project to make and render a 3D Object using openGL concepts. I'm able to rendering obj and mtl file Unfortunately, I'm not able to render .dae(collada) file in android studio. Any one send a sample project link for basic animated file in openGL 回答1: Take a look at this repo: https://github.com/andresoviedo/android-3D-model-viewer ColladaLoader class has the code to parse the data in a dae file. 来源: https://stackoverflow.com/questions/48204593/how-to-render

SceneKit: how to control size of imported assets, one DAE file creates SCNNode of huge size while another is “normal”

試著忘記壹切 提交于 2019-12-10 21:23:40
问题 A designer provided the attached two DAE files created in Cinema 4D. Both assets are of comparable size inside of Cinema 4D. Both DAE files were produced with the same export process. Importing the DAE files into a SceneKit scene, however, produces different results. Chango.dae imports at a "normal" size with a bounding box of ~3x4x3. Tiki.dae imports at a huge size with a bounding box of ~155x325x140. Its dimensions inside C4D are ~122x283x142. Questions: 1) How do you make sure assets "fit"

Three js - Can you clone animations loaded from a collada file?

北慕城南 提交于 2019-12-10 16:27:07
问题 I'm essentially asking the same question as the one found here - https://github.com/mrdoob/three.js/issues/1883 - Using three js I can import a collada scene with basic keyframe animation and play back those animations easily enough, but would like to copy the animation data from one scene object to another. Is that possible? At runtime I've noticed that the collada.animations objects contains a - collada.animations[n].node - which appears to be a THREEJS.Mesh object, which I've been trying

The collada model looks strange (three.js)

喜欢而已 提交于 2019-12-10 11:18:02
问题 The collada model looks strange in three.js. A screenshot: The code is very simple, nothing special: loader.load( 'models/police_car.dae', function ( collada ) { dae = collada.scene; init(); }); I downloaded the model from google sketchup warehouse. [link] I have no idea what is the problem, because I'm new in three.js. Should I call a function to fix it? Thanks in advance, 回答1: I think this is happening because the back faces are not being rendered. COLLADA has no way to specify whether a

STL rendering with threejs

喜你入骨 提交于 2019-12-08 10:52:04
问题 I have created a 3D model for printing in 3D an industrial layout. Because I am not used in playing with professional 3D modeler software, I used SketchUp and the result was fine ! Now, I want to reuse the 3D models to make a dynamic visit of the "to-be" installation. I exported each object in Collada format (DAE), and then try to used the collada importer in Threejs. I have around 130 objects that I want to be able to select interactively, but I manage only to load one ... I then get a try

How to import a dae to SceneKit for ARKit

北城以北 提交于 2019-12-08 05:57:42
问题 If I run Xcode's ARKit project template, I can move around the default ship as expected. I have tried importing some dae models that I have exported from Blender, switching the ship to the new item but keeping the code the same. They always show in view but position in front the camera. If I try to move around the model it sticks infront of the camera and doesn't stay in the same virtual space. I have also tried importing a dae from another tutorial and that works as expected. Does anything

Is there a way to convert gltf to dae?

我们两清 提交于 2019-12-07 05:40:54
问题 I can make gltf files with the collada to gltf converter. But is there a way to reverse this? 回答1: UPDATE - October 2019 - Blender 2.80 has shipped with full glTF 2.0 import/export capability. It also has COLLADA import/export capability, so can be used to convert one to the other. UPDATE - November 2018 rewrote answer for glTF version 2.0, which has almost completely replaced 1.0 in the time since this question was originally asked. glTF 2.0 can be processed by a variety of tools, many of

Can't display 3d file from cache directory

无人久伴 提交于 2019-12-05 20:53:14
Can you please help me determine the problem here? It seems that I can't display the 3d file from cache directory. I'm having this error SceneKit IO: error, COLLADA files are not supported on this platform. The zip file im saving in the cache directory contains .dae file and .png for the texturee. With Scene Kit you can: Import COLLADA 3D objects and build scenes composed by cameras, lights, and meshes. https://developer.apple.com/library/mac/documentation/3DDrawing/Conceptual/SceneKit_PG/Introduction/Introduction.html Thanks. dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE

Is there a way to convert gltf to dae?

廉价感情. 提交于 2019-12-05 10:58:51
I can make gltf files with the collada to gltf converter. But is there a way to reverse this? UPDATE - October 2019 - Blender 2.80 has shipped with full glTF 2.0 import/export capability. It also has COLLADA import/export capability, so can be used to convert one to the other. UPDATE - November 2018 rewrote answer for glTF version 2.0, which has almost completely replaced 1.0 in the time since this question was originally asked. glTF 2.0 can be processed by a variety of tools, many of which are listed on the glTF Tools section of the official Khronos glTF README. Older glTF 1.0 While there are

Convert 3d 4x4 Rotation Matrix into 2d

与世无争的帅哥 提交于 2019-12-04 13:59:09
问题 Say we have a 4x4 matrix with indices like so: 00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33 How does one convert the rotation data (ignoring the z axis, if that helps) contained in this matrix into a single 2d rotational angle (in radians)? Background: I have a 3D .dae animation exported from Blender into the Collada format. The animation is technically 2d, all of the z axis values are 0. I'm trying to convert the 4x4 matrices into 2d translation, rotation and scale data. 回答1: Scale matrix