Convert .dae to x3dom - collada

Is there a way I can render a 3D model (in .dae, I'm using SketchUp) into a x3dom? I looked up online, but can't find the way.
Hope someone can help.

You can load the COLLADA file in the VRML/x3d viewer bscontact from Bitmanagement (http://www.bitmanagement.com/en/download) and then "save state as" x3d, x3dom.
Or you can use the InstantReality framework and use aopt.exe to convert the collada file into x3d or in x3dom.

Related

Convert SVG file to Autodesk Viewer svf format

We are looking at using the Forge Viewer for a project to display and markup plans, etc. (for now just 2D, 3D may be added in the future). For some of these items we will have DWG Files that we can convert using model derivative API so no problem there. However, the client also has quite a few existing drawings saved in svg format from their legacy system.
The question is if there is a good way to convert those base svg files into svf that we can display as the 'main' drawing/view in Forge Viewer. I have found things about creating a markup layer from an svg file, but that's not really what we want. We would be using markups to have the user draw on top of the plan with their own tools and place markers, etc. but the main drawing should be from the svg file that they have.
Forgive me if this is simple but I'm fairly new to the viewer and model derivative API so I'm not figuring out how to make this work.
There is no translation support for SVG, to generate an SVF model out of it.
You could either
a) use the SVG inside a format that we support (e.g. DWG - perhaps place the SVG in it using Design Automation API) and translate that to SVF
b) load a dummy model as shown here, and then add the SVG as e.g. markup

Diagrams Net (Draw IO) Link to open local file

I have a project documentation written in ASCIIDOC with editable PNGs and
I would like to create a link in my documentation that opens a local file directly in draw.io (diagrams.net).
Something like https://app.diagrams.net/file=/home/alex/test.png.
or https://app.diagrams.net/data={HEX DATA OF PNG}
My first stop was in the documentation: https://www.diagrams.net/doc/faq/supported-url-parameters
but I couldn't figure out how to transform my editable PNGs for the data parameter nor how to instruct the application to automatically open the upload dialog.
Any advice is greatly appreciated.

Autodesk Viewer load saved markups from SVG file

I'm currently working with the Autodesk Viewer API to display and add markups to DWG files. I now can add markups and retrieve them.
I saved one markup as a svg file and now, I'm looking for a way to load the SVG file to display the markup on my viewer.
Do you have any idea on how I could do that?
Thanks.
Markups can be loaded using the loadMarkups method. Here's an example: https://developer.api.autodesk.com/viewingservice/v1/viewers/docs/tutorial-feature_markup.html#saving-and-loading-markups.

Download Raphael canvas as a SVG or PDF

I am using Raphael to create a dynamic visualization. Is it possible to allow the image generated on the Canvas to be downloaded as a SVG/PDF or another image format?
There are pieces of information missing here, namely browser support, server-/client-side solution and whether costs are okay or not. So I'll try to give you an exhaustive answer.
For a client-side solution, you can use DocRaptor. Just feed the SVG tree to DocRaptor This works for the SVG-producing browsers (all since 2005 except for IE prior to version 9). Note that DocRaptor has a fee for converting documents into PDF. For a free server-side solution for converting an SVG tree to a PDF, I would suggest using wkhtmltopdf as proposed in this answer.
For IE6-8, which Raphaƫl produces VML for, you could create a PHP solution using the Vector Converter library. When the conversion from VML to SVG is finished, sent the SVG to DocRaptor (or wkhtmltopdf).
There is no free client-side VML/SVG -> PDF solution that works for VML or SVG. To build that would mean interpreting SVG and/or VML, creating a PDF from it using JavaScript (there are JS PDF library attempts), and sending it to the client using some Flash technique. I guess nobody has attempted to build that yet. I might.
pdfkit seems to be the way to go, with using browserify to make the node code run client side. There is a nice demo here
You can save as an image using canvg and canvas2image libraries
http://code.google.com/p/canvg/
http://www.nihilogic.dk/labs/canvas2image/

Displaying Maya Mesh XML in browser

I have a Mesh file (XML format) created in Maya.
I would like to display it in the browser with some additional options for the user, like rotating an zooming in and out.
What should be the best and easy method to do so?
(SilverLight, HTML5/JS/Canvas, Flesh)
I would really like to try HTML5/Canvas - is there any libraries that know how to do it?
Thanks.
I would really like to try
HTML5/Canvas - is there any libraries
that know how to do it?
You can visit this site learningwebgl
There are a lot of lessons and demos. On the right side there is a list of frameworks.
But you need browser support for webgl...
If you are willing to export your file in Collada/DAE format (which is basically XML), there are some online WebGL framework demos that show that a DAE file can be displayed the way you wish.
The frameworks that I've seen this for are GLGE and SpiderGL.
(WebGL is the 3D version of HTML5/Canvas.)
you can export your maya scene with http://www.inka3d.com and then manipulate it with javascript

Resources