Objects not using the fog?

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Objects not using the fog?

Postby Aloys » Sat Nov 03, 2007 10:06 am

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?
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Objects not using the fog?

Postby Paradox » Sat Nov 03, 2007 10:47 am

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 :)
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Objects not using the fog?

Postby Aloys » Sat Nov 03, 2007 11:50 am

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
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Objects not using the fog?

Postby Pryftan » Sat Nov 03, 2007 12:45 pm

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
User avatar
Pryftan
 
Posts: 312
Joined: Fri Sep 28, 2007 10:17 pm

Re: Objects not using the fog?

Postby Nadnerb » Sat Nov 03, 2007 4:25 pm

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
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Objects not using the fog?

Postby Paradox » Sat Nov 03, 2007 4:33 pm

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
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Objects not using the fog?

Postby Aloys » Sat Nov 03, 2007 4:45 pm

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..
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Objects not using the fog?

Postby Paradox » Sat Nov 03, 2007 5:20 pm

That's exactly the button that we used :P
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron