Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, Aku_Aku, 7th_zorro, Ayumi), 1,080 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is this a shader? #41848
02/27/05 02:43
02/27/05 02:43
Joined: Jul 2004
Posts: 262
O
Otsego Offline OP
Member
Otsego  Offline OP
Member
O

Joined: Jul 2004
Posts: 262
Does anybody know the sun rays effect in Star Wars Battleground? I am wondering if this is a shader and how it can be done?
Well, i don't have the game, so i can't show you any screenshots, but the effect is similar to tis one:

So, the number and positions of the rays are dependent on how much and wich parts of the sun are visible.

Any information about this?
Thanks

Re: Is this a shader? [Re: Otsego] #41849
02/27/05 03:05
02/27/05 03:05
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline
Developer
xoNoid  Offline
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
I dont think so. It looks like some clever coding and a well drawn sprite to me.
I've seen a similar effect being done on the TORQUE techdemo on my Geforce 2 which doesnt support shaders.

Re: Is this a shader? [Re: Otsego] #41850
02/27/05 03:15
02/27/05 03:15
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
to achieve such an effect you have to read a small area of the z-buffer at the sun position and then do some kind of radial blur with this data.

i don't know if it would be possible to achieve this with a dll in a6.

Re: Is this a shader? [Re: xoNoid] #41851
02/27/05 03:20
02/27/05 03:20
Joined: Jul 2004
Posts: 262
O
Otsego Offline OP
Member
Otsego  Offline OP
Member
O

Joined: Jul 2004
Posts: 262
Ah, thank you!
Then i'll try to code an effect like this, but i think there will be some problems with trees. I can't ignore the transparent parts of their textures, so the effect will be quiet inexact. But i'll give it a try.

Edit: Thanks, ventilator! So, could the rays shine through the transparent parts of a texture then?

Last edited by Otsego; 02/27/05 03:24.
Re: Is this a shader? [Re: Otsego] #41852
02/27/05 03:26
02/27/05 03:26
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
to get it working with transparent trees you just would have to use the alpha-testing material from the wiki. the tree pixels would be in the z-buffer then.

Re: Is this a shader? [Re: ventilator] #41853
02/27/05 03:39
02/27/05 03:39
Joined: Jul 2004
Posts: 262
O
Otsego Offline OP
Member
Otsego  Offline OP
Member
O

Joined: Jul 2004
Posts: 262
Great, i already use this material, so i have just to make such an effect .
Thanks again


Moderated by  Blink, Hummel, Superku 

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