transparency on models.

transparency on models.

Re: transparency on models. Posted by asterix_vader on Wed Nov 1st 2006 at 12:27am
asterix_vader
494 posts
Posted 2006-11-01 12:27am
494 posts 49 snarkmarks Registered: Aug 29th 2003 Occupation: Trying to find one Location: Peru
as the subject/description say: how to make a model transparent.

i followed this guide that says "use the last color in the pallete of your bmp as transparent color and add this line to your qc file: $texrendermode "texturename.bmp" "<rendermode>"" but it doesn't work, and i don't understand that thing about "rendermode".

i also tried this another one but i think it's just to see transparency in the program (ms3d).

and that's my question...
this question hasn't been answered before has it? i did search and found nothing about this.
Re: transparency on models. Posted by Campaignjunkie on Wed Nov 1st 2006 at 12:42am
Campaignjunkie
1309 posts
Posted 2006-11-01 12:42am
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
The next line in the guide reads:

$texrendermode "hedgehog_test.bmp" "masked"

So you will want to set the "<rendermode>" to "masked" to get masked transparency.
Re: transparency on models. Posted by asterix_vader on Wed Nov 1st 2006 at 12:57am
asterix_vader
494 posts
Posted 2006-11-01 12:57am
494 posts 49 snarkmarks Registered: Aug 29th 2003 Occupation: Trying to find one Location: Peru
yes, i know i have to change that to "masked" but....

i was wondering why the model compiled but transparency didn't work: i forgot the $ sign.

now it says:

************ ERROR ************
bad command $texrendermode

i'm using MilkShape, should i use another program or something?
Re: transparency on models. Posted by fishy on Wed Nov 1st 2006 at 8:20am
fishy
2623 posts
Posted 2006-11-01 8:20am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
i used jeds model viewer to add transparency to hl1 models. it allows you to load a model, set any of the textures to transparent, then save the model with a new name.
i eat paint
Re: transparency on models. Posted by Campaignjunkie on Wed Nov 1st 2006 at 8:35am
Campaignjunkie
1309 posts
Posted 2006-11-01 8:35am
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
I'm guessing Milkshape's model compiler uses an older version of studiomdl. You should go with fishy's suggestion.
Re: transparency on models. Posted by asterix_vader on Thu Nov 2nd 2006 at 5:28pm
asterix_vader
494 posts
Posted 2006-11-02 5:28pm
494 posts 49 snarkmarks Registered: Aug 29th 2003 Occupation: Trying to find one Location: Peru
is it me or old hl engine doesn't support transparency on models?

i test my maps on the old hl because it's faster and i don't need steam to run it, but the models didn't look transparent. i ran the map on steam hl and transparency worked.

so, thanks again fishy!
Re: transparency on models. Posted by fishy on Thu Nov 2nd 2006 at 11:17pm
fishy
2623 posts
Posted 2006-11-02 11:17pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
if your install is fresh from an old half-life cd, then it won't support the transparency. older versions of some mods don't support it either, but it works in the most recent [non-steam] tfc, dod, cs or probably loads of others. maybe you could try running your map in one of those,...though that wouldn't be any good for testing entity setups.
i eat paint
Re: transparency on models. Posted by asterix_vader on Fri Nov 3rd 2006 at 5:08am
asterix_vader
494 posts
Posted 2006-11-03 5:08am
494 posts 49 snarkmarks Registered: Aug 29th 2003 Occupation: Trying to find one Location: Peru
i use the last version of the old engine, 1.1.1.0 but i think i accidentally messed up some files, for example, the console background is cs's (not the dark gray bg with the lambda l symbol in the middle-bottom), do you know how to change it? i can't find the file. i'd reinstall the game but too lazy, and it's just models transparency (and console bg). at least i know it works.
Re: transparency on models. Posted by Caboose on Sat Nov 4th 2006 at 2:12pm
Caboose
2 posts
Posted 2006-11-04 2:12pm
Caboose
member
2 posts 0 snarkmarks Registered: Oct 1st 2006 Occupation: Student Location: United States
You need the DoD model transparency dlls (hw.dll, sw.dll). Should be a DL out there somewhere, Google it.