Remember me
Welcome, Guest
Username: Password: Remember me

TOPIC: fog effect

fog effect 5 years 7 months ago #1665

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
hi I need to put a game a fog effect why it turns out that to optimize the performance of the game, the maximum view of the camera will leave it in 6000, but the bad thing is that the part that is not rendered is a blank box, Then will there be any way to put a fog effect so that you do not notice that white box?
The administrator has disabled public write access.

fog effect 5 years 7 months ago #1667

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
Hello,
There was a fog effect in our engine for a time ago but we didn't expose it until now.
We have revealed this feature in the beta version and we will promote it production after some testings.
You can play with it in the beta version:
www.gamemaker3d.com/editor/beta.html
You will see a few new parameters under Material, Terrain, and Water:
Enable Fog
Fog Color
Fog Min Distance
Fog Max Distance

In order to enable the fog in your scene, enable it for all the relevant materials.
If you have a terrain or water, you should enable the fog in them too.

About the performance, unless you have hardware acceleration, the distance should affect the performance that much.
In order to increase the performance, try the following steps:
1. Merge all the static primitives in your game using the Merge command
2. Use as fewer collisions and polygon collision as possible
3. Use as fewer water objects as possible
4. Build your own fake camera controller because the first person camera controller is very slow.
You can still use the Camera Controller without collision and add the code for the fake camera controller. Here is an example:
www.gamemaker3d.com/player?pid=016130

Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: GODEBEX

fog effect 5 years 7 months ago #1668

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
wow I love this effect, it's okay if I build my game from the beta?
The administrator has disabled public write access.

fog effect 5 years 7 months ago #1669

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
Yes, you can work with the beta until we release it to production.
Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: GODEBEX

fog effect 5 years 7 months ago #1670

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
a question, because when I export in the beta of cyberix in windows, the game is not with the effects of fog, is it normal for it to be a beta or an error?
The administrator has disabled public write access.

fog effect 5 years 7 months ago #1671

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
Hello,
The fog feature will be available for windows and android in the final version.
Regards,
Cyberix3D team
The administrator has disabled public write access.

fog effect 5 years 7 months ago #1674

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
Hello,
Eventually, we decided to take a different approach for the fog effect.
Now the fog behaves like a light. There is a new "Fog" command under the light commands.
There is also a new fog parameter in material, terrain, and water.
In order to add fog, you need to press on the new fog parameter, and choose an existing fog or add a new one.
Here is an example:
www.gamemaker3d.com/player?pid=01642203
With the new approach, it is easy to switch fogs. Here is another example:
www.gamemaker3d.com/player?pid=01642204
The fog is already available in production, both for the web and exe export.
The fog is not supported in android due to our 3d engine limitations.
Regards,
Cyberix3D team
Last Edit: 5 years 7 months ago by cyberix3d.
The administrator has disabled public write access.
The following user(s) said Thank You: GODEBEX

fog effect 5 years 7 months ago #1676

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
wow, it's amazing, now if I can create a good game with cyberix, thank you! I will wait later when they have time the new updates of the engine graphics to urho :lol:
The administrator has disabled public write access.
Time to create page: 0.092 seconds