[Opal-commits] opal/samples/src BaseOpalApp.h,1.7,1.8 ExampleApplication.h,1.5,1.6 ExampleFrameListe
Status: Inactive
Brought to you by:
tylerstreeter
|
From: tylerstreeter <tyl...@us...> - 2005-04-20 03:59:44
|
Update of /cvsroot/opal/opal/samples/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25347/samples/src Modified Files: BaseOpalApp.h ExampleApplication.h ExampleFrameListener.h PhysicalCamera.h PhysicalEntity.h TemplateApp.cpp Log Message: fixed bug in ogre sample; now model normals are unaffected by scaling Index: BaseOpalApp.h =================================================================== RCS file: /cvsroot/opal/opal/samples/src/BaseOpalApp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** BaseOpalApp.h 6 Apr 2005 04:48:44 -0000 1.7 --- BaseOpalApp.h 20 Apr 2005 03:59:35 -0000 1.8 *************** *** 1,2 **** --- 1,29 ---- + /************************************************************************* + * * + * Open Physics Abstraction Layer * + * Copyright (C) 2004-2005 * + * Alan Fischer ala...@gm... * + * Andres Reinot an...@re... * + * Tyler Streeter tyl...@gm... * + * All rights reserved. * + * Web: opal.sourceforge.net * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of EITHER: * + * (1) The GNU Lesser General Public License as published by the Free * + * Software Foundation; either version 2.1 of the License, or (at * + * your option) any later version. The text of the GNU Lesser * + * General Public License is included with this library in the * + * file license-LGPL.txt. * + * (2) The BSD-style license that is included with this library in * + * the file license-BSD.txt. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files * + * license-LGPL.txt and license-BSD.txt for more details. * + * * + *************************************************************************/ + #ifndef OPAL_SAMPLES_BASE_OPAL_APP_H #define OPAL_SAMPLES_BASE_OPAL_APP_H *************** *** 165,168 **** --- 192,198 ---- e->setMaterialName(materialName); + // Keep the normals normalized even after scaling. + e->setNormaliseNormals(true); + // Attach the Entity to the SceneNode. sn->attachObject(e); *************** *** 202,205 **** --- 232,238 ---- e->setMaterialName(materialName); + // Keep the normals normalized even after scaling. + e->setNormaliseNormals(true); + // Attach the Entity to the SceneNode. sn->attachObject(e); *************** *** 245,248 **** --- 278,282 ---- "cylinder.mesh"); e->setMaterialName(materialName); + e->setNormaliseNormals(true); cylinderNode->attachObject(e); *************** *** 259,262 **** --- 293,297 ---- e = mSceneMgr->createEntity(subObjectName, "sphere.mesh"); e->setMaterialName(materialName); + e->setNormaliseNormals(true); sn->attachObject(e); *************** *** 268,271 **** --- 303,307 ---- e = mSceneMgr->createEntity(subObjectName, "sphere.mesh"); e->setMaterialName(materialName); + e->setNormaliseNormals(true); sn->attachObject(e); Index: ExampleApplication.h =================================================================== RCS file: /cvsroot/opal/opal/samples/src/ExampleApplication.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ExampleApplication.h 5 Apr 2005 05:18:53 -0000 1.5 --- ExampleApplication.h 20 Apr 2005 03:59:35 -0000 1.6 *************** *** 19,22 **** --- 19,24 ---- */ + // Note: This file was modifed for the Opal-Ogre sample apps. + #ifndef __ExampleApplication_H__ #define __ExampleApplication_H__ *************** *** 27,32 **** - //using namespace Ogre; - /** Base class which manages the standard startup of an Ogre application. Designed to be subclassed for specific examples if required. --- 29,32 ---- Index: PhysicalEntity.h =================================================================== RCS file: /cvsroot/opal/opal/samples/src/PhysicalEntity.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PhysicalEntity.h 3 Apr 2005 00:11:42 -0000 1.1 --- PhysicalEntity.h 20 Apr 2005 03:59:35 -0000 1.2 *************** *** 1,2 **** --- 1,29 ---- + /************************************************************************* + * * + * Open Physics Abstraction Layer * + * Copyright (C) 2004-2005 * + * Alan Fischer ala...@gm... * + * Andres Reinot an...@re... * + * Tyler Streeter tyl...@gm... * + * All rights reserved. * + * Web: opal.sourceforge.net * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of EITHER: * + * (1) The GNU Lesser General Public License as published by the Free * + * Software Foundation; either version 2.1 of the License, or (at * + * your option) any later version. The text of the GNU Lesser * + * General Public License is included with this library in the * + * file license-LGPL.txt. * + * (2) The BSD-style license that is included with this library in * + * the file license-BSD.txt. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files * + * license-LGPL.txt and license-BSD.txt for more details. * + * * + *************************************************************************/ + #ifndef OPAL_SAMPLES_PHYSICAL_ENTITY_H #define OPAL_SAMPLES_PHYSICAL_ENTITY_H Index: PhysicalCamera.h =================================================================== RCS file: /cvsroot/opal/opal/samples/src/PhysicalCamera.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PhysicalCamera.h 19 Apr 2005 14:02:35 -0000 1.7 --- PhysicalCamera.h 20 Apr 2005 03:59:35 -0000 1.8 *************** *** 1,2 **** --- 1,29 ---- + /************************************************************************* + * * + * Open Physics Abstraction Layer * + * Copyright (C) 2004-2005 * + * Alan Fischer ala...@gm... * + * Andres Reinot an...@re... * + * Tyler Streeter tyl...@gm... * + * All rights reserved. * + * Web: opal.sourceforge.net * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of EITHER: * + * (1) The GNU Lesser General Public License as published by the Free * + * Software Foundation; either version 2.1 of the License, or (at * + * your option) any later version. The text of the GNU Lesser * + * General Public License is included with this library in the * + * file license-LGPL.txt. * + * (2) The BSD-style license that is included with this library in * + * the file license-BSD.txt. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files * + * license-LGPL.txt and license-BSD.txt for more details. * + * * + *************************************************************************/ + #ifndef OPAL_SAMPLES_PHYSICAL_CAMERA_H #define OPAL_SAMPLES_PHYSICAL_CAMERA_H Index: TemplateApp.cpp =================================================================== RCS file: /cvsroot/opal/opal/samples/src/TemplateApp.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TemplateApp.cpp 6 Apr 2005 04:48:44 -0000 1.6 --- TemplateApp.cpp 20 Apr 2005 03:59:35 -0000 1.7 *************** *** 1,2 **** --- 1,29 ---- + /************************************************************************* + * * + * Open Physics Abstraction Layer * + * Copyright (C) 2004-2005 * + * Alan Fischer ala...@gm... * + * Andres Reinot an...@re... * + * Tyler Streeter tyl...@gm... * + * All rights reserved. * + * Web: opal.sourceforge.net * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of EITHER: * + * (1) The GNU Lesser General Public License as published by the Free * + * Software Foundation; either version 2.1 of the License, or (at * + * your option) any later version. The text of the GNU Lesser * + * General Public License is included with this library in the * + * file license-LGPL.txt. * + * (2) The BSD-style license that is included with this library in * + * the file license-BSD.txt. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files * + * license-LGPL.txt and license-BSD.txt for more details. * + * * + *************************************************************************/ + #include <time.h> #include "../src/BaseOpalApp.h" Index: ExampleFrameListener.h =================================================================== RCS file: /cvsroot/opal/opal/samples/src/ExampleFrameListener.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ExampleFrameListener.h 1 Apr 2005 23:13:50 -0000 1.3 --- ExampleFrameListener.h 20 Apr 2005 03:59:35 -0000 1.4 *************** *** 18,36 **** This frame listener just moves a specified camera around based on keyboard and mouse movements. - Mouse: Freelook - W or Up: Forward - S or Down:Backward - A: Step left - D: Step right - PgUp: Move upwards - PgDown: Move downwards - F: Toggle frame rate stats on/off - R: Render mode - T: Cycle texture filtering - Bilinear, Trilinear, Anisotropic(8) - P: Toggle on/off display of camera position / orientation ----------------------------------------------------------------------------- */ #ifndef __ExampleFrameListener_H__ #define __ExampleFrameListener_H__ --- 18,26 ---- This frame listener just moves a specified camera around based on keyboard and mouse movements. ----------------------------------------------------------------------------- */ + // Note: This file was modifed for the Opal-Ogre sample apps. + #ifndef __ExampleFrameListener_H__ #define __ExampleFrameListener_H__ |