Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

vnebojsa

.x models

This topic is 5277 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''d like to know something. I am using Dark Basic and trying to create a game. I know it uses .x models so I''d like to know how can I model them. I mean what program is for modeling and saving under .x extension? (eg. 3D Game Studio = .mdl, 3DS Max = .3ds...etc) Thanks, Nebo

Share this post


Link to post
Share on other sites
Advertisement
for most wide accepted modeller applicattions, there are plugins to do this...

DJSnow
---
this post is manually created and therefore legally valid without a signature

Share this post


Link to post
Share on other sites
quote:
Original post by vnebojsa
I''d like to know something. I am using Dark Basic and trying to create a game.
I know it uses .x models so I''d like to know how can I model them. I mean what program is
for modeling and saving under .x extension? (eg. 3D Game Studio = .mdl, 3DS Max = .3ds...etc)

Thanks,
Nebo



MilkShape 3D will export to .x models (thanks to Jim Adams). Otherwise use GameSpace for that''s what Caligari and The Game Creators would like you to use.

"Do not flame people you don''t know in a public forum. Only amateurs do that. Professionals in the industry know they will run into each other over and over. The person you flame this year may the person you want to do business with next year. Don''t burn your bridges," (Diana Gruber, http://www.makegames.com/chapt6.html).

Share this post


Link to post
Share on other sites
The two best modeling programs on the marker are 3D Studio Max
and Maya. You can find X plugins for both on the internet.

Share this post


Link to post
Share on other sites
@CProgrammer:
>>Download the DirectX SDK! It comes with a .3ds to .x
>>converter!
*LOL* yes, use this exporter, if you want hours of work for just a 1k-tri mesh-file.
The DirectX-SDK-delivered exporter sucks completely !!! In case of this, you should rather try a 3rdparty exporter, from maxplugins.de.
Or use PolyTrans from OkinoSoftware (the standard-ruler plugin für converting any arbitrary data from 3DSMAX to other programs)

Share this post


Link to post
Share on other sites
Ok, Thanks! I use Milkshape 3D now, it is good!
Thanks!

Now, code question, I dunno should I post it here or in "Game programming" forum, but I''ll try here. I have this code:


rem General Settings
autocam off
hide mouse
sync on
fog on
fog color 0
fog distance 1500

rem Make a simple scene for the camera to look at
make matrix 1,10000.0,10000.0,25,25
load bitmap "floor.bmp",1
get image 1,0,0,96,96
delete bitmap 1
prepare matrix texture 1,1,2,2
randomize matrix 1,50.0

rem Make flying object
make object box 2,150,5,20
make mesh from object 2,2
delete object 2
make object box 2,25,15,100
add limb 2,1,2
position object 2,0,0,500

rem Make drone to mark a back position
make object sphere 3,10

rem Set camera range
set camera range 1,10000

rem Set text font
set text font "Arial"
ink rgb(255,255,0),0
set text size 20

rem Main loop
do

rem User prompt
center text 320,5,"FLYING DEMO"
center text 320,35,"Use ARROW KEYS to Turn and Pitch"
center text 320,60,"Use
And how to add more objects off matrix just to be there?

Thanks!
Nebo
' Target=_Blank>Link

Share this post


Link to post
Share on other sites
Sorry for the code, I don''t know what happened. Here is it again:

rem General Settings
autocam off
hide mouse
sync on
fog on
fog color 0
fog distance 1500

rem Make a simple scene for the camera to look at
make matrix 1,10000.0,10000.0,25,25
load bitmap "floor.bmp",1
get image 1,0,0,96,96
delete bitmap 1
prepare matrix texture 1,1,2,2
randomize matrix 1,50.0

rem Make flying object
make object box 2,150,5,20
make mesh from object 2,2
delete object 2
make object box 2,25,15,100
add limb 2,1,2
position object 2,0,0,500

rem Make drone to mark a back position
make object sphere 3,10

rem Set camera range
set camera range 1,10000

rem Set text font
set text font "Arial"
ink rgb(255,255,0),0
set text size 20

rem Main loop
do

rem User prompt
center text 320,5,"FLYING DEMO"
center text 320,35,"Use ARROW KEYS to Turn and Pitch"
center text 320,60,"Use a and d to Roll"
center text 320,85,"Use Space to Move"
center text 320,110,"Use s to Reset"

rem Control free flight object
if downkey()=1 then pitch object up 2,5
if upkey()=1 then pitch object down 2,5
if leftkey()=1 then turn object left 2,5
if rightkey()=1 then turn object right 2,5
if inkey$()="a" then roll object left 2,5
if inkey$()="d" then roll object right 2,5
if spacekey()=1 then move camera 20 : move object 2,20
if inkey$()="s" then rotate object 2,0,0,0

rem Get back position of object for camera
pitch object down 2,11
move object 2,-150
position object 3,object position x(2),object position y(2),object position z(2)
move object 2,150
pitch object up 2,11

rem Place camera and set orientation to object
position camera object position x(3),object position y(3),object position z(3)
set camera to object orientation 2

rem Update screen
sync

rem End of Program
loop

Share this post


Link to post
Share on other sites
@vnebojsa:
nice ! and...if you could tell anyone _what_ this code _should_ do ?? querying for answer without any question is not very successful... *g*


DJSnow
---
this post is manually created and therefore legally valid without a signature

Share this post


Link to post
Share on other sites
Sorry guys... Well, there are comments in the code (rem .....) but ok, I will explain what this code does.
It creates matrix and textures it. Then it creates an object (flying object) and player controls it with arrow keys and some other keys (look at the code). There are 2 spheres on matrix - bigger yellow and smaller red sphere. Yellow sphere is static and red one is rotating around the yellow sphere. And... that''s it! Now, the problem is I didn''t add collision detection to all objects. Player (that flying object) can pass trough the matrix and spheres and I don''t want that. I want to add collision detection to my flying object with spheres and matrix. How should I do that? Tell me what piece of code to add to my code posted before.

Thanks!
Nebo

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!