Skip to content
Snippets Groups Projects
Commit fa4bf7f2 authored by bobarna's avatar bobarna
Browse files

susanne demo

parent 95fff542
No related branches found
No related tags found
No related merge requests found
...@@ -37,10 +37,6 @@ link_libraries(${GLFW_LIBRARY_DIRS}) ...@@ -37,10 +37,6 @@ link_libraries(${GLFW_LIBRARY_DIRS})
find_package(GLEW REQUIRED) find_package(GLEW REQUIRED)
include_directories(${GLEW_INCLUDE_DIRS}) include_directories(${GLEW_INCLUDE_DIRS})
if (WIN32)
# nothing now
endif (WIN32)
target_link_libraries( target_link_libraries(
${PROJECT_NAME} ${PROJECT_NAME}
glfw glfw
......
...@@ -16,7 +16,7 @@ GLFWwindow *window; ...@@ -16,7 +16,7 @@ GLFWwindow *window;
bool dragging = false; bool dragging = false;
int keyArr[350]; int keyArr[350];
InputHandler *InputHandler = InputHandler->GetInstance(); InputHandler *InputHandler = InputHandler::GetInstance();
vec3 forceGenerated(0.0f, 0.0f, 0.0f); vec3 forceGenerated(0.0f, 0.0f, 0.0f);
bool resetExternalForces = false; bool resetExternalForces = false;
......
...@@ -33,10 +33,10 @@ void Scene::Build() { ...@@ -33,10 +33,10 @@ void Scene::Build() {
// Texture *headTexture = new CheckerBoardTexture(1, 0); // Texture *headTexture = new CheckerBoardTexture(1, 0);
// auto headObject = new HeadObject(phongShader, sphere, headMaterial, headTexture); // auto headObject = new HeadObject(phongShader, sphere, headMaterial, headTexture);
auto headObject = new HeadObject(phongShader, new ObjGeometry("../data/sphere.obj"), headMaterial, headTexture); auto headObject = new HeadObject(phongShader, new ObjGeometry("../data/susanne.obj"), headMaterial, headTexture);
headObject->Scale(vec3(.35, .35, .35)); headObject->Scale(vec3(.35, .35, .35));
/* objects.push_back(headObject); */ objects.push_back(headObject);
auto PBDSim = new PBDSimulation(headObject, nrSims, nrSegments, lSeg); auto PBDSim = new PBDSimulation(headObject, nrSims, nrSegments, lSeg);
auto simulationObject = new HairSimObject(headObject, basicShader, PBDSim); auto simulationObject = new HairSimObject(headObject, basicShader, PBDSim);
......
tags 0 → 100644
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment