Alien Blitz 3d: camera auto zoom, move camera with mouse, reducing contrast on textures

Camera auto zoom

Now that Alien Blitz is in 3d it is a lot easier to play with camera zooming.

So I tried to find a good way to automatically zoom the camera, I want it to zoom when in small areas and unzoom in open areas. So basically the game will compute the distance to the nearest wall in 4 direction + the current direction the player is facing, then it will take an average and zoom/unzoom smoothly accordingly.

capture_2014-07-13_09-45-56_0635_Alien_Blitz_playing_episode3_e03m03_ capture_2014-07-13_09-46-23_0973_Alien_Blitz_playing_episode3_e03m03_

So the camera will almost always be correctly zoomed in/out.

 

Move camera with mouse

I’ve added back a feature from Snorms: right click to move mouse around and view farther

A view when not clicking (and looking west):

capture_2014-07-14_12-01-24_0769_Alien_Blitz_playing_episode3_e03m02_

Same view but right clicking on the right part of the screen:

capture_2014-07-14_12-01-29_0932_Alien_Blitz_playing_episode3_e03m02_

It’s just a small feature, but it can really help, I will try to implement something similar when using a gamepad, with right stick.

Of course you can’t view very far this way, except when using a rifle or another weapon with sight.

 

Reducing contrast on textures

All textures in Alien Blitz are hand-made, I made them quite some time ago, there are a few very specific textures (doors, water, lava, poison,…) and others are generic textures.

There are 33 generic textures, all separated in different images (it’s an old format, hence the unused space) in a generic color

tex001 tex002 tex003

Then an automatic process is used to apply different colors using a palette:

palette

(the top-right object is the reference color, other objects are the different color I want)

 

A problem I have in 3d is that contrast is too strong, and when camera is moving it kinda hurts the eye, so I changed the palette file to reduce all contrasts, and regenerated the textures.

Before/after:

capture_2014-07-14_12-29-09_0745_Alien_Blitz_playing_episode3_e03m09_ capture_2014-07-14_12-47-58_0461_Alien_Blitz_playing_episode3_e03m09_

It’s better now, but it needs more tests of course. And I’d like to keep the wall textures a bit more sharp…

Comments are closed.