Game Development Community

Exporting textures problem

by Alan McNair · in Artist Corner · 09/04/2006 (7:02 am) · 30 replies

Hi all,

I've been trying to export a sphere object from Milkshape 3D into Torque with applying a white texture to it - so it looks like a golf ball.

I have created the sphere object and used a few different types of image file to try and texture it (BMP, PNG etc). All show up ok in Milkshape, but when I export it to Torque SDK, when I run Torque it does not show up correctly at all. No matter what texture I apply the object always appears looking nothing like it should.

I have the 3D Game Programming All In One book and have worked through it as the author states, but it seems something has gone wrong!

Any help on this matter would be appreciated.

Thanks

Alan
Page «Previous 1 2
#1
09/04/2006 (9:03 am)
What do you mean by always appears looking nothing like it should? You using a plain white texture with or without a bump map.
#2
09/04/2006 (11:11 am)
Try changing the texture image size to 256
#3
09/05/2006 (3:47 am)
Michael - this is how the golf ball appears after I texture it, it either appears grey or a weird colour -

img155.imageshack.us/img155/7599/torqueproblemum0.th.jpg

Maxwell - have tried resizing the image to 256, but now Milkshape won't seem to map any of my texture onto it! I must be doing something differently than I did yesterday!!

Edit - I tried the rock example in the 3DGPAI1 book and it mapped it ok in Milkshape, but when I exported it into Torque, it appeared just completely grey!

Here are the steps that I go through to create my golf ball :

Open Milkshape
Create a sphere
Create a new material
Use my 256x256 white colour as the material
Assign it to it
It now shows up ok in Milkshape
File -> Export -> Torque Game Engine DTS
Options selected are :

Collision Mesh -None
Export Animation
Export Material Information

:-(
#4
09/05/2006 (12:12 pm)
Email me your material and MS3D file. I will take look at it. I create a simple material and sphere I didnot have any problems. Appear grey for dts usually mean that texture is not locate in the folder with the model or power of 2 or not a png or jpeg. What export you using?
Try this export.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5894
#5
09/05/2006 (7:52 pm)
Looks like E mapping set to full...try a different exporter. If you're using the pull down Menu one, it's not the DTSPlus! exporter. You have to download that one and install by hand...
#6
09/06/2006 (8:49 am)
Email and attachments sent to you Michael, thanks.
#7
09/06/2006 (9:30 am)
I got it, I will be testing in few.
#8
09/06/2006 (10:12 am)
Ya, it is receiving full environmental mapping, that is the same texture the water block reflects.
#9
09/06/2006 (11:32 am)
It seem MilkShape 1.7.9 is doing something wierd when come pure white (255 255 255) and whites that is close to it. When using these colors in MilkShape, it is not showing the texture in the 3d view. Why this is happen is I dont know, probably a bug. If you use ms2dtsExporterPlus export at this link the models will appear correct in Torque even you will not see the texture in MilkShape. When assign it in MilkShape there no change to the model the default gray will show on the model and Material window. I try about 20 colors,
blue, green, red, black, pink and various others, they all show up correct in MilkShape.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5894
#10
09/06/2006 (3:12 pm)
Interesting bug, must be new since v1.7.8, which I still run & where this doesn't seem to occur. With an all white .png 256x256 texture Assigned to a simple box renders in my Perspective Viewport...?

Try checking SphereMap and then unchecking it, see what happens. I've had textures not appear in Ms3d viewport until this is done...a known bug, thought fixed with v.9, probably the 'fix' has done this, perhaps. Should let Mete know.

Cheers.

...sorry I can't check the generic stock exporter...I throw that thing out with each new Milkfarm install & don't keep a copy about...just gets in the way and wastes Menu space! And btw, what are your graphic specs? Don't tell me you need to use the Mesa drivers!
#11
09/06/2006 (3:51 pm)
I try checking and unchecking the SphereMap it has no effect on it. Thanks for information. The export has no effect on it, I recommend the ms2dtsExporterPlus because it has more options and dont have to do the material option with the fake materials any more.
#12
09/09/2006 (7:05 am)
D'oh, thanks for the help Michael but this looks like a problem that I might not be able to fix :-/

Anyone have any other suggestions for modelling programs I could use for my golf game, so I could try exporting files through them?
#13
09/09/2006 (3:07 pm)
Try using a lower version of Ms3d, like I do, I run v1.7.8 w/DTSPlus! and don't see this issue. Try Blender. There are a number of applications that export the TGE formats....UltimateUnwrap3d....Lightwave, Max, Maya.
#14
09/10/2006 (5:21 am)
Good idea Rex, I'll downgrade later this afternoon and see if that helps.

Thanks for all the help and suggestions in this thread guys :-)
#15
09/10/2006 (11:27 am)
Yeah, Ms3d installs are incremented, so you can open a few copies of the program at once. I usually have two installed, last current stable version and the newest. I haven't installed v.9 yet and I may wait. I have a feeling there may be some changes made to some rotation issues soon, and I'm holding off to see what becomes of that...
#16
09/10/2006 (2:39 pm)
Installed v 1.7.8 w/DTSPlus and successfully exported a sphere with the rock texture that's included with the 3DGPAi1 cd.

However, when I assigned a plain white or black colour to it in Milkshape, it just appeared in Torque as gray.......
#17
09/10/2006 (2:49 pm)
MilkShape just release 1.7.10, you may want to try that one.
#18
09/10/2006 (11:06 pm)
Move the texture used in the Material Tab to the shape's current TGE directory or in a directory above where the shape resides in the TGE data tree...ie, tge.exe/fps.starter/data/shapes/golfBall. It should then render inside the engine...glad to see you got it sorted.

I'll have to take a peek at v7.10...

...ah, you'll need an actual texture with an extension. Using simple Material parameters[ambient/diffuse/emissive/specular] won't export to DTS format, if that's what you've done.
#19
09/11/2006 (4:43 am)
Thanks Rex, that got the problem with black/red/blue colours sorted - by moving the actual textures into the TGE data tree.

However, when I try and apply a white 256x256 to a sphere in Milkshape, it simply doesn't change colour - it stays gray. Unlike when I use any other colour 256x256, it seems to change ok.
#20
09/11/2006 (6:05 am)
There is a bug in MilkShape that does not allow the white texture to show up in the material tab, but it is there. As long you export the model correctly it will show in Torque. I download MilkShape 1.7.10 and guess what the bug is still there. If you using a png file with an apha channel you will have to use emissive on the material tab. The slider must be drag under the "E" if not there will be no transparency export. Also if use the Torque DTS Plus export you will need to click the material and edit button on the export window. Then check the check box for the "Translucent" in the Flag section. If not then when you load model in Torque there will be no alpha channel display on the model.
Page «Previous 1 2