Reading 3D data from C++?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 03 March 2003   #1
Reading 3D data into C++?

Hi guys , sorry but I didn't know how to correctly phrase the questions in a short sentence.

1) How do you create a program (e.g made in C++) that can read in some data from a 3D program (e.g. Max, Maya, XSI, LW, etc) and then display it on screen? (I'm thinking in terms of creating games, i.e. reading in 3D data, manipulate it and output it on screen)

2) What is DirectX and OpenGL? Are they just libraries that C++ can use to output graphics?

Would be grateful if anyone could put up some links and tutorials where I can read in more detail. (or am I in the wrong forum, hehe)

Thank u!!!

Last edited by darkdeathdreame : 03 March 2003 at 05:59 AM.
 
Old 03 March 2003   #2
Whoa dude, you might want to start a bit smaller then that . Thats fairly high level stuff that you want to do there. Anyway, to answer your questions, you could access the files you mentioned if the app company provided info on them. You can't just write it out of the blue, you need to have info about how stuff stored before you can do anything. You might want to check out those company's dev section and see if theres any info about those file formats.

DirectX and OGL are APIs used to access the graphics (or in the case of DirectX, other) hardware. Its pretty hard stuff, you might want to start a bit smaller if you don't have a ton of expearence in C++ already.

Good luck though Just be aware that people spend years learning this stuff. It sure doesn't all come in a weekend.

-Jsh3d
__________________
Baja Engine - Free, quality realtime game engine
 
Old 03 March 2003   #3
2) What is DirectX and OpenGL? Are they just libraries that C++ can use to output graphics?
If by output you mean display on the screen then I would say yes.

Displaying data from a program is quite difficult to do unless the operating system you are using supports some sort of shared memory or you write the program as a plugin for the main program. The other approach is to load files saved by the said application and then manipulate that data... www.opengl.org will give links to examples of loading files and displaying them in opengl.
Another approach you might find interesting is to write an export plugin for your program that outputs C Code that you can compile into an OpenGL program.
 
Old 01 January 2006   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:19 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.