3 registered members (Quad, VoroneTZ, 1 invisible),
862
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
No sun on normalmap
#210965
06/14/08 07:41
06/14/08 07:41
|
Joined: Aug 2006
Posts: 128 Papua New Guinea
Impaler
OP
Member
|
OP
Member
Joined: Aug 2006
Posts: 128
Papua New Guinea
|
I just downloaded the shader listed as "Normalmapping Shader" on the wiki shader list, and it works perfectly with lights, but not the sun. With only a sun, it appears with no shading whatsoever, it actually looks worse than the other models in the level. I know nothing about actual shader programming, so what can be done to fix this?
Murphey's Law: << if anything can go wrong, it will >> (Murphey was an optimist).
|
|
|
Re: No sun on normalmap
[Re: Impaler]
#210968
06/14/08 08:30
06/14/08 08:30
|
Joined: Jan 2007
Posts: 651 Germany
RedPhoenix
User
|
User
Joined: Jan 2007
Posts: 651
Germany
|
Yes this shader is only suited for lights, propably thought as an indoor scene shader. It could be rewritten easily, however why don't you just use another normalmappingshader, eg. one of this ones: http://files.filefront.com/Massive+3DGS+Shadercollection/;8119277;/fileinfo.html
Last edited by RedPhoenix; 06/14/08 08:30.
|
|
|
Re: No sun on normalmap
[Re: RedPhoenix]
#210998
06/14/08 11:19
06/14/08 11:19
|
Joined: Aug 2006
Posts: 128 Papua New Guinea
Impaler
OP
Member
|
OP
Member
Joined: Aug 2006
Posts: 128
Papua New Guinea
|
Can someone point me to a shader that uses the sun light? I tried the specular normalmapping shader in the projects folder, but it seems to have no light attenuation, and also is very washed out.
Murphey's Law: << if anything can go wrong, it will >> (Murphey was an optimist).
|
|
|
Re: No sun on normalmap
[Re: MMike]
#211014
06/14/08 12:48
06/14/08 12:48
|
Joined: May 2005
Posts: 2,713 Lübeck
Slin
Expert
|
Expert
Joined: May 2005
Posts: 2,713
Lübeck
|
i can do anyshader object shader you want, now that i have mental mil eheh Probably, but they are not really optimised and very dirty layouted... I would not really recomment using it if you aren´t able to clean it up.
|
|
|
Re: No sun on normalmap
[Re: MMike]
#211073
06/14/08 19:08
06/14/08 19:08
|
Joined: May 2005
Posts: 2,713 Lübeck
Slin
Expert
|
Expert
Joined: May 2005
Posts: 2,713
Lübeck
|
i do't see other way of building shaders, since the visual part would be hard.
Wtf? I just write them down and am very happy with it. I haven´t done it yet, but you can even write them in "realtime" getting the visual feedback directly from within A7. It is much more flexible then any shadereditor and a lot cleaner. In many cases it is even faster then converting other shaders.
|
|
|
Re: No sun on normalmap
[Re: Slin]
#211088
06/14/08 21:27
06/14/08 21:27
|
Joined: Jul 2004
Posts: 1,710
MMike
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,710
|
ok but i mean,m you know all the formulas to achive falloff, gradient, noise, etc etc, that reflectio refraction, so easly, than a visual editor, like for example mental mil.
But of course it will be clenear and possible to write them down..
|
|
|
|