Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, degenerate_762, AndrewAMD, ozgur), 774 guests, and 0 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 3 1 2 3
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 Offline OP
Junior Member
Vonman  Offline 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 Offline
Senior Expert
ulillillia  Offline
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 Offline
Senior Expert
Machinery_Frank  Offline
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: Machinery_Frank] #88001
08/29/06 09:25
08/29/06 09:25
Joined: Nov 2005
Posts: 66
Spokane, WA, USA
Vonman Offline OP
Junior Member
Vonman  Offline OP
Junior Member

Joined: Nov 2005
Posts: 66
Spokane, WA, USA
In a previous version (A4 or A5 I think standard edition) the static lights DID make moving entities have shadows, I just don't understand why it wont with A6.

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 Offline
Senior Expert
Machinery_Frank  Offline
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 Offline
Senior Expert
ulillillia  Offline
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 Offline
Expert
Damocles  Offline
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.

Re: Terrain Shadows - is it possible? [Re: Damocles] #88005
08/29/06 14:33
08/29/06 14:33
Joined: Nov 2005
Posts: 66
Spokane, WA, USA
Vonman Offline OP
Junior Member
Vonman  Offline OP
Junior Member

Joined: Nov 2005
Posts: 66
Spokane, WA, USA
I used to have A5 standard and static lights used to be able to create a gouraud on models, now, A6 does'nt... that totaly sucks! lol

Re: Terrain Shadows - is it possible? [Re: Vonman] #88006
08/29/06 15:28
08/29/06 15:28
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
So you are no really talking about shadows, but albedo on terrains:

A5 standard did not have Terrains,

and Models are still affected by albedo and the brightness of
the underlying BSP Block.
For a finer look, read the manual about the materials.

Re: Terrain Shadows - is it possible? [Re: Damocles] #88007
08/29/06 16:37
08/29/06 16:37
Joined: Nov 2005
Posts: 66
Spokane, WA, USA
Vonman Offline OP
Junior Member
Vonman  Offline OP
Junior Member

Joined: Nov 2005
Posts: 66
Spokane, WA, USA
What I was talking about is the gouraud on models and terrains. If I use the sunlight or static lights in A6, it iluminates the entire model or terrain like a cartoon with no gouraud. It lites the entire thing up evenly on all sides, even the sides that are'nt facing the light source.

Page 1 of 3 1 2 3

Moderated by  HeelX, rvL_eXile 

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