How to convert model to GLTF (.glb) format using AutoDesk Forge - autodesk-model-derivative

I want to use Forge to convert 3d model file format as mentioned on:
https://developer.autodesk.com/en/docs/model-derivative/v2/overview/basics/
How can I export to GLTF (.glb) format using AutoDesk Forge API?
There is a sample here:
https://developer.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-source-file-to-obj/
But if I change "type": "obj" to be "glb" format instead then you get format not recognized error. But glTF and glb formats are listed here:
https://developer.autodesk.com/en/docs/model-derivative/v2/overview/supported-translations/

Currently, Forge Model Derivative API does not support exporting 3d model file format to GLTF(.glb) format. If you check the doc you mentioned https://developer.autodesk.com/en/docs/model-derivative/v2/overview/supported-translations/ , "glb" and "gltf" are listed as source file format, which means the 2 file formats can only be translated into the "SVF" format.

Related

How to format CSV file for importing multiple files to Google Cloud AutoML Translate?

I am trying to use the Python Client Library to add multiple files to a dataset I have created for AutoMl Translate. I was unable to find a good example for the csv file that is to be used. Here is the link to their Python Client Library example code to add files to a dataset.
I have created a csv in a bucket of the following form:
UNASSIGNED,gs://<bucket name>/x,gs://<bucket name>/y
Where I am trying to add two files called x and y.
and I get the following error:
google.api_core.exceptions.GoogleAPICallError: None No files to import. Please specify your input files.
The problem was how I formatted the csv file. Each file I want to add needs to have its own line,
The correct csv file would look like this:
UNASSIGNED,gs://<bucket name>/x
UNASSIGNED,gs://<bucket name>/y

How to use ImageDataGenerator with nii/NIFTI files using ADNI dataset

I'm trying to load my data using keras' ImageDataGenerator class, but I am having trouble since the image files are not a standard jpeg/png image file but rather nii.gz files. I found this github repo https://github.com/sremedios/nifti_image_generator/blob/master/utils/nifti_image.py but the dimensions outputted were not matching up and
train_generator.next()
throws an error of
ValueError: could not broadcast input array from shape (233,189) into shape (197,233,189,1)
In order to use Nii file which is standard format for medical images like MR , CT etc.
You have to use nibabel library to read medical imaging dataset.
Also DLTK library is available from Google for working on medical imaging.

Downloading open street map data in pbf format

I want to download data of a specific area from open street map. Whenever I try to export from openstreetmap.org it downloads the data in .osm format but I want the data to be in .pbf format. I have tried converting .osm file to .pbf file using osmconvert.exe but whenever I try to open the converted file in a text editor ( geany to be specific) it shows nothing. But when I tried opening the converted file in vim there was something but not readable. Can someone suggest me a way to download the data of specific area from open street map in readable pbf format?
For downloading area specific OSM files I would like to recommend the service of Geofabrik:
http://download.geofabrik.de/
The format .osm usually is human-readable since it's XML-structured text.
The format .pbf is not human-readable because this is a binary format. PBF-formatted OSM data are highly compressed and need to be converted (for example to .osm or to .csv) before you can read them.
Further information can be found in OSM Wiki:
https://wiki.openstreetmap.org/wiki/OSM_XML
https://wiki.openstreetmap.org/wiki/PBF_Format

Forward Kinematics Skeleton Programming

I am putting together a project where I need to be able to source outside data as a means of inputting skeleton joint positions into Maya. Basically I have a spreadsheet of sequential joint positions for the skeleton which I would like to load into Maya and then link to the skin. Does anyone know a way to upload or reference these positions (as FK into Maya)?
Probably the easiest thing to do is to convert your spreadsheet data to atom format
Atom is a json based format for exchanging animation data and, since its JSON based you should be able to concoct a CSV to ATOM translator using Python's built in csv and json modules.

How to convert point cloud .pts file into .pcd file format?

I downloaded big point cloud file with extension .pts and I want to convert it into .pcd format. What is the simplest and easiest way to do it?
Is .pts ASCII?
If so, you can easily write a parser for it and save it as a .pcd.
Or, if you are looking for a tool, meshlab can read in plain XYZ data and save it to .ply format (remove all header content, if there is any). .ply files are supported by the Point Cloud Library, you can either convert it or just read in the .ply.

Resources