Export animation from .dae to scenekit - scenekit

On WWDC 2015 - Session 606 - Enhancements to SceneKit there was an Fox example project which is available to download.
Can anyone say what is the correct collada file setttings when exporting model with skeletal animation from 3D tool into .dae file? For example in the demo project there is a "walk.scn".
I used 3D tool (Cheetah3D) to make a simple model with simple skeletal animation and export it in .dae, but I can't get my model to be animated on the scene.
If I use non skeletal animation in 3D tool and export it in .dae then model animation on the scene works perfect.
Maybe someone succeed with exporting model with skeletal animation using another 3D tool like Blender?

Related

First steps in mapbox

Good morning, I have been researching the mapbox tool for a short time and I have some initial doubts. I would appreciate if you could guide me. You will find the first one very basic: with mapbox studio we only create the styles that we are going to use later in mapbox GL?
How do I publish a GL mapbox javascript code on a web page, is there a possibility to package it in an iframe?
What is the difference between Datasets and Tilesets? In the documentation I have read that from Datasets Studio you can only upload 5MB files, to upload larger files you have to convert them into Tilesets. I have also read that Tilesets are a kind of raster data.
Those are my first questions about mapbox. Thank you very much in advance
With mapbox studio we only create the styles that we are going to use later in mapbox GL?
Yes - think of Mapbox Studio as "photoshop for maps" where you can design a map style for a variety of uses.
How do I publish a GL mapbox javascript code on a web page, is there a possibility to package it in an iframe?
You can wrap your mapbox code in a script tag in your html doc for a simple implementation - check out this demo.
It is also possible to package it in an iframe - Mapbox Studio can generate that code for you.
What is the difference between Datasets and Tilesets?
A Dataset is a collection of geojson features that you can edit individually. This is often something like a defined set of points with additional data attributes that you've uploaded. You can plot points directly on a map canvas, but will quickly hit performance limitations.
A Tileset is a collection of geojson, raster, or vector data contained in a uniform grid of "tiles" that are optimized for production maps. It's how Mapbox can load the data around the viewpoint without needing to load the entire world at once. Mapbox Studio allows you to export datasets as tilesets for use in a map as a separate layer.

.abc (Alembic) 3d model with animation won't play in SceneKit preview

I have been able to get models from .dae (COLLADA) files with animation working in the SceneKit preview (which is the best way I know to test if an animation is compatible).
I have a freelancer who made an animation for me originally in Cinema 4D, used a plugin to help with the animation, and exported it to me in .abc. He says he thinks the animations get lost when trying .dae format.
When I import his .abc file into Blender, it plays the animation perfectly, but importing into Xcode/SceneKit (whether I try to play it as a .abc file or after converting it to .scn) won't play the file. You can at best just see the initial positioning of the 3D model and no animation will play.

How to display Autocad DXF on WPF Canvas?

I am whole new in Autocad using in .NET application. I am working on WPF application that need to import, export and view 2d DXF or DWG file on canvas. I need some general information about how to achieve my goal if possible step by step instruction.
I would suggest you use the Autodesk View & Data webservice to show the model as a WebGL viewer on your application. There are some samples on the link and you need internet connection in order to have this viewer working.

Showing 3D model in Wpf?

I need to show a 3D model in WPF. I have my 3D Model created in .3ds, and .fbx extension. Now what i need to do is convert my existing 3D Model which is of .3ds and .fbx extension into XAML so that i can use it in WPF. My basic requirement is to show these 3D Models in WPF and perform animation on them.
Could anyone please help me with it?
You can use this program to convert from .3ds to XAML: http://www.ab4d.com/Viewer3ds.aspx
There are also various XAML exporter plugins, Blender for example:
Blender XAML Export Plugin

WPF 3D Model Drawing Tools

Are there any applications out there for 3D modeling that would output the finished product to an array of points (X,Y,Z) that you could then import to a WPF 3D Model?
ie:
<MeshGeometry3D Positions="0,0,0 10,0,0 0,10,0 10,10,0 0,0,10 10,0,10 0,10,10 10,10,10"
TriangleIndices="0,2,1 1,2,3 0,4,2 2,4,6 0,1,4 1,5,4 1,7,5 1,3,7 4,5,6 7,6,5 2,6,3 3,6,7" />
A simple google search for "WPF exporter", an I found:
Viewer3ds - 3ds to xaml converter
Viewer3ds is a WPF application that can read 3ds files and convert them into xaml. It is using the Ab3d.Reader3ds library that imports 3ds files at runtime.
This might be what you need because almost all 3D authoring application are able to export to .3ds format.
Edit:
You could also try Blender and XAML Exporter for Blender to create your 3D assets.
you can use google sketchup, and the exporter I wrote.
http://itaibh.blogspot.com/2009/09/google-sketchup-xaml-exporter.html
Viewer3ds is a converter rather than a modeling tool. If you are looking for free tools, Blender is a very powerful 3D modeling application (albeit with a high learning curve for the UI and workflow) which can export .xaml files with the help of this Blender plugin.
If free is less of a concern to you, then you can use other applications such as Maya or 3ds Max, also with plugins : http://max2xaml.codeplex.com/
All tools mentioned above have the ability to define normals, smoothing groups, materials, etc., everything that WPF supports (and much more, of course).

Resources