Gamestudio Links
Zorro Links
Newest Posts
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 5,016 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Glitching shadows and sunlight #307499
01/29/10 17:25
01/29/10 17:25
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Hi JCL,

I think there's still something pretty glitchy regarding sunlight and dynamic (but simple) shadows in the engine.

Here is one movie example of where the light on the incomming airship is flickering strangely while there is only sunlight in the level and no other lights, and when the ship moves sidewards its shadow is cut off on the level geometry (and it's even one solid block in WED, the engine just makes a cut there at building I suppose).
http://www.youtube.com/watch?v=BXzRg7NRVxM


Then there's an issue with sunlight colours after changing levels, as visible in this movie (wmv file, download 7.82 MB, accidentily left music on (at least it's happy music)):
http://www.joozey.nl/3dgs/bugs/sunlighterror.wmv

The level the movie starts in has three different colours after walking to the other levels. This is not really good.

Last edited by Joozey; 01/29/10 17:25.

Click and join the 3dgs irc community!
Room: #3dgs
Re: Glitching shadows and sunlight [Re: Joozey] #307574
01/30/10 09:15
01/30/10 09:15
Joined: Sep 2003
Posts: 938
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 938
Im very sure that this is by your level design, wrong underground for decal shadows.

http://manual.3dgamestudio.net/ent_decal.htm
http://manual.3dgamestudio.net/sun_color.htm

Decals are not cast on many objects or blocks, only on one, the exception is terrain chunks, and sun light must be set up in map properties. Just set up sun light and use terrain for the ground and not different blocks when you want to use decals for shadows. Or use other shadows. BTW your game looks very good aside from the shadows.

Re: Glitching shadows and sunlight [Re: Spirit] #307581
01/30/10 10:36
01/30/10 10:36
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Okay, I can come with the decal shadows. But the sun light is all done in map properties, nowhere else. Yet the shades change after a level change. And the changing lightning on the zeppelin is not clarified either.

And thanks for your compliment laugh.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Glitching shadows and sunlight [Re: Joozey] #308012
02/01/10 10:12
02/01/10 10:12
Joined: Jul 2000
Posts: 28,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,149
Frankfurt
Sun light and ambient are both taken from Map Properties when they are nonzero there. Otherwise they aren't changed.

Re: Glitching shadows and sunlight [Re: jcl] #308241
02/02/10 14:13
02/02/10 14:13
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
If that was true, then why do the colours differ?
I don't change the sunlight at all in script. Let alone randomly in a different shade. Furthermore the sunlight on all adjacent levels should all be the same, as they are copied levels.




Click and join the 3dgs irc community!
Room: #3dgs
Re: Glitching shadows and sunlight [Re: Joozey] #308248
02/02/10 15:02
02/02/10 15:02
Joined: Jul 2000
Posts: 28,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,149
Frankfurt
Which values have sun and ambient in your levels?

Do you set any view or dynamic light parameter?

Re: Glitching shadows and sunlight [Re: jcl] #308251
02/02/10 15:07
02/02/10 15:07
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Well when I start at that level either with or without script, the colours are properly as in the first image, if I move to another level and back, it's one of the following odd-coloured images (depending which other level you choose). So that would need to be with script I guess. Or else no second level_load. The adjacent levels seem not to inherit the proper map-properties colours either, but I have no clue why the shades differ as they do.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Glitching shadows and sunlight [Re: Joozey] #308258
02/02/10 15:53
02/02/10 15:53
Joined: Jul 2000
Posts: 28,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,149
Frankfurt
I meant the sun and ambient values in the other levels, not in the first level.

Your description sounds as if you had those values at zero in the first level. They are then set in the other levels, and stay when you go back to the first level. Thus you're ending up with different colors dependent on from which level you're coming.

Re: Glitching shadows and sunlight [Re: jcl] #308468
02/03/10 11:54
02/03/10 11:54
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
No, no level has zero sun and ambient. All levels have the same sun and ambient colors. And none of the rgb values are zero. It's also not specifically this level that suffers from varying colour shades. Starting at other levels give the same problem in that level.

Last edited by Joozey; 02/03/10 11:55.

Click and join the 3dgs irc community!
Room: #3dgs
Re: Glitching shadows and sunlight [Re: Joozey] #308472
02/03/10 12:06
02/03/10 12:06
Joined: Jul 2000
Posts: 28,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,149
Frankfurt
Ok, for making sure that it's not something with your script, please try the following script:

function main()
{
level_load("level1.wmb");
while (!key_1) wait(1);
level_load("level2.wmb");
while (!key_2) wait(1);
level_load("level1.wmb");
}

When the first level is loaded, press [1], wait until the second level is loaded, then press [2]. Has the first level now a different lighting?

Page 1 of 2 1 2

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | 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