Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (Ayumi), 662 guests, and 3 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
Weapon outlines #335611
07/29/10 18:00
07/29/10 18:00
Joined: Jul 2009
Posts: 80
Area 51
F
fangedscorpion Offline OP
Junior Member
fangedscorpion  Offline OP
Junior Member
F

Joined: Jul 2009
Posts: 80
Area 51
Hello,
I was wondering if there was a way that I could create an outline of a weapon in my game that is blue when the player is more than 50 units away (and when the player can't pick it up). An then when the player is closer and can pick up the weapon, have the outline turn white. Any ideas?


"Pow! You are dead! Not big suprise!" -Heavy
Re: Weapon outlines [Re: fangedscorpion] #335618
07/29/10 18:32
07/29/10 18:32
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
there has been a glowing edges shader for DX8 on the wiki, should be possible to port it to DX9, sadly i have no clue how v.v(this solution only works if you have COM or Pro).

If your version doesnt provide shadersupport, you could do the weapon model twice.

First one is normal and textured.
THe second one has the color of your line. The second model needs a scale above the scale of your first model.
If this is done, flip the normals of the second Model so that they're inside.
If you place the seond model now at the same position with the same rotation of the first model, the first model will have an outline.

THis works only if the modle is not hidden(so no throughwall look) and sadly it not glowing.

Greets
Rackscha

Last edited by Rackscha; 07/29/10 18:33.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Weapon outlines [Re: Rackscha] #335791
07/30/10 16:28
07/30/10 16:28
Joined: Jul 2009
Posts: 80
Area 51
F
fangedscorpion Offline OP
Junior Member
fangedscorpion  Offline OP
Junior Member
F

Joined: Jul 2009
Posts: 80
Area 51
Does anyone know of a better way than this?

No offense Rackscha.


"Pow! You are dead! Not big suprise!" -Heavy

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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