|
Terrain Shadows - is it possible?
#87998
08/29/06 05:23
08/29/06 05:23
|
Joined: Nov 2005
Posts: 66 Spokane, WA, USA
Vonman
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2005
Posts: 66
Spokane, WA, USA
|
Hi, I just recently bought gsA6 pro and am eperimenting with terrains. I have learned that terrains cast nice shadows when lit by a dynamic light, BUT... If the terrain is lit at all by a static light (placed with WED) the light will illuminate the ENTIRE terrain and the terrain will not have any shadows or radiance whatsoever. I've tryed playing around with sun angles, ambiance, albedo, ect, and cannot figure this out. If it's not possible, then I want half off the origanal price for an upgrade to the future A7 or whatever future version that will do this lol!!
|
|
|
Re: Terrain Shadows - is it possible?
[Re: Vonman]
#87999
08/29/06 07:03
08/29/06 07:03
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
Only blocks are affected by static lights. For other types of entities (sprites, terrains, models, etc.), you'd need dynamic lights to light them. Shadows also affect it (yes, entities can cast shadows on each other).
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: Terrain Shadows - is it possible?
[Re: ulillillia]
#88000
08/29/06 07:44
08/29/06 07:44
|
Joined: Nov 2004
Posts: 7,121 Potsdam, Brandenburg, Germany
Machinery_Frank
Senior Expert
|
Senior Expert
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
|
You can have shadows on terrain. A simple way is a material with a very low diffuse and ambient value.
The most powerful way is the shader that you can find in the template folder. This shader can paint several layers of tileable textures and one layer of shadows over each other. With this you can paint your shadows or you can bake the shadow in an external software (like FreeWorld3d). So every tree could cast a shadow. But this would be a static solution.
Last edited by Frank_G; 08/29/06 07:45.
Models, Textures and Games from Dexsoft
|
|
|
Re: Terrain Shadows - is it possible?
[Re: Vonman]
#88002
08/29/06 11:36
08/29/06 11:36
|
Joined: Nov 2004
Posts: 7,121 Potsdam, Brandenburg, Germany
Machinery_Frank
Senior Expert
|
Senior Expert
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
|
Only sunlight makes dynamic shadows on blocks models or terrain. Static light cannot do it. It can only color textures and change colors of models standing on blocks with a certain lightmap.
Models, Textures and Games from Dexsoft
|
|
|
Re: Terrain Shadows - is it possible?
[Re: Machinery_Frank]
#88003
08/29/06 12:13
08/29/06 12:13
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
Quote:
Only sunlight makes dynamic shadows on blocks models or terrain. Static light cannot do it. It can only color textures and change colors of models standing on blocks with a certain lightmap.
Correction: "Only dynamic lights...". The Sun is considered as a dynamic light as well. I'm not all that familiar with lights, so I may be wrong.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: Terrain Shadows - is it possible?
[Re: ulillillia]
#88004
08/29/06 13:06
08/29/06 13:06
|
Joined: Jan 2003
Posts: 4,305
Damocles
Expert
|
Expert
Joined: Jan 2003
Posts: 4,305
|
This is a baked shadow onto the terrainbitmap: (but it is static and can not change to different sunpositions) With the multitexturing shader in the templates, you can also mix this with different textures in the terrain. There is currently no option in Wed to bake shadows onto a terrain.
|
|
|
|