Source Filmmaker

Source Filmmaker

The Quack Jul 31, 2019 @ 1:56pm
SFM Help: Creating "Faces" for textures
I just wanted to see if anyone knows how to create faces for textures to create like env maps or textures that kinda move and react to camera and lighting movements. So yeah what programs are needed and I actually need to do to create faces for the textures.
< >
Showing 1-7 of 7 comments
episoder Jul 31, 2019 @ 4:00pm 
what kinda visual are you trying to achieve? still the dbxv shading? you don't need extra faces for this. it's part of the general vertexlit shader. to control where the envmap is applied, you gotta create a mask texture channel. whether use the basetexture's alpha or the normal map's alpha channel. the normal map alpha channel is the default and is shared with the phongmask. to use the basetexture channel you need to declare $basealphaenvmapmask. in this case you can have 2 seperate masks for phong light reflections and envmap reflections.

in case you wanna generate an envmap. the easiest way i know is using hammer and building a box, with your reflection textures on the inside, or you build some kinda geometry you wanna reflect, in the center of a small custom map. it should be centered around 64 units above the ground, and in case of the box, 128 units in all dimensions. compile the crap. in sfm you goto game mode and type things in the console. use "setpos 0 0 64" to have the player camera in the center of the box/geometry. then you type "lightprobe [name of your custom envmap] [edge size/dimension]" to snapshot it.

It could be done in blender too, unwrapping a cube with 6 different textures and painting the inside. the general problem is that you gotta figure out the locations and rotations of the cube textures and puzzle all of it into gimp layers for example to export it as a working envmap. i've never done that.
Last edited by episoder; Jul 31, 2019 @ 4:15pm
The Quack Jul 31, 2019 @ 7:10pm 
Well with the faces it can be done with the shading rn atm. Im trying to see if I can put faces on a texture that is a lightwarp
episoder Jul 31, 2019 @ 8:43pm 
yo no comprende.
Zappy Aug 1, 2019 @ 1:02am 
Originally posted by Thatdemo1234:
- Im trying to see if I can put faces on a texture that is a lightwarp
If textures without multiple faces can be used as lightwarps (which they can), textures with multiple faces will probably not work at all as lightwarps (they definitely don't work as base/diffuse textures, instead showing up as only blackness).
The Quack Aug 1, 2019 @ 8:46pm 
So I have to create 2 seperate masks of the base textures?
Zappy Aug 1, 2019 @ 11:37pm 
Originally posted by Thatdemo1234:
So I have to create 2 seperate masks of the base textures?
No. You can't use that, especially not for the purpose of "camera-angle-and-light-reacting" things.
The Quack Aug 9, 2019 @ 10:43pm 
i seee
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Jul 31, 2019 @ 1:56pm
Posts: 7