Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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