From 07ba303f6c2a15117e81949655b89ac5023cd8a6 Mon Sep 17 00:00:00 2001 From: rvlander Date: Thu, 15 Aug 2013 14:59:54 +0000 Subject: [PATCH] OSG_GRAPH : Temporary hack to deactivate EM. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5681 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 08c4871dbfc9a48ed9a11609537e314cefa43299 Former-commit-id: 6ef9ac232a2edac714354ba39a71ab2aaac5e4e7 --- src/modules/graphic/osggraph/OsgCar/OsgCar.cpp | 2 +- .../graphic/osggraph/OsgFX/OsgReflectionMapping.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/graphic/osggraph/OsgCar/OsgCar.cpp b/src/modules/graphic/osggraph/OsgCar/OsgCar.cpp index 2788c97c6..3f306c479 100755 --- a/src/modules/graphic/osggraph/OsgCar/OsgCar.cpp +++ b/src/modules/graphic/osggraph/OsgCar/OsgCar.cpp @@ -225,7 +225,7 @@ osg::Node *SDCar::loadCar(tCarElt *car) this->shader = new SDCarShader(pCar.get(),this); - this->reflectionMappingMethod = REFLECTIONMAPPING_STATIC; + this->reflectionMappingMethod = REFLECTIONMAPPING_OFF; this->reflectionMapping = new SDReflectionMapping(this); diff --git a/src/modules/graphic/osggraph/OsgFX/OsgReflectionMapping.cpp b/src/modules/graphic/osggraph/OsgFX/OsgReflectionMapping.cpp index 58fe3a84e..27d8c2e5c 100755 --- a/src/modules/graphic/osggraph/OsgFX/OsgReflectionMapping.cpp +++ b/src/modules/graphic/osggraph/OsgFX/OsgReflectionMapping.cpp @@ -131,8 +131,11 @@ SDReflectionMapping::SDReflectionMapping(SDCar *c):car(c){ } - SDScreens * screens = (SDScreens*)getScreens(); - screens->registerViewDependantPreRenderNode(this->getCamerasRoot()); + + + //ACTIVATE to enable Environment MApping <= temporary hack. + //SDScreens * screens = (SDScreens*)getScreens(); + //screens->registerViewDependantPreRenderNode(this->getCamerasRoot()); //cameras[4]->setNodeMask(1);