Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing 3D model in C# -opengl

i want to know how to import 3d models from Blender into Opengl using C#.net. Blender can export model in Collada, .3ds, Stanford(.ply), .obj, .x3d and .fbx format. How to use any of the model mention above in C#-opengl. Is there any libraries ?

like image 317
user1641749 Avatar asked Sep 02 '12 11:09

user1641749


People also ask

Can you import 3D models?

You can import 3D models to Live Home 3D in the following formats: Autodesk 3D Studio (created in the Autodesk® 3ds Max® software), Autodesk FBX, COLLADA, Wavefront OBJ, Sweet Home 3D, Google Earth KMZ, 3D Image (a regular graphic file will be imported and a 3D Image object will be generated).

How do you import a 3D object?

To import an OBJ, select File -> Import... from the menu bar. Select the OBJ you wish to import. You can also drag and drop your OBJ into the Resources panel. Once the OBJ is imported into Lens Studio, you should see it listed in your Objects panel as a new object added to the scene.

How do I read 3D files in OBJ?

Just install the software OBJ Viewer To begin viewing 3D files, simply do the following Install the extension OBJ Viewer Click on the extension icon Choose the 3D file you wish to open Begin viewing your 3D files online today! This 3D viewer works for both STL and OBJ file formats.


1 Answers

I suggest you use SharpGL. SharpGL library has inbuilt parsers to import models from other formats (.obj and .3ds). It also has WPF and Windows forms control for rendering 3d models in .NET environment. I am currently using it for exporting a 3d model designed in Blender as .Obj and importing it into WPF using SharpGL. It works pretty well for me.

like image 135
Vasanth Sriram Avatar answered Sep 22 '22 19:09

Vasanth Sriram