Welcome, Unregistered.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
Old 17-Feb-2003, 13:46   #1
JF_Aidan_Pryde
Member
 
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 593
Send a message via MSN to JF_Aidan_Pryde
Default How does maya / 3ds max interact with OpenGL/D3D?

I think I've asked something like this before but I'm still not clear.

You can draw triangles and shapes using OpenGL but can't create complex shapes/entire levels. This is where a modeling program comes in. Suppose I model a mech in maya, how do I get a simple openGL engine to render it? Is the mech file exported in some specific format and are there specific calls made in OpenGL to open it?

And also, why do devs make their own level editors? They use these to make levels but use maya to animate their characters. What's the difference?

Essentailly I'd like to know the LINK (when desiging a game) between say:
OpenGL -> Maya -> UT Level Editor -> UT Graphics Engine

How do they all interact?

PS. So you kno what I'm actually doing: I've made a half complete model in maya. I'd like to make a VERY simple 3D engine which can take this model and light it. I'd like basic key input so I can roate, and change to new camera viewports. Then from there, I'd like to add a background/terrain to the world and texture the model. Hopefully eventuall it can be bump mapped/shadowed/particle effects. I have rudementary understanding of C but not OO C++, and solid with photoshop type apps. How far off am I from each milstone?
JF_Aidan_Pryde is offline   Reply With Quote
Old 17-Feb-2003, 14:29   #2
Captain Chickenpants
Regular
 
Join Date: Feb 2002
Location: Kings Langley
Posts: 446
Default

For getting a 3d model into your code try something like the 3ds exporter at
http://www.pvrdev.com/tool/index.htm

