Gamestudio Links
Zorro Links
Newest Posts
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 (AndrewAMD), 1,089 guests, and 2 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
WMB compiler ignores ambient color (when 0 lightsources) #370096
05/10/11 22:18
05/10/11 22:18
Joined: Mar 2010
Posts: 75
YellowAfterlife Offline OP
Junior Member
YellowAfterlife  Offline OP
Junior Member

Joined: Mar 2010
Posts: 75
Reproducing the problem:
1. Create a level in WED.
2. Set sunlight to {0, 0, 0}, ambient to {127, 127, 127} (or other value)
3. Build & Run - the level is entirely black, even while there is ambient lighting.
4. Add a single lightsource to level. It does not matter what parameters and position it will have.
5. Build & Run - the level works as expected now.
Conclusion:
Map compiler decides that if there are not lightsources, level does not need lightmap calculation. But that's not right, because there is ambient lighting.


Unfortunately, I've not worked with 3dGS for a while now, but it was fun
Re: WMB compiler ignores ambient color (when 0 lightsources) [Re: YellowAfterlife] #370199
05/11/11 15:36
05/11/11 15:36
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
have you tried using (1, 1, 1) as sunlight?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: WMB compiler ignores ambient color (when 0 lightsources) [Re: painkiller] #370201
05/11/11 15:46
05/11/11 15:46
Joined: Mar 2010
Posts: 75
YellowAfterlife Offline OP
Junior Member
YellowAfterlife  Offline OP
Junior Member

Joined: Mar 2010
Posts: 75
Originally Posted By: painkiller
have you tried using (1, 1, 1) as sunlight?
Sun color vector less than (3, 3, 3) is ignored. And using (3, 3, 3) already defeats the point of not using sun.
As I've mentioned in first post, currently I'm using a 'dummy' light object.
The point is, that if there are no bugs, you do not need to use 'sideways' to overcome them.


Unfortunately, I've not worked with 3dGS for a while now, but it was fun
Re: WMB compiler ignores ambient color (when 0 lightsources) [Re: YellowAfterlife] #370296
05/12/11 09:32
05/12/11 09:32
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You can read up in the manual about the special meaning of the sun color ( 0,0,0 ).


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