CommonRain.h

00001 
00003 //
00004 //              Realistic rain real-time simulation program
00005 //
00006 //              Pierre Rousseau
00007 //
00009 //
00010 //              Global definitions
00011 //
00013 
00014 
00015 
00016 #ifndef __COMMON_RAIN__
00017 #define __COMMON_RAIN__
00018 
00019 
00023 
00024 // currently incompatible with STREAKS or LIGHT_EXTENSION :
00025 //#define SNOW
00026 
00027 #ifndef SNOW
00028 //#define STREAKS
00029 
00030 #define LIGHT_EXTENSION
00031 #endif
00032 
00033 
00037 // size of the "render to texture" : if using frame buffer copy, must be less than the frame buffer size
00038 #define RTTSIZE 512
00039 
00040 #define _PI 3.1415926535
00041 #define FOVyCam (_PI/3.0)
00042 #define FOVyRtt (15.0 * _PI / 18.0)
00043 
00044 // arbitrary unit = 0.1m
00045 #define HAUTEUR_OBSERVATEUR 18.0
00046 
00047 
00048 
00053 
00054 
00055 #define PARTICLE_POSITION_TEXTURE_NAME          "floating_point_RTT_ping"
00056 #define PARTICLE_POSITION_BACKUP_TEXTURE_NAME   "floating_point_RTT_pong"
00057 #define PARTICLE_POSITION_INIT_TEXTURE_NAME     "floating_point_initializer"
00058 
00059 #define STATIC_GEOMETRY_NAME    "billboards_in_vertex_buffer"
00060 
00061 
00062 #define LIGHT_INFO_TEXTURE_NAME         "light_information_texture"
00063 
00064 #define BILLBOARD_MESH_NAME             "cloned_manual_mesh"
00065 
00066 #define RAIN_MATERIAL_NAME              "rain_system_material"
00067 
00068 #define REFRACT_RTT_NAME                "refract_rtt"
00069 
00070 
00071 #define PARTICLES_MIN_X         -2000
00072 #define PARTICLES_MAX_X          2000
00073 #define PARTICLES_MIN_Y           -10
00074 #define PARTICLES_MAX_Y           100
00075 #define PARTICLES_MIN_Z         -2000
00076 #define PARTICLES_MAX_Z          2000
00077 
00078 
00079 
00080 #define VIS_PARTICLE_BOX_MIN_X          -50
00081 #define VIS_PARTICLE_BOX_MAX_X           50
00082 #define VIS_PARTICLE_BOX_MIN_Y          -20
00083 #define VIS_PARTICLE_BOX_MAX_Y           80
00084 #define VIS_PARTICLE_BOX_MIN_Z          -50
00085 #define VIS_PARTICLE_BOX_MAX_Z           50
00086 
00087 
00088 #endif // __COMMON_RAIN__

Generated on Wed May 17 16:55:30 2006 for gametools-rain by  doxygen 1.4.6