Objects not using the fog?

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.
Post Reply
User avatar
Aloys
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
MOULa KI#: 0
Location: France (GMT +1)
Contact:

Objects not using the fog?

Post by Aloys »

I'm trying to find whether there's a way for some objects to be excluded from the fog, that is: to appear as if there had no fog on top of them whatever the distance from the camera. That would be very usefull to efficiently draw far away objects like sky and backdrops.. Because as of now we have no way of having a far-away backdrop and a fog at the same time because the sky is affected and it doesn't look good. :(

(You can see that often in other games like in WoW for instance. See this screenshot. Notice how the mountains are greyed out by the fog but the sky behind is perfectly clear?)

I'm worried because I haven't seen that anywhere in Uru, but I hoped someone might have an idea?.. Maybe a shader effect or a special flag?
Paradox
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada
Contact:

Re: Objects not using the fog?

Post by Paradox »

Well, I went at looked at some of the flags. The Material State has two Shader flags:

kShadeNoFog
kShadeReallyNoFog

I'm thinking that one of these (or better yet a combination of both) will achieve the affect that you want... I will do an experiment today and see what happens :)
User avatar
Aloys
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
MOULa KI#: 0
Location: France (GMT +1)
Contact:

Re: Objects not using the fog?

Post by Aloys »

That would be totally awesome if you could do that! :)
That means the larger Ages could now use fog and have more atmosphere, that'd be great.
User avatar
Pryftan
Posts: 312
Joined: Fri Sep 28, 2007 10:17 pm
MOULa KI#: 0
Contact:

Re: Objects not using the fog?

Post by Pryftan »

Yeah, that'd be really useful to be able to do.. I've been having these same problems with the sky and water in Tromegahl becoming invisible too fast if I set the fog to something that works for most of my objects.
.rilvoohee vehrehnehm vokan pam mahnshootahv rub voohee taygahnehm mahtahntahv
Nadnerb
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
MOULa KI#: 23247
Location: US (Eastern Time)
Contact:

Re: Objects not using the fog?

Post by Nadnerb »

This effect is used quite clearly in Minkata. So no worries as far as that goes. Now we just have to see how long it will take to get it incorporated into the tools. :)
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Paradox
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada
Contact:

Re: Objects not using the fog?

Post by Paradox »

It will be in the next release of PyPRP, and is already working properly in my development copy.

Trylon is working on some more fixes to the material code, the region code, and the camera code; so expect a commit sometime in the near future. :D
User avatar
Aloys
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
MOULa KI#: 0
Location: France (GMT +1)
Contact:

Re: Objects not using the fog?

Post by Aloys »

Haha great work! I don't think I've ever seen something implemented so quickly. :p
Then you can expect Ahra Pahts to have a nice subtle fog as soon as the new plugin is available. :)
The Material panel has a 'No Mist' button that can't wait to be used..
Paradox
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada
Contact:

Re: Objects not using the fog?

Post by Paradox »

That's exactly the button that we used :P
Post Reply

Return to “Scripting”