Weather Effects?

View previous topic View next topic Go down

Weather Effects?

Post by croxxx on Sun Aug 07, 2011 8:32 am

As it's currently raining outside I got the idea that weather effects would be a very nice feature.
Possible weather effects: rain, snow, fog, smog? (like fog but grey not white).
Is it possible to implement these?

Greets,
croxxx

croxxx

Posts : 43
Join date : 2011-03-24

View user profile

Back to top Go down

Re: Weather Effects?

Post by Slaihne on Sun Aug 07, 2011 9:22 am

I plan on having weather effects; namely rain and snow. I have no real plans for fog or smog, more because i don't have a good handle on how to implement them in this type of world (completely destructable).

But i'll keep them in mind. I'm currently working on a change over to deferred rendering since i have a couple of ideas for proper dynamic lighting (moving, pulsing) that require this. Maybe this will also yield some ability for fog / smog.
avatar
Slaihne

Posts : 264
Join date : 2011-03-17
Age : 50

View user profile

Back to top Go down

Re: Weather Effects?

Post by croxxx on Sun Aug 07, 2011 9:46 am

Nice to hear that it is planned!
BTW: the "simple glass" block has a bug: light doesn't come through...

Greets,
croxxx

croxxx

Posts : 43
Join date : 2011-03-24

View user profile

Back to top Go down

Re: Weather Effects?

Post by Slaihne on Sun Aug 07, 2011 10:02 am

Oops, I forgot to tick a flag for that one then.

If you want to fix it on your setup find the BLOCKS.XML file, it should be on the following path below your install..

assets\gfx\block\Solid

Open it up in notepad and then scroll down toward the bottom, you should see a section like so (i've marked the change you need to make)...

<dtBlocks>
<name>windowplain</name>
<r>0</r>
<g>0</g>
<b>0</b>
<NoiseTexNo>0</NoiseTexNo>
<trans>1</trans>
<burnable>0</burnable>
<diggable>1</diggable>
<solidtoplayer>1</solidtoplayer>
<solidtoliquid>1</solidtoliquid>
<solidtosun>0</solidtosun>
<solidtoprop>1</solidtoprop> ****<--- change this from 1 to 0
<topface>windowplain</topface>
<bottomface>windowplain</bottomface>
<leftface>windowplain</leftface>
<rightface>windowplain</rightface>
<frontface>windowplain</frontface>
<backface>windowplain</backface>
<etopface />
<ebottomface />
<eleftface />
<erightface />
<efrontface />
<ebackface />
</dtBlocks>

You can also monkey around with things like the RGB values to make the block emit light (or any other block).

The flag i've marked is SOLIDTOPROP, a 1 means that the block is solid to propogated light. The block will let sunlight shine directly through it because of the SOLIDTOSUN = 0 (if it were part of a ceiling etc) but will block light that is propogated (colored lights and sunlight that is not direct).
avatar
Slaihne

Posts : 264
Join date : 2011-03-17
Age : 50

View user profile

Back to top Go down

Re: Weather Effects?

Post by croxxx on Sun Aug 07, 2011 11:03 am

Ahh, thanks!
Erm - I just discovered that you can hear water drippling sounds in buildings...
Is that a bug?

Greets,
croxxx

croxxx

Posts : 43
Join date : 2011-03-24

View user profile

Back to top Go down

Re: Weather Effects?

Post by Slaihne on Wed Aug 10, 2011 7:50 am

Not really a bug, just a consequence of a basic implementation of an underground detection routine Smile

Either that or you got a leak in your building Wink
avatar
Slaihne

Posts : 264
Join date : 2011-03-17
Age : 50

View user profile

Back to top Go down

Re: Weather Effects?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum