Import models from Maya into OpenGL using C #

How to import a Maya model into OpenGL using C #? If you have a sample, that would be very helpful.

+4
source share
2 answers

The short answer is, you do not.

Maya models (.ma and .mb files) are really more or less a Maya script for generating content using Maya commands. Unless you redefine all Maya functionality, you cannot use them to β€œimport”.

People who want to use Maya to create content at runtime usually write a Maya exporter (which uses Maya APIs to extract meaningful data for them) or use an accessible one for a format that they can import.

Which format you export depends a lot on what kind of data you want from Maya. But in general, you'll need at least some representation of the DAG scene, which is already beyond OpenGL. You want to use some rendering engine for this.

Apparently, any rendering engine that you choose will have some preferred model format and, most likely, some preferred tools for creating it.

+3
source

This forum post contains a huge number of links to C # and three-dimensional graphics. I would suggest you read these resources a bit (and any others you may find).

0
source

Source: https://habr.com/ru/post/1300272/


All Articles