3 registered members (Konsti, AndrewAMD, 1 invisible),
1,376
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
"wireframe" effect
#28779
06/12/04 17:37
06/12/04 17:37
|
Joined: Jun 2004
Posts: 18 Germany/Daun
JKL
OP
Newbie
|
OP
Newbie
Joined: Jun 2004
Posts: 18
Germany/Daun
|
Has someone an idee of makin a shader wich renders the pixels ad the edges of a model to a light (looks maybe like a simple wireframe), how its done in the screenshot? I’m a very shader noob – so PLEASE PLEASE help you FX Kings! THX
|
|
|
Re: "wireframe" effect
[Re: Captain_Kiyaku]
#28786
12/13/04 03:26
12/13/04 03:26
|
Joined: Jun 2003
Posts: 232 Germany
fernlicht
Member
|
Member
Joined: Jun 2003
Posts: 232
Germany
|
Hi,
i´m wondering the second shader with two passes isn´t working.
i think the bug is in "pass1"
sorry but i´m a shader noob :-) can sombody help?
Quote:
material wireframe
{
effect="
texture entSkin1;
DWORD wfcolor = 0xFFFFFFFF; // Change this to the wireframe color of your choice
technique wireframe
{
pass p0
{
TextureFactor = <wfcolor>;
// CullMode = None; // Uncomment if you want backface too.
FillMode = Wireframe;
ColorOp[0] = SelectArg1;
ColorArg1[0] = TFactor;
}
pass p1
{
FillMode = Solid;
ColorOp[0] = SelectArg1;
ColorArg1[0] = texture;
}
}
";
}
[EDIT]
how is it possible to chage the thickness of the wireframe lines?
[EDIT]
regards
Last edited by fernlicht; 12/13/04 03:31.
|
|
|
Re: "wireframe" effect
[Re: slacer]
#28788
12/14/04 09:47
12/14/04 09:47
|
Joined: Jun 2003
Posts: 232 Germany
fernlicht
Member
|
Member
Joined: Jun 2003
Posts: 232
Germany
|
thanks is it possible to apply this shader to level-geometry. how can i do this? did i miss something, because the material name is the same as my wadtexturename. do i have to initialize the shader to the texture?? my code Code:
material blue{ effect=" technique wire{ pass p0{ fillmode=2;//or 1 } } "; } any help welcome regards
|
|
|
|