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 (M_D), 1,430 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Projection Flashlight Demo With Shadow And Normal #180281
01/28/08 06:35
01/28/08 06:35
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Here is a demo of a few of the shaders I have created to emulate a flashlight.
These shaders use a projected texture I made and have a few quality levels
for slower machines.

You toggle the normal mapping support on and off with key 1
You toggle the shadow mapping from the flashlight on and off with key 2
You toggle the film grain effect on/off with key 3 (off default)



I made some shaders that are identical, but use per pixel spotlight cones
instead of projection, they are faster, but not as nice as this method.

This is just a small room with a couple of normal mapped models in it.
The intention is to demonstrate the shaders, I know the environment
stinks! So you are not really missing much if you dont download the ~34 meg demo.

These shaders are still a work in progress as part of a larger work.
I never thought I would be able to do this stuff with Gamestudio, but lately
the engine is really changing!

Thanks for looking!

Rapidshare 34MB Download

File Front Download



Not two, not one.
Re: Projection Flashlight Demo With Shadow And Normal [Re: Grafton] #180282
01/28/08 06:39
01/28/08 06:39
Joined: Aug 2003
Posts: 448
Pluto
SlyBoots Offline
Senior Member
SlyBoots  Offline
Senior Member

Joined: Aug 2003
Posts: 448
Pluto
I have yet to try it, but the screenshots look promising!


3DSK Human Photo References for 3D Artists and Game Developers
Re: Projection Flashlight Demo With Shadow And Nor [Re: SlyBoots] #180283
01/28/08 07:52
01/28/08 07:52
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline
User
Happy Birthday Emre  Offline
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
Perfect!

But performance is slowly.
(My pc system: 3ghz Hyper-Threading,1gb ram,radeon 9800 pro) fps is "23-24".

Re: Projection Flashlight Demo With Shadow And Nor [Re: Grafton] #180284
01/28/08 08:04
01/28/08 08:04
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
do you plan on sharing the code with us?
currently im downloading the package, but 34 sounds a bit large :O
is this A6 or A7 by the way? the screens look great so far ^_^ great job.




Ok, so i tested it now... WOW looking really great man!
i really hope you wanna share the shadowmap shader
looks awesome! can you tell a bit more about how you did it and all?
cuz i keep reading shadow shaders are so hard to do etc etc and ehre you go create a real nice one together with a projection shader! :O
does the porjection allow for multiple projectors per level? that'd be awesome...
anyway, keep it up!

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Projection Flashlight Demo With Shadow And Nor [Re: Helghast] #180285
01/28/08 08:22
01/28/08 08:22
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Emre:
That concerns me some, I havent tested it on other machines. My machine is
same as yours but I have 512 more ram with a nvidia GeForce 7800 GS, and I get
~93 fps (900x600) with all effects turned on. You need vs1.1 and ps2.0 for all
shaders. I wonder what others are getting?

Dennis:
I'll make you a deal, If you give away your ragdoll system, I'll give away my
(this) flashlight system/shaders! Deal?
BTW, Its all done in A7 Lite-C.
Thanks for the comments man!


Not two, not one.
Re: Projection Flashlight Demo With Shadow And Nor [Re: Grafton] #180286
01/28/08 11:36
01/28/08 11:36
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
The normalmapping looks great
The shadows should be a bit darker and what I miss are soft edges
Because the lightview is always near to the camera and facing away from it, you
don´t have to care about antialiasing and are using just some basic
shadowmappingcode right?
How do you handle the normalmapping together with the projectionshader? Dou you
just place a pointlight at the lightsource and multiplicate the result with the
projected texture?
And than you just combine it with the shadowmapping, don´t you?
I am just interested because I thought about something like that just a few days
ago

Last edited by Slin; 01/28/08 11:36.
Re: Projection Flashlight Demo With Shadow And Nor [Re: Slin] #180287
01/28/08 13:03
01/28/08 13:03
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
the shots look great, but can someone please upload it to a different host, like file front?

Re: Projection Flashlight Demo With Shadow And Nor [Re: Grafton] #180288
01/28/08 13:23
01/28/08 13:23
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Quote:


Dennis:
I'll make you a deal, If you give away your ragdoll system, I'll give away my
(this) flashlight system/shaders! Deal?
BTW, Its all done in A7 Lite-C.
Thanks for the comments man!




YOU GOT YOURSELF A SWEET FRIGGIN NICE DEAL!
gheheheheheee, honestly, i was gonna upload it anyway, just had nearly _NO_ time on other projects besides the one im currently involved with. (and killzone, lol)
i'll build in basic stuff to not update every frame, and maybe even a way to turn the whole system for each ragdoll individually off... that would be really nice i reckon :/

i guess i can have it done by the weekend i'll let ya know

and btw, does it support multiple projectors ?

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Projection Flashlight Demo With Shadow And Nor [Re: Shadow969] #180289
01/28/08 17:00
01/28/08 17:00
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline
User
Happy Birthday Emre  Offline
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
Quote:

the shots look great, but can someone please upload it to a different host, like file front?



http://files.filefront.com/Flashlight+Demozip/;9526656;/fileinfo.html

Re: Projection Flashlight Demo With Shadow And Nor [Re: Emre] #180290
01/28/08 17:02
01/28/08 17:02
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
this is great, i dunno what my fps were as i have forgotten how to bring up the debug panel lol, but it seemed to be running very smoothly


Why does everyone like dolphins? Never trust a species which smiles all the time!
Page 1 of 2 1 2

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