Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Easy Way to Make .X Objects (3D Game)

Author
Message
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 19th Jun 2011 00:36
Hey guys!

So im building my FPS Project.

I checked some tutorials and they all had .X files, the objects.
So what i need to know is how can i make this popular .X files?

PS: i want to make a gun but dont know how to import it to the DGK..

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 19th Jun 2011 01:24
There are lots of 3d modelling programs out there available. Most of them import different formats and save them out as .x files. And they're free. I don't use Blender myself but it seems to be the popular choice of so so many and it handle file conversion brilliantly.

Warning! May contain Nuts!
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 19th Jun 2011 12:25
What do you recommend that will be easier to make a .X model?

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 19th Jun 2011 18:57
There's a choice of so many:

Blender

Anim8or

TrueSpace

There's just three of them and they're all free for personal use.

Warning! May contain Nuts!
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 19th Jun 2011 22:30
And don't forget about Milkshape 3D, Wings 3D and FragMotion!

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 20th Jun 2011 00:40
hum... so in there i can make easy 3d models to my games

Then just dbLoadObject("object.x", ID);

right?

PS: and the textures? I cant understand why are they in .bmp files and stuff..

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 20th Jun 2011 00:52
You create the model in one of the mentioned programs (I personally use Wings 3D most of the time) and then export it to the X file format.
Then you can load that file just like you wrote above.
For textures you can have a couple of formats like BMP, PNG, DDS, JPG.

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 20th Jun 2011 01:02
i see videos on youtube about that software but i cant understand it..
However i will download Blender because i think its the best.

Thanks again!

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 20th Jun 2011 01:03 Edited at: 20th Jun 2011 01:19
@pauli
how can i apply the textures then?

EDIT:

I installed Bender but in export menu theres no .X

what DGDK handles besides .X files?

In bender there are: .obj .3ds .x3d .ply .fbx .dae

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
DeadTomGC
14
Years of Service
User Offline
Joined: 11th Aug 2010
Location: LU
Posted: 21st Jun 2011 01:11
Did you get the latest version?

If you did, go to File->User preferences->addons->import export->check the box next to the directx model format.

If going to File->User preferences causes the program to crash, click the button in the top left hand corner and select user preferences.
Then right click on the top bar and select maximize area.


vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 21st Jun 2011 12:45
i loaded the .X file but its not there...
how can i make it appear? (i load and i positioned but i thin its the scale)

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 21st Jun 2011 18:33
If the .x file is in the same directory as your exe file, or in the case of your project folder then it should appear. Try re-positioning your camera to see if it appears.

Apart from that you can make a test to see if it has loaded by using dbObjectExist(obj)

Warning! May contain Nuts!
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 21st Jun 2011 18:50 Edited at: 21st Jun 2011 18:59
i just used the command and the object is not being loaded...

im using: dbLoadObject("weapons//ak47.X", mainWeapon);
dbScaleObject(mainWeapon, 50, 50, 50);

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5

Login to post a reply

Server time is: 2024-11-19 09:34:41
Your offset time is: 2024-11-19 09:34:41