Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 01c693d6 authored by pitiot's avatar pitiot
Browse files

up

parent 751d182a
......@@ -1082,6 +1082,7 @@ void EnvMap::coarse()
map.setCurrentLevel(fLevel - 1) ;
}
neighborAgentvect[old].clear() ;
// TODO Check with optimisation
......
......@@ -35,7 +35,7 @@ SocialAgents::SocialAgents(unsigned int config, unsigned int minSize, unsigned i
frames(0),
nextUpdate(0),
simulator(config, minSize, nbAgent, nbObst, resolution),
render_anim(false),
render_anim(true),
drawEnvLines(false),
drawEnvFaces(true),
drawEnvTopo(false),
......@@ -64,7 +64,7 @@ SocialAgents::SocialAgents(unsigned int config, unsigned int minSize, unsigned i
void SocialAgents::initGUI()
{
setDock(&dock) ;
dock.check_timer->setChecked(render_anim);
dock.check_drawEnvLines->setChecked(drawEnvLines) ;
dock.check_drawEnvFaces->setChecked(drawEnvFaces) ;
dock.check_drawAgents->setChecked(drawAgents) ;
......@@ -675,7 +675,7 @@ void SocialAgents::cb_redraw()
struct timespec realTime ;
clock_gettime(CLOCK_MONOTONIC, &realTime) ;
time_t elapsedTime = realTime.tv_sec - startTime.tv_sec ;
if(nbIterations == maxIterations -1) CGoGNout << "temps mis pour "<<maxIterations<< " : "<< elapsedTime<<CGoGNendl;
if (elapsedTime >= nextUpdate)
{
// Sortie des stats pour analyse externe
......@@ -829,6 +829,7 @@ void SocialAgents::animate()
nbIterations++ ;
if (maxIterations > 0 && nbIterations > maxIterations)
{
// std::cout << "t : " << simulator.globalTime_ << std::endl ;
timer->stop() ;
exit(0) ;
}
......@@ -955,19 +956,19 @@ void SocialAgents::animate()
VEC3 camLook(0, 0, 0) ;
if(nbIterations%2==0)
{
exportScenePov(simulator.envMap_.map,simulator.envMap_.position,chaine,camPos,camLook,VEC3(0.0f,0,0),0,0,0);
// exportScenePov(sim.envMap_.map,sim.envMap_.position,chaine,VEC3(43,762,65),VEC3(0,762,0),VEC3(1.0f,0,0),0,0,0);
// exportScenePov(sim.envMap_.map,sim.envMap_.position,chaine,VEC3(43,762,65+(1500.0f*float(nbGenerated)/400.0f)),VEC3(0,762,0),VEC3(1.0f,0,0),0,0,0);
nbGeneratedPov++;
}
if (nbIterations >= 20000)
{
std::cout << "enough .pov generated" << std::endl ;
exit(0) ;
}
// if(nbIterations%2==0)
// {
// exportScenePov(simulator.envMap_.map,simulator.envMap_.position,chaine,camPos,camLook,VEC3(0.0f,0,0),0,0,0);
// // exportScenePov(sim.envMap_.map,sim.envMap_.position,chaine,VEC3(43,762,65),VEC3(0,762,0),VEC3(1.0f,0,0),0,0,0);
// // exportScenePov(sim.envMap_.map,sim.envMap_.position,chaine,VEC3(43,762,65+(1500.0f*float(nbGenerated)/400.0f)),VEC3(0,762,0),VEC3(1.0f,0,0),0,0,0);
// nbGeneratedPov++;
// }
//
// if (nbIterations >= 20000)
// {
// std::cout << "enough .pov generated" << std::endl ;
// exit(0) ;
// }
}
#endif
......@@ -1579,7 +1580,7 @@ int main(int argc, char** argv)
sa.initGUI() ;
sa.show() ;
// if (argc > 1)
// sa.timer->start() ;
sa.timer->start() ;
return app.exec() ;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment