What I mean by that is: Can I create visible fog in an empty level (level_load("");)? In level there are right now only a plane and a skybox entities.
I'd like to see fog from a distance. When I change camera position I can only see the difference due to fog on plane model.

Any idea how to solve it?

Code:
#include <acknex.h>
#include <default.c>
/////////////////////////////////////////////


ENTITY* tegelane;
ENTITY* sky;

function main()
{
	video_mode = 7;
	level_load(""); //Loome tühja maailma
   
	sky = ent_createlayer("skycube+6.tga",SKY | CUBE | VISIBLE,1); //Loome taevapildi
	tegelane = ent_create("mig.mdl", vector(0,0,0), NULL);
	//wait(1);
	//c_setminmax(tegelane);
	wait(2);
	while (tegelane == NULL) wait(1); //Ootame kuni tegelane on loodud
	
camera.fog_start = 100; //.8 * camera.clip_far; // fog starts at 80% of clip range
   camera.fog_end = 500; // total foggy at 90% of clip range
   fog_color = 3;
   
   camera.x = tegelane.x - 267;
   camera.y = tegelane.y;
   camera.z = tegelane.z + 112;
   camera.tilt = -10;
   
}


Last edited by Crypton; 12/22/08 21:06.

New into Gamestudio and eager to learn it..
Stuff and games done in 2D: LINK