Game Development Community

Textures with transparent areas in Milkshape

by Mathew 'MonkeyHumanHybrid' Bland · in Artist Corner · 08/04/2002 (12:29 pm) · 22 replies

Hi,
I can get a texture to have transparent areas in Milkshape (by loading a normal texture and an accompanying 'mask').
However, once I export to a dts file and use the World editor in Torque to check how it looks in the game world, the transparency doesn't work.

Is there any way of correcting this?

(FYI : I am currently using PNGs, but Milkshape doesn't seem to like PNGs with an alpha channel. Also the texture is just being mapped over a single polygon model only for testing purposes)
Page «Previous 1 2
#1
08/04/2002 (1:59 pm)
According to this task, the MilkShape exporter is missing some special sorting for alpha blended meshes. =/
#2
11/04/2002 (9:33 am)
try this, at the material panel, there are 2 slider bars below, the left one controls the enviroment and the right controls the opacity. lower the right one a little.

as for getting the png in, do what i did. use two separate png files, one without any alpha and transperancies but with the same map size etc.. after getting it in and adjusting it to the correct size export it. then in the shapes folder, just replace the png with the transperency png, voila . it should work.

(just solved it an hour ago.. now i have to figure out why the collision mesh doesnt move with the animation)
#3
11/09/2002 (1:54 pm)
Fooch,

If you figure out a way to get the collision mesh to move with animation, please post it here or to a new thread with the appropriate title. Just a hint though. I don't think the animation/COLDET works that way. I think you have to move the whole shape via scripting etc to get the COLDET box to move.

-ed
#4
11/09/2002 (3:47 pm)
Yep, slide the slider on the right to the left to make the shape more transparent. Remember to replace your .jpg files that you used with milhshape with the actual png files with the alpha channels when you add you dts shape to the folder.

As far as animating collision meshes go, I have tried with both milkshape and 3dstudio with no luck. I got around this though by using an invisible object WITH a collision box in association with my animated dts object.
#5
11/09/2002 (7:18 pm)
Thanks robert. thats the way i went for moving collision. used a simple invisible model for collision. worried bout the extra polygons thats all.

Would anyone know any idea how to do it through programming ? me, i'm an architecture student dabbling in 3d gaming so the scripts honestly scare me.. (it took me so long to get animations working the exec command at game.cs ...)
#6
11/10/2002 (9:18 pm)
Have you tried linking the collision vertices with the appropriate joints\nodes? The same way you do it with the mesh. For instance: if it were an elbow on a character, you'd assign the appropriate vertices on the mesh around the elbow to that elbow joint. So all you'd have to do is assign the collision vertices along with the mesh vertices to that corresponding joint.
#7
11/11/2002 (2:28 am)
yup i did .. even tried duplicating a joint and linking the collision mesh to that joint itself .. but milkshape seems to cancel out animation for any mesh i used as the collision ..
#8
06/28/2003 (1:45 am)
[edit]Obsolete...[/edit]
I'd like to bring this thread back to life...
I am having the same trouble as the first post in this thread. I have tried what Fooch said with the material sliders and placing an alpha-enabled .png in the dts folder, and instead of using the alpha channel, it just makes that whole material about 50% transparent. Has anyone recently had success with opacity maps in milkshape? If so, I may just need a more detailed explanation of what the opacity map needs to be out of photoshop.
Many thanks...

[edit] Wow, not 15 seconds after I clicked submit, I figured it out. I was using an actual alpha channel in photoshop... turns out I just needed to leave the transparent areas transparent instead of using the alpha channel deal. Works beautifully. [/edit]
#9
05/22/2004 (5:34 am)
Thanks a lot to all that posted in this thread, I really appreciate the help. I had been messing around with this now for a while (too long) and had searched the forums, nothing helped until I came across this thread. Thanks!

Matt
#10
06/02/2006 (12:16 pm)
Greetings,

The thread will not die :)

I am trying to make trees as two intersecting planes. I can't seem to get the transparency to work for the textures. I am using PNGs (8 and 24) from PhotoShop CS2. I am also using MilkShape. I have played with the sliders and I'm not using an alpha channel, just standard transparency, in the png files. But I still get a grey fill around the tree.

Does anyone have any suggestions?

Thanks.
#12
06/02/2006 (3:21 pm)
Dave,

I am. From the discussions on the forums, the problem could be either the MilkShape exporter (i.e. settings), or the PNG file format (i.e. alpha coding). Does someone have a "tree" or other simple object in MilkShape that they have successfuly exported and put into Torque?

Thanks.
#13
06/02/2006 (4:30 pm)
Yes It works. I just test it with simple box. So the exporter is working. Email me i will send you the box with material.
#14
06/02/2006 (5:52 pm)
Did you edit the material in the exporter using mipmapzeroborder? Editing the material in the exporter is much better than trying to play with sliders.
#15
06/02/2006 (6:19 pm)
No, I dont use mipmapzeroborder.
#16
06/05/2006 (4:35 pm)
Greetings,

My request doesn't seem to be quite clear, so I'm hoping a picture will clear things up. I want the left side, but I can only make the right side.

www.virtualcommander.com/images/forum/treecomp.jpg
Any suggestions?

Thanks.
#17
06/05/2006 (4:39 pm)
Email me the image or post it here so can see what wrong but it look to be the alpha channel is not there. You using pure black 0 0 0 for your alpha channel. What app you using for the png?

rpullen2@nc.rr.com
#18
06/05/2006 (4:41 pm)
Email me the image or post it here so can see what wrong but it look to be the alpha channel is not there.

rpullen2@nc.rr.com
#19
06/05/2006 (4:44 pm)
Michael,

I emailed you the image before I posted here :D

I'm using PhotoShop CS2.

Thanks.
#20
06/05/2006 (4:47 pm)
I check my email. ok I got them. You using this as billboard.
Page «Previous 1 2