Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
wireframe + pointframe #131655
05/24/07 17:56
05/24/07 17:56
Joined: Sep 2003
Posts: 271
Germany
Chris3D Offline OP
Member
Chris3D  Offline 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: Chris3D] #131656
05/24/07 18:57
05/24/07 18:57
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
nice. you could add a 3rd, solid pass (as first one, to be rendered unter the point and wireframe pass) with a soild color, to make it even more tron-like.

Re: wireframe + pointframe [Re: broozar] #131657
05/24/07 20:05
05/24/07 20:05
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

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 Offline
Expert
Germanunkol  Offline
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 Offline

.
Nems  Offline

.

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 Offline
Expert
Germanunkol  Offline
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 Offline
Expert
frazzle  Offline
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: frazzle] #131662
06/01/07 12:30
06/01/07 12:30
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
hey thats a really cool contribution, i didn't know that this is possible with hlsl!
but i swapped the passes so that the dots wil be rendered on top, guess it looks a bit better...

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 Offline
Senior Expert
ello  Offline
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

Re: wireframe + pointframe [Re: ello] #131664
06/01/07 13:02
06/01/07 13:02
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
oh yeah..i through with words around me, right ffp

but it would be possible to combine it with hlsl?


Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1