// Ruta del modelo ...
mesaPath = "Data/Models/mesa08.obj";
sillaPath = "Data/Models/silla06.obj";

quadPath = "Data/Models/quad.obj";
blendQuadPath = "Data/Models/blendQuad.obj";
cubePath = "Data/Models/cube.obj";

/*
// Prueba de arbol de scena para utizar el clone function
m = Model(cubePath);
scene = Group(
			Group(rotate(0, 0, 1, 0), translate(-2, 0, 0), m),
			Group(translate(2, 0, 0), clone(m))
		);
// //
*/


/*
// Definicion del arbol de escena inicial
scene = 
	Group(
		translate(0, -1, -0.5),
		rotate(-90, 1, 0, 0),
		Group(
			scale(0.5, 0.5, 0.5),
			Group(translate(2, 2, -0.5), Model(cubePath)),
			Group(translate(3, 2.5, -0.5), Model(cubePath)),
			Group(translate(2.3, 2.2, 0.5), Model(cubePath))
		),
		Group(translate(0, 0, -0.5), scale(4, 4, 1), Model(quadPath)),
		Group(
			translate(-0.5, -0.5, 0),
			//rotate(180, 0, 0, 1),
			Model(sillaPath)
		),
		Group(
			translate(-0.5, -0.5, 0),
			Group(translate(1, 1, -0.125), Model(mesaPath)),
			Group(translate(0, 1, -0.05), rotate(45, 1, 0, 0), Model(mesaPath)),
			Group(translate(1, 0, -0.125), Model(mesaPath))
		)
	);
*/
/*
simuladorPath = "Data/Models/simulador.obj";
simulador2Path = "Data/Models/simulador2.obj";

scene =	
	Group(
		Group(translate(0, 0, -0.2), scale(4, 4, 1), Model(quadPath)),
		Model(simulador2Path)
	);
*/

/*
// Scena para probar la deteccion de colisiones
scene = Group(
			Model(cubePath),
			//Group(translate(0, 0, 0), Model(cubePath))
			Group(
				translate(1, 0.5, 0),
				rotate(90, 1, 0, 0),
				rotate(-45, 0, 1, 0),
				rotate(45, 0, 0, 1),
				Model(cubePath)
			)
		);
*/

/*
// Prueba modificando el arbol
scene = Group(rotate(0, 0, 1, 0), Model(cubePath));

rotateTest() {
  x = scene.get(0).getAngle();
  scene.get(0).setAngle(x + 1);
}

main() {
  Timer(10, -1, rotateTest(), rotateTest());
}
*/
// Otras scenas	
/*
scene = 
	Group(
		Group(translate(1, 1, -0.1), scale(0.5, 0.5, 0.5), Model(cubePath)),
		Group(scale(3, 3, 1), translate(0, 0, -0.4), Model(quadPath)),
		Group(
			translate(-0.5, -0.5, 0.1),
			rotate(180, 0, 0, 1),
			Model(sillaPath)
		),
		Group(
			translate(-0.5, -0.5, 0),
			Group(translate(1, 1, 0), Model(mesaPath)),
			Group(translate(0, 1, 0), rotate(45, 1, 0, 0), Model(mesaPath)),
			Group(translate(1, 0, 0), Model(mesaPath))
		)
	);
*/

/* // Scene para simular refleccion
scene = 
	Group(
		Group(
			rotate(-90, 1, 0, 0),
			scale(4, 4, 1),
			Model(blendQuadPath)
		),
		Group(
			translate(0, 0.5, 0),	 
			Model(cubePath)
		),
		Group(
			translate(0, -0.5, 0),	 
			//scale(1, -1, 1),
			Model(cubePath)
		)	
	); 
*/

/*
scene = Group(rotate(0, 0, 1, 0), Model(cubePath));
//scene = Group(Model(mesaPath));
//scene = Group(Model("Data/Models/apple.obj"));
//scene = Group(Model("Data/Models/pinin.obj"));

rotateTest() {
  //print("hola");
  //x = scene.get(0).getX();
  //scene.get(0).setX(x + 0.1);
  x = scene.get(0).getAngle();
  scene.get(0).setAngle(x + 1);
}

main() {
  //print(Group(translate(0, 0, 0), translate(0, 0, 0)).size());
  //t = translate(5, 3, 2);
  //t.setX(10);
  //print(t.x); print(t.y); print(t.z);
  Timer(10, -1, rotateTest(), rotateTest());
}

*/


/* // Definicion previa de la escena ...
object Data/Models/mesa08.obj
translate 1 1 0
castShadows
object Data/Models/mesa08.obj
translate 0 1 0
rotate 45 1 0 0
//scale 1.5 1.5 1.5
castShadows
object Data/Models/mesa08.obj
translate 1 0 0
castShadows
end
*/

/*
// Modelos disponibles actualmente
Data/Models/silla06.obj
Data/Models/Dna.lwo.obj
Data/Models/apple.obj
Data/Models/gitara.obj
Data/Models/ventilador01.obj
Data/Models/armario1.obj
Data/Models/pinin.obj
Data/Models/mesa08.obj
*/
