Game Development Community

TX3D] Import/Load a map into my game

by Netskate · in Torque X 2D · 05/05/2008 (8:48 am) · 5 replies

Hi all,
I'm a beginner of game programming and I need some help for the firsts steps.

I have:
Xna Game Studio 2.0
Visual Studio 2005 (include c#)
Torque X 2.0 Engine (binaries I think, that of free download).

So, after some playing with 2d and sprites I had to do my first step in 3d game programming.

That, I want to do, is:

1) Create a new project in visual studio - DONE
2) Load an exisisting map/level (like quake 3 map, or half life or unreal tournament) - FAIL
3) Run my game and move into that map with a camera - I THINK I CAN, THERE ARE A LOT OF TUTORIAL FOR THIS

Now, I'm blocked at second point of my list. And can't find any tutorial or guide that can help me.

ps: sorry for my english, however I hope you can understand me :)

here an answer by david blake that suggest me to post in this forum:
One of the key difficulties with this is that you will have to create the loader for Quake/HL/Unreal files. XNA (and TX by extension) does not have a built-in means of parsing BSP data. I would recommend using a program that can export FBX files that you can then load into XNA/TX. I would also recommend posting on the TX forums from now on. You'll get a better response there since that's where people are talking about it!

and there is my problem:
Thanks for your answer. my problem is that I'm not a designer but a programmer. then I need some of "ready to use" material.

I speak about quake3/half life, because I know the many community of people that release map and others interesting things, but if you can tell me where to find some fbx maps to begin to explore torque language, I will be very happy.

and also, how to make map (fbx) working with torque. I think can't be difficult for who know how to do this.

ps: i have a .x files of an example environment of 3d world studio. can I load this into my torque project as a level?

#1
05/05/2008 (10:04 am)
If you have a heighmap (which many terrain editors can export) then you can create terrain using that, which would be my suggestion.
#2
05/05/2008 (10:25 am)
I think that I will try by this way.

Can you tell me some terrain editor (visual and with some model and shape) that I can download for free?

For the code, I think that I can use that in the 3d demo of torque X
#3
05/05/2008 (10:37 am)
Hi Netskate welcome to GG community ... I'm knight72 from gameprog.it ...

good editor for 3d landscape is :

http://www.bundysoft.com/L3DT/

^_^

Bye
#4
05/05/2008 (1:42 pm)
There's the XNA terrain editor:
http://www.gameprojects.com/profile/projects/?u=14159

It has the source code and can output heightmaps, lightmaps, etc. and has tools to sculpt the terrain, much like TGEA's built-in editor. The source needs some TLC, but it generally works so give it a try.


You can also download the Torque Game Engine Advanced demo and use that to edit terrain, which will spit out .ter files.



All this is just temporary - TorqueX Builder 3D should be released soon, which I believe includes a terrain editor.
#5
05/05/2008 (3:50 pm)
Mhm, I generate a random landscape with L3DT, now I have to export it, i think .x files. Then load it into my project.

I had to adding the x file in the content directory, and I had to load it with xna or torque?

can you post me a sample code?