HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Distance-Light JASS

01-30-2005, 04:43 PM#1
Tim.
Okay, for my map I have the camera far above the terrain looking straight down. The problem with this is the terrain is now darkened due to the distance. Is there a way using JASS or otherwise to compensate for the darkening?
01-30-2005, 09:59 PM#2
Tabris
Quote:
Originally Posted by Tim.
Okay, for my map I have the camera far above the terrain looking straight down. The problem with this is the terrain is now darkened due to the distance. Is there a way using JASS or otherwise to compensate for the darkening?

well you post the same question in the trigger forum... But with both tools, i don't see ( ^_^ ) what you can do for that. I would say change your gamma setting but it isn't a ingame functions... So that player need to do that each times they want to play your map is a bit ... stupid... yeah, that's the word! ^_^


or you can have a normal camera and reduce units size..... it is like have a very high camera (but not for the terrain..... )
01-31-2005, 05:21 PM#3
Tim.
Indeed I did in hopes of finding somone with an idea.

Also, I considered reducing unit size...however my terrain wont allow me to do that :( . I need it to be the way ive made it....

Any other ideas?

EDIT:

Is there a way to change the gamma setting automatically using JASS, and then restting it at game end? (Note: I can make the options menu inactive, so they must use a diolouge box to exsit the map...giving me a chance to cancel the gamma adjustment...)
01-31-2005, 07:04 PM#4
curi
make sure fog is off
01-31-2005, 07:19 PM#5
Tim.
Heh, Im not that dumb.
01-31-2005, 09:57 PM#6
iNfraNe
if fog is really of, then u must mean the "black layer" that comes over the screen. You should change the cameras Far Clipping. Max is 10000 Ithink... at least.. for cameras as in preplaced cameras it is max. Maybe not with the trigger, anyway, this should prolly solve your problem.

And just to make things clear
Quote:
Is there a way to change the gamma setting automatically using JASS, and then restting it at game end? (Note: I can make the options menu inactive, so they must use a diolouge box to exsit the map...giving me a chance to cancel the gamma adjustment...)

no, jass is not some mystical thing that can do all things you are limited to in triggering. Actually, all you can do in jass (with local variables excluded), can be done in gui triggers aswell, it is just less effecient.
01-31-2005, 10:11 PM#7
Tim.
Farclipping is at max...and it still is darkened.

Im well aware of how JASS works and its basic limitations. I was simply curious if it was able to access the current local settings.

Attached screenshot shows the issue. (Top=In game, Bottem=In WE)

It should look almost identical in both...However it clearly does not.
02-04-2005, 04:17 PM#8
Guest
There are variables in blizzard.j that specify the minimum and default FarZ, but nowhere does either that file or common.j mention a max FarZ, which leads me to believe that it is hard coded and not possible to easily change. Maybe it's possible to configure a camera filter with the right blend mode in such a way as to brighten the view, but I'm not very hopeful about that either. In any event are you sure that you can't scale your terrain down? It looks (awesome by the way) like it could easily be quite small, but maybe it already is. Anyways, if you can't scale the terrain because the tilesize prevents it, maybe you could use blank tiles and make the terrain out of doodads. That's what I'd probably do, in the first place you can then scale it to pretty much any size you want, and in the second because it'll probably look better anyway.
02-04-2005, 04:39 PM#9
iNfraNe
that on the picture looks like the automatic normal fog in the map. Try to use fog which starts at 99999999999 and stops at 9999999999999999999999999 with density 0.00, it will prolly solve the problem.
02-04-2005, 05:28 PM#10
curi
clipping makes things disappear entirely, it can't make them dark.
02-04-2005, 07:29 PM#11
Vexorian
You can make some use of filters and fog effects
02-04-2005, 09:33 PM#12
Tim.
Toot, I owe ya big time. Great idea. Works great now. I never knew that there was a default fog...Hmm, guess you learn somthing new everyday. Nevertheless, thanks loads!