Commit de364d2c authored by Arash HABIBI's avatar Arash HABIBI

debandade

parent 2005f081
This diff is collapsed.
This diff is collapsed.
# This file uses centimeters as units for non-parametric coordinates.
mtllib limace_sol.mtl
g default
v -2.000000 -4.000000 0.000000
v 2.000000 -4.000000 0.000000
v -2.000000 -3.000000 0.000000
v 2.000000 -3.000000 0.000000
v -2.000000 -2.000000 0.000000
v 2.000000 -2.000000 0.000000
v -2.000000 -1.000000 0.000000
v 2.000000 -1.000000 0.000000
v -2.000000 0.000000 0.000000
v 2.000000 0.000000 0.000000
v -2.000000 1.000000 0.000000
v 2.000000 1.000000 0.000000
v -2.000000 2.000000 0.000000
v 2.000000 2.000000 0.000000
v -2.000000 3.000000 0.000000
v 2.000000 3.000000 0.000000
v -2.000000 4.000000 0.000000
v 2.000000 4.000000 0.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 0.125000
vt 0.000000 0.125000
vt 1.000000 0.250000
vt 0.000000 0.250000
vt 1.000000 0.375000
vt 0.000000 0.375000
vt 1.000000 0.500000
vt 0.000000 0.500000
vt 1.000000 0.625000
vt 0.000000 0.625000
vt 1.000000 0.750000
vt 0.000000 0.750000
vt 1.000000 0.875000
vt 0.000000 0.875000
vt 1.000000 1.000000
vt 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
s 1
g pPlane1
usemtl bakedSG2
f 1/1/1 2/2/2 4/3/3 3/4/4
f 3/4/4 4/3/3 6/5/5 5/6/6
f 5/6/6 6/5/5 8/7/7 7/8/8
f 7/8/8 8/7/7 10/9/9 9/10/10
f 9/10/10 10/9/9 12/11/11 11/12/12
f 11/12/12 12/11/11 14/13/13 13/14/14
f 13/14/14 14/13/13 16/15/15 15/16/16
f 15/16/16 16/15/15 18/17/17 17/18/18
# This file uses centimeters as units for non-parametric coordinates.
mtllib mexicain_sol.mtl
g default
v -9.000000 -9.000000 0.000000
v 9.000000 -9.000000 0.000000
v -9.000000 9.000000 0.000000
v 9.000000 9.000000 0.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 1.000000
s off
g pPlane1
usemtl baked_surfaceShader1SG_pPlane1SG
f 1/1/1 2/2/2 4/3/3 3/4/4
This diff is collapsed.
...@@ -56,7 +56,8 @@ void MovingMesh::initGL() ...@@ -56,7 +56,8 @@ void MovingMesh::initGL()
m_texture = new Utils::Texture<2,Geom::Vec3uc>(GL_UNSIGNED_BYTE); m_texture = new Utils::Texture<2,Geom::Vec3uc>(GL_UNSIGNED_BYTE);
if (m_texture->load("./meshRessources/limace.png")) // if (m_texture->load("./meshRessources/limace.png"))
if (m_texture->load("./meshRessources/scenario3/limace_occ.png"))
m_texture->update(); m_texture->update();
else else
std::cout << "problem : loading texture" << std::endl; std::cout << "problem : loading texture" << std::endl;
......
...@@ -849,7 +849,8 @@ void Simulator::addMovingObstacle(Dart d, unsigned int obstType) ...@@ -849,7 +849,8 @@ void Simulator::addMovingObstacle(Dart d, unsigned int obstType)
break; break;
case 1 : case 1 :
{ {
mm = new MovingMesh(envMap_, d, "./meshRessources/LimaceLvl1.obj"); mm = new MovingMesh(envMap_, d, "./meshRessources/scenario3/limace_occ.obj");
// mm = new MovingMesh(envMap_, d, "./meshRessources/LimaceLvl1.obj");
// mm = new MovingMesh(envMap_, d, "./meshRessources/cylinder.obj"); // mm = new MovingMesh(envMap_, d, "./meshRessources/cylinder.obj");
// mm = new MovingMesh(envMap_, d, "./meshRessources/simpleCyl.obj"); // mm = new MovingMesh(envMap_, d, "./meshRessources/simpleCyl.obj");
movingMeshes_.push_back(mm); movingMeshes_.push_back(mm);
......
...@@ -367,6 +367,7 @@ void SocialAgents::initRendering() ...@@ -367,6 +367,7 @@ void SocialAgents::initRendering()
#ifdef EXPORTING_OBJ #ifdef EXPORTING_OBJ
std::vector<std::string> attrNames ; std::vector<std::string> attrNames ;
// m_objAgent.import("./meshRessources/scenario3/mexicain_occ.obj",attrNames);
m_objAgent.import("./meshRessources/Mexicainlowres2.obj",attrNames); m_objAgent.import("./meshRessources/Mexicainlowres2.obj",attrNames);
// m_objAgent.import("./meshRessources/Mexicainhighres.obj",attrNames); // m_objAgent.import("./meshRessources/Mexicainhighres.obj",attrNames);
positionAgent = mapAgent.getAttribute<VEC3, VERTEX>(attrNames[0]) ; positionAgent = mapAgent.getAttribute<VEC3, VERTEX>(attrNames[0]) ;
...@@ -390,6 +391,7 @@ void SocialAgents::initRendering() ...@@ -390,6 +391,7 @@ void SocialAgents::initRendering()
// if (m_textureAgent->load("./meshRessources/sombrero2lowres_grp.png")) // if (m_textureAgent->load("./meshRessources/sombrero2lowres_grp.png"))
if (m_textureAgent->load("./meshRessources/sombrero2_grp.png")) if (m_textureAgent->load("./meshRessources/sombrero2_grp.png"))
// if (m_textureAgent->load("./meshRessources/scenario3/mexicain_occ.png"))
m_textureAgent->update(); m_textureAgent->update();
else else
std::cout << "problem : loading texture" << std::endl; std::cout << "problem : loading texture" << std::endl;
......
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