Upbge: world settings

Created on 24 Jan 2020  路  12Comments  路  Source: UPBGE/upbge

hi guys ,
I'm trying to reproduce the world setup and lights configurations of the last upbge 0.2.9b in upbge 0.3.0 alpha.
I have made a little playground.

this is the world sahder
Immagine_2

this is the final resoult
Immagine_1

this is the demo for the community if anyone want to try it, hope you like it.
upbge030_suzanne_playground.zip

Resource

Most helpful comment

the file is free to download. You can find it in my previous comment. The logic to animate the clouds is under the world object (the world is an empty object)

All 12 comments

Cool! Thanks for sharing. It should be easy to animate with a small python script. I'll give a try now

I'm not an expert in environment lights, if you want to improve the setup, we can use it as default in the next release of upbge

Sans titre

It works really well, very nice for realtime!

a gif recorded at 15fps
voiture

With a little bit of work , we can integrate a basic day night cycle and some cool effect. I can't figure out how to reproduce a decent mist effect. Maybe with the volume shader, i don't know

maybe with input camera node you can get the distance to camera

Omg, you are right.

I'ts not a real upgrade but i have added a sun
Immagine_3

A little bit of mist visible at 100m to the camera
Immagine_4

And setting the camera lens to 20mm for remove the fisheye effect.

The Third step must be the sun animation and change sky color dynamically

Upgrade

  • Added a sky dome with clouds
  • Script to animate the clouds (Thanks to @youle31 )
  • script to animate the sun (and the sun lamp) according to the hours spent in the game

upbge030_suzanne_playground.zip

https://youtu.be/UUBEwuJWO6E

a gif recorded at 15fps
voiture

How did you get it to animate? What logic(If any) did you use?

the file is free to download. You can find it in my previous comment. The logic to animate the clouds is under the world object (the world is an empty object)

Hi,
I move this to https://github.com/UPBGE/upbge/discussions under Resources to better organization. Thanks.

Was this page helpful?
0 / 5 - 0 ratings