home · software · code · tutorials · site map

3578
Congressman warns of current GA- Russia conflict in 2002!!!
Ron Paul in an interview with Jim Lehrer says in 2002 interview that by the US adopting a preemptive first Strike Doctrine would eventually lead to Russia invading GA
3532
Girls Get the Anime Look with Extra-Wide Contact Lenses
Girls in Japanese comics, cartoon videos or anime share a common look - big eyes that, by making the rest of the face look small, add the cuteness and sex appeal prized by many Japanese men. Since no amount of cosmetic surgery will make actual human eyes larger, some girls are trying another way to up their cute quotient: extra-wide contact lenses!
1266
'Everyone Will Remember Me as Some Sort of Monster'
A troubled teenager. An assault rifle. Eight slain in a mall. It was national news for a few days. Then it was forgotten.
819
Repurpose Your Nintendo as a Lunchbox (PICS)
I had a broken NES, a rotary tool, two small hinges, some glue and Alpha Flight's Sasquatch. What I ended up with was a lunchbox that gets all kinds of funny looks.
3098
Once You Look, You Can't Look Away (Pic)



Feb
2

GM6 D3D from the Ground Up - Chapter 9

2007 @ 09:34 PM

We're experienced with D3D now. We have a lot of drawing functions at our disposal. Yet it's tedious and practically impossible to draw anything complex by hand with the functions. So we're going to learn the ability to import a 3D model from the 3D suite Anim8or

Create Your Model

We're going to use Anim8or as the medium for getting our 3D content into our games. To do this, you must download my Game Maker 6.1 Export Plugin. After you download it, put it into your Scripts directory for Anim8or. If you don't have any scripts, set the script directory by opening Anim8or, going to the File menu, selecting "Configure", and clicking on the "..." button next to the "Scripts" field. Make sure the 'Preload Scripts' button is checked! From now on, put all scripts into the directory you selected and Anim8or will load them as it starts up.

Convert Your Model

To convert your model, simply go to the Object menu and select "Export" In the Save As dialog, select "Game Maker 6 Model:plug-in (*.d3d)" for the Save As Type. Navigate to your game's directory, type in a filename, and Save it.

Drawing Your Model

To draw your model in Game Maker, use this code.
Create Event:
car = d3d_model_create();
d3d_model_load(car,"car.d3d");
Draw Event:
d3d_model_draw(car,x,y,z,texture);


<< Previous Chapter      Next Chapter >>


 Del.icio.us  Digg  Furl  Google  Reddit  Slashdot


Luiz Fernando Silva on February 26, 2007 at 7:00 PM

It's really cool this suport for 3D graphics and I was asking myself that how can I import models from anim8or, really cool.

FC on March 18, 2007 at 6:15 PM

I dont know if this was my error, but the anim8or debugger finds some errors with your script. Other than that, nice tutorial.

FC on March 18, 2007 at 6:17 PM

EDIT: Lol, my badd! It was an error on my part. Well, all is better now so great job!

Undy on March 20, 2007 at 1:08 AM

These are amazing...good job i went from knowing nothing to know alot on how to get my started in making 3d games...im currently workin on a halo 3 remake....yes halo 3 i know its not out yet but im just making the campaign

J. Rob on April 30, 2007 at 9:35 AM

Every time i try 2 run the gm6 export script it doesn't do anything. i saved it in my scripts directory and an8 doesn't show that any of them have loaded. when i try 2 run a parametric script it says "parametric mesh plug-in scripts cannot be run from the menu". some1 please give a very very detailed tutorial because i feel very slow.

Tyson on June 27, 2007 at 10:45 PM

Did you make sure that the 'Preload Scripts' button is checked?

CommentsWrite a comment

:

:

:

Blogtastic RSS FEED

Linktastic


TysonC's Profile Page