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
1 registered members (AbrahamR), 717 guests, and 4 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
normal mapping from scene lights #177077
01/08/08 19:11
01/08/08 19:11
Joined: Feb 2007
Posts: 15
G
gettarobox Offline OP
Newbie
gettarobox  Offline OP
Newbie
G

Joined: Feb 2007
Posts: 15
(warning)I am a 3d artist not a programmer.

I was able to get "Intro to Shader Programming" version of normal mapping working but it is only using the light from the "sun". I want the normal maps to work with the lights I place in the scene. is there and easy way to do this?
Any help is appreciated. Thanks in advance.

Re: normal mapping from scene lights [Re: gettarobox] #177078
01/09/08 03:43
01/09/08 03:43
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Do you want to learn HLSL, or just have this shader?

If you just want the shader, there are a few. In fact, I've got one in my signature below. Otherwise, there's also one in the Wiki, as well as Slin's Shader-Collection


xXxGuitar511
- Programmer
Re: normal mapping from scene lights [Re: xXxGuitar511] #177079
01/09/08 18:54
01/09/08 18:54
Joined: Feb 2007
Posts: 15
G
gettarobox Offline OP
Newbie
gettarobox  Offline OP
Newbie
G

Joined: Feb 2007
Posts: 15
I can't seem to get the normals to compute the scene lights. I am using the shooter project template and the grenade guns explosions are computing properly but none of the lights I place in the scene.

Last edited by gettarobox; 01/10/08 18:28.
Re: normal mapping from scene lights [Re: gettarobox] #177080
01/10/08 10:31
01/10/08 10:31
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
why do i get a question about authorisation for "...myfolder.unhomada.edu... " when loading this thread?

Re: normal mapping from scene lights [Re: ello] #177081
01/10/08 17:02
01/10/08 17:02
Joined: Aug 2005
Posts: 343
Germany
HPW Offline
Senior Member
HPW  Offline
Senior Member

Joined: Aug 2005
Posts: 343
Germany
It's the Image from one post above yours. This Image is on a password protected server: "myfolder.unomaha.edu/usr/jsewing/snafu.jpg"


Evil Blood (v. 0.52) RPG
Commport.de (Social Network Community)
Re: normal mapping from scene lights [Re: HPW] #177082
01/10/08 17:22
01/10/08 17:22
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Shaders only compute dynamic lights (from the gun) - not static lights (the ones you place in WED)


xXxGuitar511
- Programmer
Re: normal mapping from scene lights [Re: xXxGuitar511] #177083
01/10/08 21:40
01/10/08 21:40
Joined: Feb 2007
Posts: 15
G
gettarobox Offline OP
Newbie
gettarobox  Offline OP
Newbie
G

Joined: Feb 2007
Posts: 15
if the dynamic flag is checked on a light is it not dynamic like the gun lights are?

Re: normal mapping from scene lights [Re: gettarobox] #177084
01/11/08 02:00
01/11/08 02:00
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
No. I'm not exactly sure why WED has the checkbox. AFAIK, It will (eventually) create a dynamic light, but for now conitec hasn't completed that feature yet...


xXxGuitar511
- Programmer
Re: normal mapping from scene lights [Re: xXxGuitar511] #177085
01/26/08 13:09
01/26/08 13:09
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
Quote:

No. I'm not exactly sure why WED has the checkbox. AFAIK, It will (eventually) create a dynamic light, but for now conitec hasn't completed that feature yet...



Hi xXxGuitar

I'm new to this and hope my question isn't too newbie. I'm using that cool normal mapping shader. I'm using the sun along with other dynamic lights in a scene, the shader uses the sun to calculate the normal mapping however the only way the dynamic lights affect the model ontop of the sun is specularity (it seems). Is this what should be happening? Anyway you can get the models' light to be calculated from the nearest dynamic light (if there are no dynamic lights then the sun)? Anyway to have dynamic lights affect a model with a normal mapping shader the same way they do models with no shader?

Thank you.

David


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