Computer Graphics

Moderators: Sephiroth
Number of threads: 1241
Number of posts: 2641

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Exporting 3D Studio meshes DirectX programming in DJGPP Posted by LordReaper on 8 Mar 2001 at 10:27 AM

I want to know how to export 3D Studio meshes to a C/C++ program.
The only thing I know is that you must save the mesh in 3D Studio using the export function and save it as .ASE file(ASCII script)
Then you must parse the file to search the vertex coordinates, the vertex normals and all the stuff needed to a correct rendering of your mesh.
Then you should put the vertexes into an array called "Node" and then you must draw its faces and draw its textures using the UV coordinates given by the ASE file.

Ok, this I can do, but I don't know how to use DirectX command to render the polygons.... And I don't know how to make omni lighting and all this stuff....

Someone help me, please!! I am working under DJGPP.

Thanks!

- LordReaper -

Report
Re: Exporting 3D Studio meshes DirectX programming in DJGPP Posted by Sunlight on 8 Mar 2001 at 2:58 PM
: I want to know how to export 3D Studio meshes to a C/C++ program.
...
: Ok, this I can do, but I don't know how to use DirectX command to render the polygons....

Why not simply convert the meshes to .X files using the utilities in the DirectX SDK? Then you can use the D3DX mesh loading interfaces. It's all in the tutorials.

: Someone help me, please!! I am working under DJGPP.

DJGPP is a DOS compiler. Get hold of a Windows compiler to use DirectX. Then get the DirectX 8 SDK from http://msdn.microsoft.com/directx/.
--
Sunlight





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.