|
wireframe + pointframe
#131655
05/24/07 17:56
05/24/07 17:56
|
Joined: Sep 2003
Posts: 271 Germany
Chris3D
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 271
Germany
|
Hi! Ich weis, es ist nichts besonderes, aber es hat mir sehr für mein plugin weitergeholfen, vielleicht bringt es euch auch irgendetwas: Code:
function mtl_wire_init() { vec_set(mtl.emissive_blue, mat_model.emissive_blue); vec_set(mtl.ambient_blue, mat_model.ambient_blue); vec_set(mtl.diffuse_blue, mat_model.diffuse_blue); vec_set(mtl.specular_blue, mat_model.specular_blue); mtl.power = mat_model.power; mtl.albedo = mat_model.albedo; }
material mtl_wire { event = mtl_wire_init; effect = " technique t0 { pass p0 { FillMode = point; PointScaleEnable=true; PointSize =0.005f; ColorArg1[0] = Texture; ColorOp[0] = modulate; ColorArg2[0] = diffuse; } pass p1 { FillMode = wireframe; TextureFactor = 0x00FF8800; ColorArg1[0] = TFactor; ColorOp[0] = modulate; ColorArg2[0] = diffuse;
} } technique fallback { pass p0 { } } "; }
action Wire_Player { my.material = mtl_wire; }
CU Chris3D
|
|
|
Re: wireframe + pointframe
[Re: broozar]
#131657
05/24/07 20:05
05/24/07 20:05
|
Joined: Mar 2003
Posts: 4,264 Wellington
Nems
.
|
.
Joined: Mar 2003
Posts: 4,264
Wellington
|
Thank you, its fabulous! Been wanting to make a wireframe game for a while now, based on one of the 'Mars' movies where, to kill boredoom, the actor pilots play an air combat game rendered all in wireframe. 5 Stars man, its all I got to give back .
|
|
|
Re: wireframe + pointframe
[Re: Nems]
#131658
05/24/07 20:24
05/24/07 20:24
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
very cool! I've never looked into materials at all... is there an easy way to change colors, or is it difficult?
thx for sharing!
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: wireframe + pointframe
[Re: Germanunkol]
#131659
05/24/07 20:55
05/24/07 20:55
|
Joined: Mar 2003
Posts: 4,264 Wellington
Nems
.
|
.
Joined: Mar 2003
Posts: 4,264
Wellington
|
Code:
pass p1 { FillMode = wireframe; TextureFactor = 0x00FF8800 ; ColorArg1[0] = TFactor; ColorOp[0] = modulate; ColorArg2[0] = diffuse; }
|
|
|
Re: wireframe + pointframe
[Re: Nems]
#131660
05/25/07 11:52
05/25/07 11:52
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Riiight... sorry, I was looking for an RGB part like c_script uses normally... thx!
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: wireframe + pointframe
[Re: Germanunkol]
#131661
05/25/07 19:33
05/25/07 19:33
|
Joined: Mar 2006
Posts: 2,758 Antwerp,Belgium
frazzle
Expert
|
Expert
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
|
Nice, this is very helpfull Cheers Frazzle
Antec® Case Intel® X58 Chipset Intel® i7 975 Quad Core 8 GB RAM DDR3 SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB NVIDIA® GeForce GTX 295 Memory 1795GB
|
|
|
Re: wireframe + pointframe
[Re: Scorpion]
#131663
06/01/07 12:39
06/01/07 12:39
|
Joined: Oct 2002
Posts: 8,939 planet.earth
ello
Senior Expert
|
Senior Expert
Joined: Oct 2002
Posts: 8,939
planet.earth
|
Quote:
...i didn't know that this is possible with hlsl!
its ffp not hlsl
|
|
|
|