How can I use the objects which I made by 3DMax into Open GL ??!!
-
I made objects By 3D Max and I want to use these objects in Open GL... I'm useing C# I Appreciate any help
Well, firstly, you're going to need to render a scene in OpenGL using C#. Since OpenGL is native code rather than .NET, you'll need some bindings/wrapper to use OpenGL in C#. One such binding is the Tao OpenGL bindings[^]. You can use that to program OpenGL in your C# code. In order to load files from 3dsMax, you'll need some library that loads files exported from Max. You can code one yourself or more preferrably, find an existing one. 3dsMax can save to .max files which are proprietary and closed. .3ds files can be exported from Max, and there are many well known .3ds file parsers which can parse out a .3ds file, read in the vertices, faces, and textures, then throw those together into a DirectX or OpenGL scene. One such .3ds importer for OpenGL is available here[^].
Tech, life, family, faith: Give me a visit. I'm currently blogging about: I luv teh choco The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
I made objects By 3D Max and I want to use these objects in Open GL... I'm useing C# I Appreciate any help
suroor, if you require more information, please post in the forums so that it can benefit others as well.
-
Well, firstly, you're going to need to render a scene in OpenGL using C#. Since OpenGL is native code rather than .NET, you'll need some bindings/wrapper to use OpenGL in C#. One such binding is the Tao OpenGL bindings[^]. You can use that to program OpenGL in your C# code. In order to load files from 3dsMax, you'll need some library that loads files exported from Max. You can code one yourself or more preferrably, find an existing one. 3dsMax can save to .max files which are proprietary and closed. .3ds files can be exported from Max, and there are many well known .3ds file parsers which can parse out a .3ds file, read in the vertices, faces, and textures, then throw those together into a DirectX or OpenGL scene. One such .3ds importer for OpenGL is available here[^].
Tech, life, family, faith: Give me a visit. I'm currently blogging about: I luv teh choco The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
I'm allready use openGL with c# I have visited this link before, but it deals with VC++ and there is no comments in the code source. if there is onther tutorial which deals with C# plz inform us thanks
The RealmForge project[^] uses C#, OpenGL and includes a 3ds importer. You might want to look into the source packages to see how its done. Also, I believe the Axiom project includes a similar 3ds importer. You might want to check that out as well.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: I luv teh choco The apostle Paul, modernly speaking: Epistles of Paul Judah Himango