“Hola!, this is Pablo..”, that’s the first thing I say in this video that tries to explain a couple of effects I came up with the last week, playing around with shading nodes in real time.
The thing was that Mist option is still not supported in GLSL, how can I work around this?, Nodes! the great “Camera Data” is an input node that let you use information from the camera view to play with, such as the View Vector, View Z Depth, and View Distance (which is the one i’m using in this video). After playing for a while, I found out that this method was much more better than the boring Mist!
I ended up using this method for effects such as:
MultiColor Mist: Color in front of the camera is more peachy, slightly noticeable, then more far away is a bit orange/red, and veery far away the color tries to mix with the sky.
SunRays: Just planes with a bright alpha texture, the trick is made by the View Distance factor of the camera, changing the alpha to zero when you get close to them, or far away from them (you don’t want to always see sunrays).
ChangeAlpha: for walking through trees leaves in a way that they don’t block the view, they have a node setup that makes them alpha zero when they get close to the camera, so you can see through.
Just one and a half weeks since we started using the bge, and the progress has been insane. There’s way too much for one post.
GLSL is now integrated in the BGE, just enable it in the game menu to preview it in the 3d view, and it’ll look exactly the same when you press P. Support for nodes, multiple uv layers, all blending modes, stencil maps for splatting, color ramps for that precious falloff, and much more. One more week like this and my grin will be permanent.
Ever wanted shape keys to work in the game engine? Well support for shape keys has been added! There’s a brand new actuator called “Shape Action”. Grab yourself an apricot build and go nuts. And there’s been some really impressive speedups to the game engine. Just enable “Vertex Arrays” in your preferences and “Generate Display Lists” from the game menu for the fastest performance. Our test scene gets almost twice the frame rate. The devs helping us are really doing amazing things.. Things are really progressing quickly.
Have a look at our latest demo from the BGE, showing some new gameplay and playing with new features like glsl. Most of the main actions for Frankie have been added, plus a small environment to play around in while we work on the world for the game. Things are getting really exciting around here. We’ll post more progress this weekend, and, if anyone is interested, we may be looking for help soon. More info on that later. Of course one really big way to help this project is to pre-order the DVD!.