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.

3 Dimensional Chat / How do I get .x files to work in my game?

Author
Message
Zero Blitzt
21
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 29th Feb 2004 19:21
I used TrueSpace 3.2 to make an object (a DarkBASIC triangle), and it saved as DBtriangle.x. Now, how do I get that in my game? Isnt there some sort of matching file I need to go with it?

My reasoning: The tutorial game had a file called gun.x, and it had a matching file called gun.tga.

So... help, if you can.

http://www.t4e0.4cybiko.com
The GameXaero Forums
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 29th Feb 2004 21:23 Edited at: 1st Mar 2004 18:15
The tga file is simple an image file. You can either assign the image file at the time your build the X model or your can load it in separately via DB and then asssign it to the model.

There is no direct relationship between the model name and image name. You can esily have gun.x work with bubba.bmp, lines.png, purple.jpg, etc. You could also have it use no image file and just rely on a color you assign to it or the colors that were assigned to it at creation time.
--
TAZ

Having said that, you can create image files that are custom designed to work with a given model. A good example are the skins used in quake models. Even then, you can have a many ot one relationship between images and models.

Zero Blitzt
21
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 1st Mar 2004 00:31
SO, i have the .x file of a pyramid, so how would I assign it a color? I have a whole folder of files that the program made call *FILENAME*.nll or something.

http://www.t4e0.4cybiko.com
The GameXaero Forums
Gir
22
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Crazy Taco
Posted: 1st Mar 2004 17:43
I dont know truespace so i dont know about the files your on about, but you should be able to texture your pyramid with a .jpg or whatever of the colour you want, you may need to UVW map it in truspace, if not you can just texture the pyramid in DBP

Texture Object ObjectNo,TextureNo

I'm makin' a cake...

Login to post a reply

Server time is: 2025-06-29 22:51:17
Your offset time is: 2025-06-29 22:51:17