fixed renderabletrail class to suit for all different delta times, tropical orbits etc etc. lot of stuff to do with precision and set time intervals (pain in the ass). works clockwork.

changes to modules etc. will do more fixes soon. Incoming.
This commit is contained in:
michal
2014-10-20 16:00:38 -04:00
parent 099bcc2c9b
commit 50b4c1ec36
5 changed files with 115 additions and 86 deletions
@@ -61,14 +61,13 @@ public:
std::string _orbitVariety;
// color
glm::vec3 _c;
double _r, _g, _b;
float _r, _g, _b;
// orbit relational data
double _tropic;
double _ratio;
double _day;
float _tropic;
float _ratio;
float _day;
// need to write robust method for vbo id selection
// (right now galactic grid has to be present) (why though?) solve later...
GLuint _vaoID ;
GLuint _vBufferID ;
GLuint _iBufferID;
@@ -89,12 +88,13 @@ public:
int* _iarray;
bool _once = false;
double lightTime;
//used for update of trail
psc _pscpos, _pscvel;
double _increment;
double _time = 0;
double _oldTime = 0;
float _increment;
float _time = 0;
float _oldTime = 0;
float _dtEt;
int _delta = 0;
int _dtprogress = 0;