In general (this is pretty much educated guess work as I don't do any 3d programming).
Maya/3DS will output a file with the parameters required to render the object. This may or may not include lighting. A level editor will output data that will be optimal for the games 3d engine i.e. BSP partitioning, lighting etc. In addition to the geometry and materials which you get from your 3d modeling package, the level editors will contain some kind of behaviour control, such as this is a lift which can go from a to b. Or this is a door which opens when player gets near it. So a level editor will probably consist of geometry + game specific data, possibly pre compiled in some way that will allow the game to load quicker.

At the moment it sound like you are some way from your goal, your main goal (in my opinion) should be to improve your C coding skills, the best way to do this is just to write code, so as you develop your project your coding will improve.

I can recommend
http://nehe.gamedev.net/
as a good place to visit for opengl, their are some good tutorials which develop and build ontop of each other.

Hope this helps,
CC
Captain Chickenpants is offline   Reply With Quote
Old 17-Feb-2003, 16:13   #3
3dcgi
Senior Member
 
Join Date: Feb 2002
Posts: 2,036
Default

I think a very good way to get data from Maya or 3ds max is to export to the .obj format and read that into your OpenGL engine. The obj format is great for static meshes and because it is a text format it's great for beginners. I'm still a beginner myself. For your purposes vertices, vertex normals, and texture coordinates are all you need in your obj file.

Concerning the relationship between level editors and Maya. I think many companies develop custom level editors because it is just as easy to do that as to heavily modify Maya. Plus there's the bonus of having a streamlined interface that only does level editing. Who knows, it might just save them money as well because level designers won't need a license for Maya.
3dcgi is online now   Reply With Quote
Old 17-Feb-2003, 16:16   #4
Rodéric
a.k.a. Ingenu
 
Join Date: Feb 2002
Location: Apsley, U.K.
Posts: 2,752
Default

I like dotXSI better.
It has exporters for MAX, Maya, and SoftImage

There's a free toolkit available.
http://www.softimage.com/connect/xsi/
__________________
So many things to do, and yet so little time to spend...
Rodéric is offline   Reply With Quote
Old 23-Feb-2003, 08:26   #5
Luke Philpot
Junior Member
 
Join Date: Feb 2003
Posts: 49
Default

Just simply export your model/scene to .3ds or whatever model format you want to use, load it into your GL app and then render it.

About engines having their own level editors... Maya and max cost alot of money, but level editors are usually free or come with the game itself. Also, Maya and max aren't optimised for the Unreal or Quake engine. It is alot more tedious to get your level from a modeller to your engine than it is with a level editor designed for the engine. Usually you just click build, run the game and it's all done.
Luke Philpot is offline   Reply With Quote
Old 27-Feb-2003, 06:11   #6
JF_Aidan_Pryde
Member
 
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 593
Send a message via MSN to JF_Aidan_Pryde
Default

[quote="Luke Philpot"]Just simply export your model/scene to .3ds or whatever model format you want to use, load it into your GL app and then render it.

[quote]

And how exactly do I just *load* it.

Say I've got a 30 line GLUT peice of code to display a triangle. How do I just cut the trianlge code out and put in a 40 000 triangle model in maya binary format in an arbitary directory?
JF_Aidan_Pryde is offline   Reply With Quote
Old 27-Feb-2003, 06:19   #7
Luke Philpot
Junior Member
 
Join Date: Feb 2003
Posts: 49
Default

www.gametutorials.com

BSP trees are good for levels, as well.
Luke Philpot is offline   Reply With Quote
Old 01-Mar-2003, 17:19   #8
V3
Senior Member
 
Join Date: Feb 2002
Posts: 3,271
Default

MS has .X exporter for Maya, I think it comes with source as well. You can download it from DirectX page. You might want to try .X, but I don't know, if this is a solution for you.

Quote:
Say I've got a 30 line GLUT peice of code to display a triangle. How do I just cut the trianlge code out and put in a 40 000 triangle model in maya binary format in an arbitary directory?
If your code is just drawing simple triangle at the moment, you can get the triangle info from .obj files. Than you just draw them one by one. You might want to get the normal from .obj as well (or calculate it yourself), if not it'll look flat.

With 40,000 tri, you probably want to strip it and index it though.
V3 is offline   Reply With Quote
Old 04-Jun-2008, 02:31   #9
iwray
Registered
 
Join Date: Jun 2008
Posts: 1
Default

If you're using pure C++ and OpenGL, then unfortunately you need to write your own format importer. I recommend OBJ format because it is the simplest and it is pretty capable. You can google for the OBJ format (its specifications are widely known). Once you have done this, you can go searching for models and if they aren't in OBJ format, you can convert them using a conversion tool like Pipeline3D from www.kalsaya.com.

Quote:
Originally Posted by JF_Aidan_Pryde View Post
I think I've asked something like this before but I'm still not clear.

You can draw triangles and shapes using OpenGL but can't create complex shapes/entire levels. This is where a modeling program comes in. Suppose I model a mech in maya, how do I get a simple openGL engine to render it? Is the mech file exported in some specific format and are there specific calls made in OpenGL to open it?

And also, why do devs make their own level editors? They use these to make levels but use maya to animate their characters. What's the difference?

Essentailly I'd like to know the LINK (when desiging a game) between say:
OpenGL -> Maya -> UT Level Editor -> UT Graphics Engine

How do they all interact?

PS. So you kno what I'm actually doing: I've made a half complete model in maya. I'd like to make a VERY simple 3D engine which can take this model and light it. I'd like basic key input so I can roate, and change to new camera viewports. Then from there, I'd like to add a background/terrain to the world and texture the model. Hopefully eventuall it can be bump mapped/shadowed/particle effects. I have rudementary understanding of C but not OO C++, and solid with photoshop type apps. How far off am I from each milstone?
iwray is offline   Reply With Quote
Old 05-Jun-2008, 19:08   #10
zsouthboy
Member
 
Join Date: Aug 2003
Location: Derry, NH
Posts: 563
Default

I can echo the "export an .obj, write code to read it in your program, and then draw the triangles one by one" idea.

You can then move to more advanced things.

For OGL or D3D, you'll read in an obj file, change the data to fit what D3D or OGL accept, and then pass the data to whichever. Rendering a basic scene is trivial, its the scene setup (how and what data to give to OGL/D3D) that you will have problems with.
zsouthboy is offline   Reply With Quote
Old 05-Jun-2008, 19:48   #11
Malo
Oz Yak
 
Join Date: Feb 2002
Location: US of A
Posts: 2,531
Default

Um, is this a 5 year necro purely to sell something? lol
__________________
Is EA still bleeding cash like an executive doing an ED-209 demonstration.... - Grall
Malo is offline   Reply With Quote
Old 06-Jun-2008, 17:43   #12
purpledog
Member
 
Join Date: Nov 2005
Posts: 108
Default

"collada" is a good word to google for
purpledog is offline   Reply With Quote
Old 07-Jun-2008, 11:12   #13
Davros
Darlek ******
 
Join Date: Jun 2004
Posts: 9,661
Default

3d buzz has a load of unreal ed training video's if they are any good to you
Davros is offline   Reply With Quote
Old 08-Jun-2008, 17:23   #14
Zengar
Member
 
Join Date: Dec 2003
Posts: 288
Default

People, this thread is from 2003!! The topic starter is either a professional by now or he long quit the job...
Zengar is offline   Reply With Quote
Old 08-Jun-2008, 19:38   #15
Davros
Darlek ******
 
Join Date: Jun 2004
Posts: 9,661
Default

ha blame iwray he registered to answer a post from 2003
Davros is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maya 7 Features ATI's Hardware Accelerated Shading with ASHLI Plug-In Dave Baumann Press Releases 0 02-Aug-2005 14:20
Maya API and textures. Goragoth 3D Technology & Algorithms 5 07-Nov-2004 00:49
NVIDIA Gelato Mango Plug-in for Maya Dave Baumann Press Releases 0 10-Aug-2004 00:17
Maya 5 With Quadro FX Smashes Rendering Barrier Dave Baumann Press Releases 0 10-Apr-2003 10:40
NVIDIA & Alias|Wavefront Announce Maya Cg Plug-In Dave Baumann Press Releases 0 18-Dec-2002 16:14


All times are GMT +1. The time now is 03:40.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.