Glass in Models? Created 8 years ago2016-11-08 06:27:44 UTC by CAT CAT

Created 8 years ago2016-11-08 06:27:44 UTC by CAT CAT

Posted 8 years ago2016-11-08 07:08:40 UTC Post #332224
Hello :)

Is there a trick to changing the opacity of glass on a model?

Maybe a specific texture works best for 40% transparency?
Posted 8 years ago2016-11-08 07:41:49 UTC Post #332225
env_render ?
Posted 8 years ago2016-11-08 07:55:07 UTC Post #332226
Not mapping
Posted 8 years ago2016-11-08 09:41:08 UTC Post #332227
You can use env_renders on the entire model, but not separate parts of it afaik.

What is the model btw? If it's simple enough to use a brush-based prop instead, you could tie the transparent parts to one func_train, and the opaque parts a second, both following the same paths)
Captain Terror Captain Terrorwhen a man loves a woman
Posted 8 years ago2016-11-08 12:14:14 UTC Post #332228
I am not 100% sure, but models can be built with several bodies, those bodies can have, afaik, different texture properties. Maybe is what you need.
Posted 8 years ago2016-11-08 15:05:02 UTC Post #332229
EDIT: confirmed. If you use several bodies, you can do one that´s the glass on your model, in the texture tab into the model viewer (HLMViewer for example) check the "additive" tab, and you´re done. I have tested with one of my models and worked fine.
Posted 8 years ago2016-11-09 19:50:37 UTC Post #332231
I know someone did the trick by using a separate model for the glass and setting it to render as semitransparent. I never tried it myself, though.
Posted 8 years ago2016-11-09 21:15:27 UTC Post #332232
Could work, but it is better to do the way I use. Look:
User posted image
If you use a solid color, like yellow or blue, you can also use the "chrome" tag and it will look exactly as a reflecting glass ;).

This is an example of my qc. file for making models with different bodies:
//

Output .MDL
$modelname "C:\DevZWC20\Elementos\Modelos Muelle Definitivos\Borde Exterior\bordext.mdl"

// Directory of .SMD
$cd "\DevZWC20\Elementos\Modelos Muelle Definitivos\Borde Exterior\"

// Directory of .BMP
$cdtexture "\DevZWC20\Elementos\Modelos Muelle Definitivos\Borde Exterior\"
$cliptotextures

// Write textures into a ???T.mdl
//$externaltextures

$scale 1.0

$body body "body1"
$body body "body2"
$body body "body3"
$body body "body4"
$body body "body5"
$body body "body6"
$body body "body7"
$body body "body8"

// sequences: all sequences are in $cd
$sequence seq-name "sequence" loop fps 1 ACT_IDLE 1
Hope I help! :D
You must be logged in to post a response.