XNA Game Development Forums
2012/05/22 14:08:08 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Got a problem with an .x file  (Read 2785 times)
bobbie_dache
Newbie
*
Offline Offline

Posts: 5


View Profile
« on: 2007/01/04 19:55:03 »

Hi. I've got a problem with an .x file. I tried to replace the teapot in Tutorial's 9 engine by my .x file. This file looks good in .x viewer given with DirectX sdk.
I made it with 3Ds studio Max and exported it with PandaExporter. My file is called windows.X . It's actually window's logo  Tongue

That's is really nice stuff you've got there. I'll probably use a lightly modified version of your engine for one of my project in computer class.

Can't wait for animation, physics and terrain  Cheesy.

Nice work dude!

I included the .x file if anyone can tell me my mistake.

Thanks

[attachment deleted by admin]
Logged
Nemo Krad
Global Moderator
Hero Member
*****
Offline Offline

Posts: 512


I have seen the fnords


View Profile WWW
« Reply #1 on: 2007/01/05 01:25:48 »

Big isnt it....

It displays ok on my engine, but only as a bendy looking panel with no texture on it, I think what you need to do is to put the textures in the same directory as the mesh.
Logged
siferion
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #2 on: 2007/01/10 07:05:10 »

Or point the texture portion of the object rendering to the texture folder.
Logged
bobbie_dache
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #3 on: 2007/01/10 12:33:04 »

Or point the texture portion of the object rendering to the texture folder.

Euhh. I picked the colors in 3ds max. Is there a way to export the textures outside de .x file?
Using Panda exporter
Logged
Nemo Krad
Global Moderator
Hero Member
*****
Offline Offline

Posts: 512


I have seen the fnords


View Profile WWW
« Reply #4 on: 2007/01/10 12:41:31 »

Sorry,

I have no idea, I have only used MeshX...
Logged
gonZoX
Newbie
*
Offline Offline

Posts: 16


View Profile
« Reply #5 on: 2007/01/15 02:30:59 »

Hy, I've tried your windows.x file and I can load it without any probs with the specified colours with XNA GSE, try out the simple example from the Help 'Your first 3d' and load your mesh there.
I can't see nothing wrong with the x.file.
Shure you can't see a texture on it, because there is no texture aligned to your mesh Smiley

Sorry for my horrible english, but school times are long ago ....

cu,gonZoX.
Logged
bobbie_dache
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #6 on: 2007/01/15 14:53:49 »

But how can I extract the texture from my .x file?

Logged
gonZoX
Newbie
*
Offline Offline

Posts: 16


View Profile
« Reply #7 on: 2007/01/15 23:29:55 »

There is no texture in your x.file yet. You told you have created the mesh with 3ds, and there you have specified the colors (and no texture) for the mesh. If you create a new Material in 3ds with is aligned to a bitmap texture and use this for your mesh, than after exporting your mesh to *.x there will be a reference to texture included in the x.file. Open your x.file with the editor and search for the path of the included image file, p.e. :
TextureFilename { "C:\\Dokumente und Einstellungen\\Administrator\\Eigene Dateien\\3D_Modelle\\Camoflage.jpg"; }
In this case you see that a absolute path is added and this will only work as long as this path will be found, changing all existing pathes to relative ones will help when you will distribute your mesh.

cu,gonZoX.
Logged
bobbie_dache
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #8 on: 2007/01/16 12:26:30 »

Thanks guys! that's all I needed Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
3d Engine-- Tutorial 2 problem. Hazy Mind 3D Engine ZebraHDH 4 2204 Last post 2006/12/03 14:20:43
by tuxdalinux
Screen Flickering problem... Hazy Mind XNA Engine simpson.jon 4 1701 Last post 2007/02/25 17:09:05
by simpson.jon
Strange Problem ( Advice/Assistance Needed Please :-) ) General Discussion DaphydTheBard 4 1778 Last post 2007/03/17 10:23:52
by DaphydTheBard
Animations! But one problem... Hazy Mind XNA Engine EclipsE 2 1415 Last post 2007/04/12 02:42:27
by EclipsE
Minimize problem - app crash Hazy Mind XNA Engine nicknz 4 2242 Last post 2007/08/02 04:32:10
by Suzume
tutorial 4 problem Hazy Mind 3D Engine precious roy 3 2499 Last post 2007/08/03 12:24:26
by mikeschuld
usercontrols over gamewindow and keyboard problem General Discussion XNASorcerer 2 1465 Last post 2007/05/09 00:52:09
by Chr0n1x
Interface problem. Help!! General Discussion XNASorcerer 5 2112 Last post 2007/05/09 09:46:36
by CarlosFreitas
ObjectManagers problem Hazy Mind XNA Engine Jonotron 1 1341 Last post 2007/08/03 12:29:19
by mikeschuld
Spaceship orientation problem Hazy Mind XNA Engine murga 3 1621 Last post 2007/07/18 07:00:15
by Nemo Krad
Camera problem Hazy Mind XNA Engine Montynis 2 1686 Last post 2007/08/02 09:54:14
by Montynis
Problem with the pick Hazy Mind 3D Engine Zandman26 0 1422 Last post 2007/08/06 15:04:06
by Zandman26
Help about .Java file for Module General Discussion jaypaul 1 1775 Last post 2009/05/08 12:32:58
by mikeschuld
Question About Packing Maps into one file? General Discussion jaypaul 0 1563 Last post 2009/06/03 05:12:47
by jaypaul
Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.408 seconds with 19 queries.