From: <kal...@us...> - 2009-12-28 20:07:16
|
Revision: 2774 http://ogreaddons.svn.sourceforge.net/ogreaddons/?rev=2774&view=rev Author: kallaspriit Date: 2009-12-28 20:07:05 +0000 (Mon, 28 Dec 2009) Log Message: ----------- Updated project configurations. Julio updated player controller demo. Modified Paths: -------------- branches/ogrenewt/newton20/OgreNewt.suo branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonApplication.cpp branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonFrameListener.cpp branches/ogrenewt/newton20/demos/Demo09_PlayerController/OgreNewtonApplication.cpp branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.sln branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.suo branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.vcproj branches/ogrenewt/newton20/demos/bin/Debug/resources.cfg branches/ogrenewt/newton20/demos/bin/Release/resources.cfg branches/ogrenewt/newton20/demos/media/primitives/box.mesh branches/ogrenewt/newton20/demos/media/primitives/ellipsoid.mesh Added Paths: ----------- branches/ogrenewt/newton20/demos/bin/Debug/Demo_MinimalOgreNewt.bat branches/ogrenewt/newton20/demos/bin/Release/Demo_MinimalOgreNewt.bat branches/ogrenewt/newton20/demos/media/materials/scripts/chiropteradm.material branches/ogrenewt/newton20/demos/media/materials/scripts/primitives.material branches/ogrenewt/newton20/demos/media/models/chiropteradm.mesh branches/ogrenewt/newton20/demos/media/primitives/textures/BumpyMetal.jpg branches/ogrenewt/newton20/demos/media/primitives/textures/blinkyde.tga branches/ogrenewt/newton20/demos/media/primitives/textures/carpet4_w.tga branches/ogrenewt/newton20/demos/media/primitives/textures/floor_.tga branches/ogrenewt/newton20/demos/media/primitives/textures/icon.tga branches/ogrenewt/newton20/demos/media/primitives/textures/newtonLogo.tga branches/ogrenewt/newton20/demos/media/primitives/textures/oldmetal.tga branches/ogrenewt/newton20/demos/media/primitives/textures/ornament1_.tga branches/ogrenewt/newton20/demos/media/primitives/textures/ornament2_.tga branches/ogrenewt/newton20/demos/media/primitives/textures/tiles.tga branches/ogrenewt/newton20/demos/media/primitives/textures/wall_4.tga branches/ogrenewt/newton20/demos/media/primitives/textures/wall_7.tga branches/ogrenewt/newton20/demos/media/primitives/textures/wall_8.tga branches/ogrenewt/newton20/demos/media/primitives/textures/wall_9.tga branches/ogrenewt/newton20/demos/media/primitives/textures/wall_p.tga branches/ogrenewt/newton20/demos/media/primitives/textures/wall_w.tga Removed Paths: ------------- branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/INSTALL.txt Modified: branches/ogrenewt/newton20/OgreNewt.suo =================================================================== (Binary files differ) Modified: branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonApplication.cpp =================================================================== --- branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonApplication.cpp 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonApplication.cpp 2009-12-28 20:07:05 UTC (rev 2774) @@ -89,7 +89,7 @@ box1 = mSceneMgr->createEntity( "Entity"+Ogre::StringConverter::toString(mEntityCount++), "ellipsoid.mesh" ); box1node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); box1node->attachObject( box1 ); - box1node->setScale( size ); + box1node->setScale( size * (1.0f / 0.5f)); OgreNewt::ConvexCollisionPtr col = OgreNewt::ConvexCollisionPtr(new OgreNewt::CollisionPrimitives::Ellipsoid( m_World, size, 0 )); OgreNewt::Body* bod = new OgreNewt::Body( m_World, col ); @@ -230,7 +230,7 @@ // create a hinge with limits joint = new OgreNewt::Hinge( child, parent, pos+Ogre::Vector3(size.x/2, 0, 0), Ogre::Vector3(0, 1, 0)); joint->enableLimits(true); - joint->setLimis(minAngle, maxAngle); + joint->setLimits(minAngle, maxAngle); // offset pos a little more. pos -= Ogre::Vector3(size.x,0,0); Modified: branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonFrameListener.cpp =================================================================== --- branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonFrameListener.cpp 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/Demo02_Joints/OgreNewtonFrameListener.cpp 2009-12-28 20:07:05 UTC (rev 2774) @@ -99,7 +99,7 @@ ent->setMaterialName( "Simple/dirt01" ); // ent->setNormaliseNormals(true); - OgreNewt::ConvexCollisionPtr col = OgreNewt::ConvexCollisionPtr(new OgreNewt::CollisionPrimitives::Ellipsoid( m_World, Ogre::Vector3(1,1,1), 0 )); + OgreNewt::ConvexCollisionPtr col = OgreNewt::ConvexCollisionPtr(new OgreNewt::CollisionPrimitives::Ellipsoid( m_World, Ogre::Vector3(0.5f, 0.5f, 0.5f), 0 )); OgreNewt::Body* body = new OgreNewt::Body( m_World, col ); #ifdef OGRENEWT_NO_COLLISION_SHAREDPTR Modified: branches/ogrenewt/newton20/demos/Demo09_PlayerController/OgreNewtonApplication.cpp =================================================================== --- branches/ogrenewt/newton20/demos/Demo09_PlayerController/OgreNewtonApplication.cpp 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/Demo09_PlayerController/OgreNewtonApplication.cpp 2009-12-28 20:07:05 UTC (rev 2774) @@ -1,258 +1,205 @@ -/* - OgreNewt library - connecting Ogre and Newton! - - Demo09_PlayerController -*/ -#include "OgreNewtonApplication.h" -#include "OgreNewtonFrameListener.h" - -#include <OgreNewt.h> -#include <OgreNewt_BasicFrameListener.h> - - -OgreNewtonApplication::OgreNewtonApplication(void) -{ - // create OgreNewt world. - m_World = new OgreNewt::World(); - mPlayer = NULL; - - mEntityCount = 0; - -} - -OgreNewtonApplication::~OgreNewtonApplication(void) -{ - // destroy world. - if( mPlayer ) - delete mPlayer; - delete m_World; -} - - - -void OgreNewtonApplication::createScene() -{ - - // setup CEGUI - mGUIRenderer = new CEGUI::OgreCEGUIRenderer( mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr ); - new CEGUI::System( mGUIRenderer ); - - // load up CEGUI stuff... - try - { - using namespace CEGUI; - CEGUI::Logger::getSingleton().setLoggingLevel( CEGUI::Informative ); - - CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLookSkin.scheme"); - CEGUI::System::getSingleton().setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow"); - CEGUI::System::getSingleton().setDefaultFont((CEGUI::utf8*)"BlueHighway-10"); - - CEGUI::Window* sheet = CEGUI::WindowManager::getSingleton().createWindow( (CEGUI::utf8*)"DefaultWindow", (CEGUI::utf8*)"root_wnd" ); - CEGUI::System::getSingleton().setGUISheet( sheet ); - - //makeGUI(); - //setupGUI(); - - } - catch (CEGUI::Exception) - {} - - - // sky box. - mSceneMgr->setSkyBox(true, "Examples/CloudyNoonSkyBox"); - - // shadows on! - mSceneMgr->setShadowTechnique( Ogre::SHADOWTYPE_STENCIL_ADDITIVE ); - - - // floor object! - Entity* floor; - SceneNode* floornode; - floor = mSceneMgr->createEntity("Floor", "simple_terrain.mesh" ); - floornode = mSceneMgr->getRootSceneNode()->createChildSceneNode( "FloorNode" ); - floornode->attachObject( floor ); - floor->setMaterialName( "Simple/BeachStones" ); - floor->setCastShadows( false ); - - - - - //Ogre::Vector3 siz(100.0, 10.0, 100.0); - OgreNewt::CollisionPtr col = OgreNewt::CollisionPtr(new OgreNewt::CollisionPrimitives::TreeCollision( m_World, floor, true, 0 )); - OgreNewt::Body* bod = new OgreNewt::Body( m_World, col ); -#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR - delete col; -#endif - - //floornode->setScale( siz ); - bod->attachNode( floornode ); - bod->setPositionOrientation( Ogre::Vector3(0.0,-10.0,0.0), Ogre::Quaternion::IDENTITY ); - - - // make a simple rope. - Ogre::Vector3 size(3,1.0,1.0); - Ogre::Vector3 pos(0,1,0); - Ogre::Quaternion orient = Ogre::Quaternion::IDENTITY; - - // loop through, making bodies and connecting them. - OgreNewt::Body* parent = NULL; - OgreNewt::Body* child = NULL; -/* - for (int x=0;x<8;x++) - { - // make the next box. - child = makeSimpleBox(size, pos, orient); - - // now make a new joint connecting this to the last box. - OgreNewt::Joint* joint; - - // make the joint right between the bodies... - - - if (parent) - { - joint = new OgreNewt::BallAndSocket( child, parent, pos-Ogre::Vector3(size.x/2,0,0) ); - } - else - { - // no parent, this is the first joint, so just pass NULL as the parent, to stick it to the "world" - joint = new OgreNewt::BallAndSocket( child, NULL, pos-Ogre::Vector3(size.x/2,0,0) ); - } - - // offset pos a little more. - pos += Ogre::Vector3(size.x,0,0); - - // save the last body for the next loop! - parent = child; - } - - for (int i=0; i<15;i++) - { - pos = Ogre::Vector3( 10-rand()%20, 4+rand()%2, 10-rand()%20 ); - size = Ogre::Vector3( 1+rand()%3, 1+rand()%3, 1+rand()%3 ); - - OgreNewt::Body* bod = makeSimpleBox( size, pos, orient ); - } - - - // player playground - - bod = NULL; - for( int i = 0; i < 20; i++ ) - { - bod = makeSimpleBox( Ogre::Vector3(4.0, 0.4, 1.0), Ogre::Vector3(15.0, -10.0+i*0.4, -2.0-i*0.4), Ogre::Quaternion::IDENTITY); - bod->setMassMatrix(0, Ogre::Vector3::ZERO); - } - - bod = makeSimpleBox( Ogre::Vector3(10.0, 0.4, 10.0), Ogre::Vector3(-17.0, -8.0, -15.0), Ogre::Quaternion(Ogre::Degree(60), Ogre::Vector3::UNIT_X)); - bod->setMassMatrix(0, Ogre::Vector3::ZERO); - - bod = makeSimpleBox( Ogre::Vector3(10.0, 0.4, 10.0), Ogre::Vector3(-27.0, -8.5, -15.0), Ogre::Quaternion(Ogre::Degree(20), Ogre::Vector3::UNIT_X)); - bod->setMassMatrix(0, Ogre::Vector3::ZERO); - - bod = makeSimpleBox( Ogre::Vector3(10.0, 0.4, 10.0), Ogre::Vector3(-37.0, -8.0, -15.0), Ogre::Quaternion(Ogre::Degree(80), Ogre::Vector3::UNIT_Y) * Ogre::Quaternion(Ogre::Degree(50), Ogre::Vector3::UNIT_X)); - bod->setMassMatrix(0, Ogre::Vector3::ZERO); -*/ - makePlayer(); - - - // position camera - mCamera->setPosition(0.0, -3.0, 23.0); - - //make a light - Ogre::Light* light; - - light = mSceneMgr->createLight( "Light1" ); - light->setType( Ogre::Light::LT_POINT ); - light->setPosition( Ogre::Vector3(0.0, 100.0, 100.0) ); - - - -} - - -void OgreNewtonApplication::createFrameListener() -{ - mFrameListener = new OgreNewtonFrameListener( mWindow, mCamera, mSceneMgr, m_World, mPlayer); - mRoot->addFrameListener(mFrameListener); - - mNewtonListener = new OgreNewt::BasicFrameListener( mWindow, m_World, 60 ); - mRoot->addFrameListener(mNewtonListener); -} - -void OgreNewtonApplication::destroyScene() -{ - CEGUI::System* sys = CEGUI::System::getSingletonPtr(); - delete sys; - - // CEGUI Cleanup - delete mGUIRenderer; -} - - -OgreNewt::Body* OgreNewtonApplication::makeSimpleBox( const Ogre::Vector3& size, const Ogre::Vector3& pos, const Ogre::Quaternion& orient ) -{ - Entity* box1; - SceneNode* box1node; - - box1 = mSceneMgr->createEntity( "Entity"+Ogre::StringConverter::toString(mEntityCount++), "box.mesh" ); - box1node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); - box1node->attachObject( box1 ); - box1node->setScale( size ); - - OgreNewt::ConvexCollisionPtr col = OgreNewt::ConvexCollisionPtr(new OgreNewt::CollisionPrimitives::Box( m_World, size, 0 )); - OgreNewt::Body* bod = new OgreNewt::Body( m_World, col ); - - - // base mass on the size of the object. - Ogre::Real mass = size.x * size.y * size.z * 2.5; - // calculate the inertia based on box formula and mass - Ogre::Vector3 inertia, offset; - col->calculateInertialMatrix(inertia, offset); - -#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR - delete col; -#endif - - bod->attachNode( box1node ); - bod->setMassMatrix( mass, mass*inertia ); - bod->setCenterOfMass(offset); - bod->setStandardForceCallback(); - - box1->setMaterialName( "Simple/BumpyMetal" ); - - - bod->setPositionOrientation( pos, orient ); - - return bod; -} - -void OgreNewtonApplication::makePlayer() -{ - Entity* ellipsoid; - SceneNode* node; - - ellipsoid = mSceneMgr->createEntity( "PlayerControllerEntity", "ellipsoid.mesh"); - node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); - node->attachObject( ellipsoid ); - node->setScale(Ogre::Vector3(1,2.5,1)); - - OgreNewt::ConvexCollisionPtr col = OgreNewt::ConvexCollisionPtr(new OgreNewt::CollisionPrimitives::Ellipsoid( m_World, Ogre::Vector3(1,2.5,1), 0 )); - OgreNewt::Body* bod = new OgreNewt::Body( m_World, col ); - Ogre::Vector3 inertia, offset; - col->calculateInertialMatrix(inertia, offset); -#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR - delete col; -#endif - bod->attachNode(node); - bod->setMassMatrix( 50, 50*inertia ); - bod->setCenterOfMass(offset); - bod->setStandardForceCallback(); - - ellipsoid->setMaterialName("Simple/dirt01"); - - bod->setPositionOrientation(Ogre::Vector3(0,20,20), Ogre::Quaternion::IDENTITY); - - mPlayer = new OgreNewt::PlayerController(bod, 0.4); -} - +/* + OgreNewt library - connecting Ogre and Newton! + + Demo09_PlayerController +*/ +#include "OgreNewtonApplication.h" +#include "OgreNewtonFrameListener.h" + +#include <OgreNewt.h> +#include <OgreNewt_BasicFrameListener.h> + + +OgreNewtonApplication::OgreNewtonApplication(void) +{ + // create OgreNewt world. + m_World = new OgreNewt::World(); + mPlayer = NULL; + + mEntityCount = 0; + +} + +OgreNewtonApplication::~OgreNewtonApplication(void) +{ + // destroy world. + if( mPlayer ) + delete mPlayer; + delete m_World; +} + + + +void OgreNewtonApplication::createScene() +{ + + // setup CEGUI + mGUIRenderer = new CEGUI::OgreCEGUIRenderer( mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr ); + new CEGUI::System( mGUIRenderer ); + + // load up CEGUI stuff... + try + { + using namespace CEGUI; + CEGUI::Logger::getSingleton().setLoggingLevel( CEGUI::Informative ); + + CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLookSkin.scheme"); + CEGUI::System::getSingleton().setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow"); + CEGUI::System::getSingleton().setDefaultFont((CEGUI::utf8*)"BlueHighway-10"); + + CEGUI::Window* sheet = CEGUI::WindowManager::getSingleton().createWindow( (CEGUI::utf8*)"DefaultWindow", (CEGUI::utf8*)"root_wnd" ); + CEGUI::System::getSingleton().setGUISheet( sheet ); + + //makeGUI(); + //setupGUI(); + + } + catch (CEGUI::Exception) + {} + + + // sky box. + mSceneMgr->setSkyBox(true, "Examples/CloudyNoonSkyBox"); + + // shadows on! + mSceneMgr->setShadowTechnique( Ogre::SHADOWTYPE_STENCIL_ADDITIVE ); + + + // floor object! + Entity* floor; + SceneNode* floornode; + //floor = mSceneMgr->createEntity("Floor", "simple_terrain.mesh" ); + floor = mSceneMgr->createEntity("Floor", "castle.mesh" ); +// floor = mSceneMgr->createEntity("Floor", "chiropteradm.mesh" ); +// floor = mSceneMgr->createEntity("Floor", "playground.mesh" ); + + floornode = mSceneMgr->getRootSceneNode()->createChildSceneNode( "FloorNode" ); + floornode->attachObject( floor ); +// floor->setMaterialName( "Simple/BeachStones" ); + floor->setCastShadows( false ); + + + + //Ogre::Vector3 siz(100.0, 10.0, 100.0); + OgreNewt::CollisionPtr col = OgreNewt::CollisionPtr(new OgreNewt::CollisionPrimitives::TreeCollision( m_World, floor, true, 0 )); + OgreNewt::Body* bod = new OgreNewt::Body( m_World, col ); +#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR + delete col; +#endif + + //floornode->setScale( siz ); + bod->attachNode( floornode ); + bod->setPositionOrientation( Ogre::Vector3(0.0f, 0.0f, 0.0f), Ogre::Quaternion::IDENTITY ); + + makePlayer(); + + // position camera + mCamera->setPosition(0.0f, 1.0f, 0.0f); + + + // set the near and far clip plane + mCamera->setNearClipDistance(0.2f); + mCamera->setFarClipDistance(1000.0f); + + + //make a light + Ogre::Light* light; + + light = mSceneMgr->createLight( "Light1" ); + light->setType( Ogre::Light::LT_POINT ); + light->setPosition( Ogre::Vector3(0.0, 100.0, 100.0) ); +} + + +void OgreNewtonApplication::createFrameListener() +{ + mFrameListener = new OgreNewtonFrameListener( mWindow, mCamera, mSceneMgr, m_World, mPlayer); + mRoot->addFrameListener(mFrameListener); + + mNewtonListener = new OgreNewt::BasicFrameListener( mWindow, m_World, 60 ); + mRoot->addFrameListener(mNewtonListener); +} + +void OgreNewtonApplication::destroyScene() +{ + CEGUI::System* sys = CEGUI::System::getSingletonPtr(); + delete sys; + + // CEGUI Cleanup + delete mGUIRenderer; +} + + +OgreNewt::Body* OgreNewtonApplication::makeSimpleBox( const Ogre::Vector3& size, const Ogre::Vector3& pos, const Ogre::Quaternion& orient ) +{ + Entity* box1; + SceneNode* box1node; + + box1 = mSceneMgr->createEntity( "Entity"+Ogre::StringConverter::toString(mEntityCount++), "box.mesh" ); + box1node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); + box1node->attachObject( box1 ); + box1node->setScale( size ); + + OgreNewt::ConvexCollisionPtr col = OgreNewt::ConvexCollisionPtr(new OgreNewt::CollisionPrimitives::Box( m_World, size, 0 )); + OgreNewt::Body* bod = new OgreNewt::Body( m_World, col ); + + + // base mass on the size of the object. + Ogre::Real mass = size.x * size.y * size.z * 2.5; + // calculate the inertia based on box formula and mass + Ogre::Vector3 inertia, offset; + col->calculateInertialMatrix(inertia, offset); + +#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR + delete col; +#endif + + bod->attachNode( box1node ); + bod->setMassMatrix( mass, mass*inertia ); + bod->setCenterOfMass(offset); + bod->setStandardForceCallback(); + + box1->setMaterialName( "Simple/BumpyMetal" ); + + + bod->setPositionOrientation( pos, orient ); + + return bod; +} + +void OgreNewtonApplication::makePlayer() +{ + Entity* ellipsoid; + SceneNode* node; + + ellipsoid = mSceneMgr->createEntity( "PlayerControllerEntity", "ellipsoid.mesh"); + node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); + node->attachObject( ellipsoid ); + Ogre::Vector3 size (1.0, 2.5, 1.0f); + node->setScale(size); + + OgreNewt::ConvexCollisionPtr col = OgreNewt::ConvexCollisionPtr(new OgreNewt::CollisionPrimitives::Ellipsoid( m_World, size * 0.5f, 0 )); + OgreNewt::Body* bod = new OgreNewt::Body( m_World, col ); + Ogre::Vector3 inertia, offset; + col->calculateInertialMatrix(inertia, offset); +#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR + delete col; +#endif + bod->attachNode(node); + bod->setMassMatrix( 50, 50*inertia ); + bod->setCenterOfMass(offset); + bod->setStandardForceCallback(); + + ellipsoid->setMaterialName("Simple/dirt01"); + +// bod->setPositionOrientation(Ogre::Vector3(0,20,20), Ogre::Quaternion::IDENTITY); +// bod->setPositionOrientation(Ogre::Vector3(6.74f, -6.0f, -8.2f), Ogre::Quaternion::IDENTITY); + bod->setPositionOrientation(Ogre::Vector3(0.0f, 1.0f, 0.0f), Ogre::Quaternion::IDENTITY); + + // set teh play to alway be actibe + bod->setAutoSleep(0); + mPlayer = new OgreNewt::PlayerController(bod, 0.4); + + +} + Deleted: branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/INSTALL.txt =================================================================== --- branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/INSTALL.txt 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/INSTALL.txt 2009-12-28 20:07:05 UTC (rev 2774) @@ -1,62 +0,0 @@ -INSTALLATION - -This package includes the release build, so you can see what you are dealing with. Debug build and -dll's are not included. - -1. Get Ogre - - http://www.ogre3d.org/ - - Get precompiled libraries - - Or compile yourself - - Set enviroment variable "OGRE_HOME" to ogre home directory - > for example "C:\Ogre3D" - > includes will be searched in $(OGRE_HOME)\OgreMain\include - -2. Get latest Boost C++ libraries - - http://www.boost.org/ - - Just install anywhere - - Set enviroment variable "BOOST_HOME" to boost directory - > for example "C:\Boost" - -3. Get Newton Game Dynamics - - http://newtondynamics.com/forum/ - > there is a "Newton 2 BETA" link at the top, this may change in the future, but you'll find it - - Install it - - Set enviroment variable "NEWTON_HOME" to install directory - > for example "C:\NDG\2.15" - -4. Get OgreNewt - - Latest can be downloaded from SVN at https://svn.ogre3d.org/svnroot/ogreaddons/branches/ogrenewt/newton20 - > you can't download from this url using your browser, you need to use SVN client - > for example, use GUI SVN client TortoiseSVN (http://tortoisesvn.tigris.org/) - > google how to use it, basically just download and istall it, make a folder for ogrenewt, right click the - folder, choose "SVN Checkout...", enter the SVN url above and do the checkout. - - The OgreNewt Visual studio project is a bit messed up, you can use the one that comes with this project - in "ogrenewt" directory. Just copy the solution and project files to the folder you checked out ogrenewt, - overwrite existing files and open the solution. The modified project uses the enviroment variables you - defined above so everything should compile without any changes to the project (may not be the case if you - did not compile Ogre yourself, you might have to change the include and library directories). - - Set enviroment variable "OGRENEWT_HOME" to OgreNewt root directory - > for example "C:\Ogre3D\Addons\OgreNewt" - -5. Copy DLLs - - If everything is set up right, the dll's will be automaticly copied to the right location, if not: - - Copy OgreMain.dll, Plugin_CgProgramManager.dll, Plugin_OctreeSceneManager.dll, RenderSystem_Direct3D9.dll, - RenderSystem_GL.dll from OGRE_HOME\lib directory to this projects' root directory - - Copy OgreMain_d.dll, Plugin_CgProgramManager_d.dll, Plugin_OctreeSceneManager_d.dll, RenderSystem_Direct3D9_d.dll, - RenderSystem_GL_d.dll from OGRE_HOME\lib directory to this projects' root directory if you also want to - use debug mode - - Copy cg.dll and OIS.dll from OGRE_HOME\Samples\Common\bin\Release (and OIS_d.dll from OGRE_HOME\Samples\Common\bin\Debug - for debug) to project root directory - - Copy newton.dll from NEWTON_HOME\sdk\x32\dll_vs9 to project root directory - - Copy OgreNewt.dll (and OgreNewt_d.dll for debug) from OGRENEWT_HOME\lib to project root directory - -6. Compile the application - - Open NGD.sln, choose Release or Debug configuration and hit Compile (F7) - - Release configuration compiles to release.exe and debug to.. you guessed it, debug.exe - - If I got this tutorial right and you did everything correctly, it should compile out of the box and work! - -7. Experiment - - The code provided is pretty much the minimum for a working application with input and debugging - - No Ogre sample framework is used - - The code has not been organised to great depth to make the learning curve simpler. You can modify it to - use better organization, state managment and so on. \ No newline at end of file Modified: branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.sln =================================================================== --- branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.sln 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.sln 2009-12-28 20:07:05 UTC (rev 2774) @@ -6,7 +6,7 @@ {C28C7710-76B1-4FFD-A85A-9AEFDA25EE64} = {C28C7710-76B1-4FFD-A85A-9AEFDA25EE64} EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OgreNewt", "C:\Ogre3D\Addons\OgreNewt\OgreNewt.vcproj", "{C28C7710-76B1-4FFD-A85A-9AEFDA25EE64}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OgreNewt", "..\..\OgreNewt.vcproj", "{C28C7710-76B1-4FFD-A85A-9AEFDA25EE64}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Modified: branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.suo =================================================================== (Binary files differ) Modified: branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.vcproj =================================================================== --- branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.vcproj 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/MinimalOgreNewtApplication/MinimalOgreNewt.vcproj 2009-12-28 20:07:05 UTC (rev 2774) @@ -19,13 +19,13 @@ <Configuration Name="Debug|Win32" OutputDirectory="." - IntermediateDirectory="obj\debug" + IntermediateDirectory="..\obj\$(ConfigurationName)\$(ProjectName)" ConfigurationType="1" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" - CommandLine="copy $(OGRENEWT_HOME)\lib\OgreNewt_d.dll $(OutDir)\OgreNewt_d.dll

if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\OgreMain_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\OgreMain_d.dll" "$(OutDir)\OgreMain_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\OIS_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\OIS_d.dll" "$(OutDir)\OIS_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\Plugin_CgProgramManager_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\Plugin_CgProgramManager_d.dll" "$(OutDir)\Plugin_CgProgramManager_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_Direct3D9_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_Direct3D9_d.dll" "$(OutDir)\RenderSystem_Direct3D9_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_GL_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_GL_d.dll" "$(OutDir)\RenderSystem_GL_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\cg.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\cg.dll" "$(OutDir)\cg.dll"

if exist "$(OGRE_HOME)\bin\debug\OgreMain_d.dll" copy "$(OGRE_HOME)\bin\debug\OgreMain_d.dll" "$(OutDir)\OgreMain_d.dll"
if exist "$(OGRE_HOME)\bin\debug\OIS_d.dll" copy "$(OGRE_HOME)\bin\debug\OIS_d.dll" demos\bin\Debug\OIS_d.dll"
if exist "$(OGRE_HOME)\bin\debug\Plugin_CgProgramManager_d.dll" copy "$(OGRE_HOME)\bin\debug\Plugin_CgProgramManager_d.dll" demos\bin\Debug\Plugin_CgProgramManager_d.dll"
if exist "$(OGRE_HOME)\bin\debug\RenderSystem_Direct3D9_d.dll" copy "$(OGRE_HOME)\bin\debug\RenderSystem_Direct3D9_d.dll" demos\bin\Debug\RenderSystem_Direct3D9_d.dll"
if exist "$(OGRE_HOME)\bin\debug\RenderSystem_GL_d.dll" copy "$(OGRE_HOME)\bin\debug\RenderSystem_GL_d.dll" demos\bin\Debug\RenderSystem_GL_d.dll"
if exist "$(OGRE_HOME)\bin\debug\cg.dll" copy "$(OGRE_HOME)\bin\debug\cg.dll" demos\bin\Debug\cg.dll"

copy $(NEWTON_HOME)\sdk\x32\dll_vs9\newton.dll $(OutDir)\newton.dll
copy $(NEWTON_HOME)\sdk\x32\JointLibrary_d.dll $(OutDir)\JointLibrary_d.dll
" + CommandLine="copy ..\..\lib\OgreNewt_d.dll $(OutDir)\OgreNewt_d.dll

if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\OgreMain_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\OgreMain_d.dll" "$(OutDir)\OgreMain_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\OIS_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\OIS_d.dll" "$(OutDir)\OIS_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\Plugin_CgProgramManager_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\Plugin_CgProgramManager_d.dll" "$(OutDir)\Plugin_CgProgramManager_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_Direct3D9_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_Direct3D9_d.dll" "$(OutDir)\RenderSystem_Direct3D9_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_GL_d.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\RenderSystem_GL_d.dll" "$(OutDir)\RenderSystem_GL_d.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Debug\cg.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Debug\cg.dll" "$(OutDir)\cg.dll"

if exist "$(OGRE_HOME)\bin\debug\OgreMain_d.dll" copy "$(OGRE_HOME)\bin\debug\OgreMain_d.dll" "$(OutDir)\OgreMain_d.dll"
if exist "$(OGRE_HOME)\bin\debug\OIS_d.dll" copy "$(OGRE_HOME)\bin\debug\OIS_d.dll" demos\bin\Debug\OIS_d.dll"
if exist "$(OGRE_HOME)\bin\debug\Plugin_CgProgramManager_d.dll" copy "$(OGRE_HOME)\bin\debug\Plugin_CgProgramManager_d.dll" demos\bin\Debug\Plugin_CgProgramManager_d.dll"
if exist "$(OGRE_HOME)\bin\debug\RenderSystem_Direct3D9_d.dll" copy "$(OGRE_HOME)\bin\debug\RenderSystem_Direct3D9_d.dll" demos\bin\Debug\RenderSystem_Direct3D9_d.dll"
if exist "$(OGRE_HOME)\bin\debug\RenderSystem_GL_d.dll" copy "$(OGRE_HOME)\bin\debug\RenderSystem_GL_d.dll" demos\bin\Debug\RenderSystem_GL_d.dll"
if exist "$(OGRE_HOME)\bin\debug\cg.dll" copy "$(OGRE_HOME)\bin\debug\cg.dll" demos\bin\Debug\cg.dll"

copy $(NEWTON_HOME)\sdk\x32\dll_vs9\newton.dll $(OutDir)\newton.dll
copy $(NEWTON_HOME)\sdk\x32\JointLibrary_d.dll $(OutDir)\JointLibrary_d.dll
" /> <Tool Name="VCCustomBuildTool" @@ -42,7 +42,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(NEWTON_HOME)\sdk";"$(BOOST_HOME)\";"$(OGRE_HOME)\OgreMain\include";"$(OGRE_HOME)\Dependencies\include";"$(OGRE_HOME)\Dependencies\include\ois";"$(OGRENEWT_HOME)\inc";.\include" + AdditionalIncludeDirectories=""$(NEWTON_HOME)\sdk";"$(BOOST_HOME)\";"$(OGRE_HOME)\OgreMain\include";"$(OGRE_HOME)\Dependencies\include";"$(OGRE_HOME)\Dependencies\include\ois";..\..\inc;.\include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;OIS_DYNAMIC_LIB" MinimalRebuild="true" BasicRuntimeChecks="3" @@ -64,8 +64,8 @@ Name="VCLinkerTool" AdditionalDependencies="newton.lib OgreMain_d.lib OIS_d.lib OgreNewt_d.lib" OutputFile="$(OutDir)\debug.exe" - LinkIncremental="2" - AdditionalLibraryDirectories=""$(OGRE_HOME)\lib";"$(OGRE_HOME)\Dependencies\lib\Debug";"$(OGRENEWT_HOME)\lib";"$(NEWTON_HOME)\sdk\x32\dll_vs9"" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\lib;"$(OGRE_HOME)\lib";"$(OGRE_HOME)\Dependencies\lib\Debug";"$(NEWTON_HOME)\sdk\x32\dll_vs9"" GenerateDebugInformation="true" SubSystem="2" TargetMachine="1" @@ -95,14 +95,14 @@ <Configuration Name="Release|Win32" OutputDirectory="." - IntermediateDirectory="obj\release" + IntermediateDirectory="..\obj\$(ConfigurationName)\$(ProjectName)" ConfigurationType="1" CharacterSet="2" WholeProgramOptimization="1" > <Tool Name="VCPreBuildEventTool" - CommandLine="copy $(OGRENEWT_HOME)\lib\OgreNewt.dll $(OutDir)\OgreNewt.dll

if exist "$(OGRE_HOME)\Samples\Common\bin\Release\OgreMain.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\OgreMain.dll" "$(OutDir)\OgreMain.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\OIS.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\OIS.dll" "$(OutDir)\OIS.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\Plugin_CgProgramManager.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\Plugin_CgProgramManager.dll" "$(OutDir)\Plugin_CgProgramManager.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_Direct3D9.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_Direct3D9.dll" "$(OutDir)\RenderSystem_Direct3D9.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_GL.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_GL.dll" "$(OutDir)\RenderSystem_GL.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\cg.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\cg.dll" "$(OutDir)\cg.dll"

if exist "$(OGRE_HOME)\bin\release\OgreMain.dll" copy "$(OGRE_HOME)\bin\release\OgreMain.dll" "$(OutDir)\OgreMain.dll"
if exist "$(OGRE_HOME)\bin\release\OIS.dll" copy "$(OGRE_HOME)\bin\release\OIS.dll" "$(OutDir)\OIS.dll"
if exist "$(OGRE_HOME)\bin\release\Plugin_CgProgramManager.dll" copy "$(OGRE_HOME)\bin\release\Plugin_CgProgramManager.dll" "$(OutDir)\Plugin_CgProgramManager.dll"
if exist "$(OGRE_HOME)\bin\release\RenderSystem_Direct3D9.dll" copy "$(OGRE_HOME)\bin\release\RenderSystem_Direct3D9.dll" "$(OutDir)\RenderSystem_Direct3D9.dll"
if exist "$(OGRE_HOME)\bin\release\RenderSystem_GL.dll" copy "$(OGRE_HOME)\bin\release\RenderSystem_GL.dll" "$(OutDir)\RenderSystem_GL.dll"
if exist "$(OGRE_HOME)\bin\release\cg.dll" copy "$(OGRE_HOME)\bin\release\cg.dll" "$(OutDir)\cg.dll"

copy $(NEWTON_HOME)\sdk\x32\dll_vs9\newton.dll $(OutDir)\newton.dll
copy $(NEWTON_HOME)\sdk\x32\JointLibrary.dll $(OutDir)\JointLibrary.dll
" + CommandLine="copy ..\..\lib\OgreNewt.dll $(OutDir)\OgreNewt.dll

if exist "$(OGRE_HOME)\Samples\Common\bin\Release\OgreMain.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\OgreMain.dll" "$(OutDir)\OgreMain.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\OIS.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\OIS.dll" "$(OutDir)\OIS.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\Plugin_CgProgramManager.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\Plugin_CgProgramManager.dll" "$(OutDir)\Plugin_CgProgramManager.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_Direct3D9.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_Direct3D9.dll" "$(OutDir)\RenderSystem_Direct3D9.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_GL.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\RenderSystem_GL.dll" "$(OutDir)\RenderSystem_GL.dll"
if exist "$(OGRE_HOME)\Samples\Common\bin\Release\cg.dll" copy "$(OGRE_HOME)\Samples\Common\bin\Release\cg.dll" "$(OutDir)\cg.dll"

if exist "$(OGRE_HOME)\bin\release\OgreMain.dll" copy "$(OGRE_HOME)\bin\release\OgreMain.dll" "$(OutDir)\OgreMain.dll"
if exist "$(OGRE_HOME)\bin\release\OIS.dll" copy "$(OGRE_HOME)\bin\release\OIS.dll" "$(OutDir)\OIS.dll"
if exist "$(OGRE_HOME)\bin\release\Plugin_CgProgramManager.dll" copy "$(OGRE_HOME)\bin\release\Plugin_CgProgramManager.dll" "$(OutDir)\Plugin_CgProgramManager.dll"
if exist "$(OGRE_HOME)\bin\release\RenderSystem_Direct3D9.dll" copy "$(OGRE_HOME)\bin\release\RenderSystem_Direct3D9.dll" "$(OutDir)\RenderSystem_Direct3D9.dll"
if exist "$(OGRE_HOME)\bin\release\RenderSystem_GL.dll" copy "$(OGRE_HOME)\bin\release\RenderSystem_GL.dll" "$(OutDir)\RenderSystem_GL.dll"
if exist "$(OGRE_HOME)\bin\release\cg.dll" copy "$(OGRE_HOME)\bin\release\cg.dll" "$(OutDir)\cg.dll"

copy $(NEWTON_HOME)\sdk\x32\dll_vs9\newton.dll $(OutDir)\newton.dll
copy $(NEWTON_HOME)\sdk\x32\JointLibrary.dll $(OutDir)\JointLibrary.dll
" /> <Tool Name="VCCustomBuildTool" @@ -120,7 +120,7 @@ Name="VCCLCompilerTool" Optimization="2" EnableIntrinsicFunctions="true" - AdditionalIncludeDirectories=""$(NEWTON_HOME)\sdk";"$(BOOST_HOME)\";"$(OGRE_HOME)\OgreMain\include";"$(OGRE_HOME)\Dependencies\include";"$(OGRE_HOME)\Dependencies\include\ois";"$(OGRENEWT_HOME)\inc";.\include" + AdditionalIncludeDirectories=""$(NEWTON_HOME)\sdk";"$(BOOST_HOME)\";"$(OGRE_HOME)\OgreMain\include";"$(OGRE_HOME)\Dependencies\include";"$(OGRE_HOME)\Dependencies\include\ois";..\..\inc;.\include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;OIS_DYNAMIC_LIB;" RuntimeLibrary="2" EnableFunctionLevelLinking="true" @@ -142,7 +142,7 @@ AdditionalDependencies="newton.lib OgreMain.lib OIS.lib OgreNewt.lib" OutputFile="$(OutDir)\release.exe" LinkIncremental="1" - AdditionalLibraryDirectories=""$(OGRE_HOME)\lib";"$(OGRE_HOME)\Dependencies\lib\Release";"$(OGRENEWT_HOME)\lib";"$(NEWTON_HOME)\sdk\x32\dll_vs9"" + AdditionalLibraryDirectories="..\..\lib;"$(OGRE_HOME)\lib";"$(OGRE_HOME)\Dependencies\lib\Release";"$(NEWTON_HOME)\sdk\x32\dll_vs9"" GenerateDebugInformation="true" SubSystem="2" OptimizeReferences="2" Added: branches/ogrenewt/newton20/demos/bin/Debug/Demo_MinimalOgreNewt.bat =================================================================== --- branches/ogrenewt/newton20/demos/bin/Debug/Demo_MinimalOgreNewt.bat (rev 0) +++ branches/ogrenewt/newton20/demos/bin/Debug/Demo_MinimalOgreNewt.bat 2009-12-28 20:07:05 UTC (rev 2774) @@ -0,0 +1,2 @@ +cd ..\..\MinimalOgreNewtApplication +debug.exe \ No newline at end of file Modified: branches/ogrenewt/newton20/demos/bin/Debug/resources.cfg =================================================================== --- branches/ogrenewt/newton20/demos/bin/Debug/resources.cfg 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/bin/Debug/resources.cfg 2009-12-28 20:07:05 UTC (rev 2774) @@ -3,6 +3,7 @@ FileSystem=../../media/GUI/schemes FileSystem=../../media/GUI/imagesets FileSystem=../../media/GUI/fonts + FileSystem=../../media/fonts FileSystem=../../media/materials/scripts FileSystem=../../media/materials/textures Added: branches/ogrenewt/newton20/demos/bin/Release/Demo_MinimalOgreNewt.bat =================================================================== --- branches/ogrenewt/newton20/demos/bin/Release/Demo_MinimalOgreNewt.bat (rev 0) +++ branches/ogrenewt/newton20/demos/bin/Release/Demo_MinimalOgreNewt.bat 2009-12-28 20:07:05 UTC (rev 2774) @@ -0,0 +1,2 @@ +cd ..\..\MinimalOgreNewtApplication +release.exe \ No newline at end of file Modified: branches/ogrenewt/newton20/demos/bin/Release/resources.cfg =================================================================== --- branches/ogrenewt/newton20/demos/bin/Release/resources.cfg 2009-12-28 09:47:53 UTC (rev 2773) +++ branches/ogrenewt/newton20/demos/bin/Release/resources.cfg 2009-12-28 20:07:05 UTC (rev 2774) @@ -3,6 +3,7 @@ FileSystem=../../media/GUI/schemes FileSystem=../../media/GUI/imagesets FileSystem=../../media/GUI/fonts + FileSystem=../../media/fonts FileSystem=../../media/materials/scripts FileSystem=../../media/materials/textures Added: branches/ogrenewt/newton20/demos/media/materials/scripts/chiropteradm.material =================================================================== --- branches/ogrenewt/newton20/demos/media/materials/scripts/chiropteradm.material (rev 0) +++ branches/ogrenewt/newton20/demos/media/materials/scripts/chiropteradm.material 2009-12-28 20:07:05 UTC (rev 2774) @@ -0,0 +1,1178 @@ + +material chiropteradm000 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture lig_b064-01b.jpg + } + } + + } + +} + +material chiropteradm001 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-01d.jpg + } + } + + } + +} + +material chiropteradm002 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 064-03b.jpg + } + } + + } + +} + +material chiropteradm003 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture lig_064-02w1.jpg + } + } + + } + +} + +material chiropteradm004 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture stone03a.jpg + } + } + + } + +} + +material chiropteradm005 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block02a.jpg + } + } + + } + +} + +material chiropteradm006 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 064-04b.jpg + } + } + + } + +} + +material chiropteradm007 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 032-04c.jpg + } + } + + } + +} + +material chiropteradm008 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-03b.jpg + } + } + + } + +} + +material chiropteradm009 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-02a.jpg + } + } + + } + +} + +material chiropteradm010 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture stone04d.jpg + } + } + + } + +} + +material chiropteradm011 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block01a.jpg + } + } + + } + +} + +material chiropteradm012 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-02c.jpg + } + } + + } + +} + +material chiropteradm013 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture lig_b064-01c.jpg + } + } + + } + +} + +material chiropteradm014 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-02b.jpg + } + } + + } + +} + +material chiropteradm015 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v128-02d.jpg + } + } + + } + +} + +material chiropteradm016 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v128-02a.jpg + } + } + + } + +} + +material chiropteradm017 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture stone05a.jpg + } + } + + } + +} + +material chiropteradm018 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 032-01a.jpg + } + } + + } + +} + +material chiropteradm019 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-03e.jpg + } + } + + } + +} + +material chiropteradm020 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v128-04d.jpg + } + } + + } + +} + +material chiropteradm021 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v128-01a.jpg + } + } + + } + +} + +material chiropteradm022 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture s128-02a.jpg + } + } + + } + +} + +material chiropteradm023 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 128-01a.jpg + } + } + + } + +} + +material chiropteradm024 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 032-01b.jpg + } + } + + } + +} + +material chiropteradm025 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block02b.jpg + } + } + + } + +} + +material chiropteradm026 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 128-comb1.jpg + } + } + + } + +} + +material chiropteradm027 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block02c.jpg + } + } + + } + +} + +material chiropteradm028 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture s128-02b.jpg + } + } + + } + +} + +material chiropteradm029 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block01d.jpg + } + } + + } + +} + +material chiropteradm030 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture grate1a.jpg + } + } + + } + +} + +material chiropteradm031 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v128-03c.jpg + } + } + + } + +} + +material chiropteradm032 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture lig_v192-01ba.jpg + } + } + + } + +} + +material chiropteradm033 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 032-03b.jpg + } + } + + } + +} + +material chiropteradm034 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture stone03d.jpg + } + } + + } + +} + +material chiropteradm035 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 032-04d.jpg + } + } + + } + +} + +material chiropteradm036 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture zbighouse-logo.jpg + } + } + + } + +} + +material chiropteradm037 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block01c.jpg + } + } + + } + +} + +material chiropteradm038 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block02d.jpg + } + } + + } + +} + +material chiropteradm039 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture nnk05stone.jpg + } + } + + } + +} + +material chiropteradm040 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 032-03a.jpg + } + } + + } + +} + +material chiropteradm041 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-02d.jpg + } + } + + } + +} + +material chiropteradm042 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v096-01c.jpg + } + } + + } + +} + +material chiropteradm043 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture sand1b.jpg + } + } + + } + +} + +material chiropteradm044 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v128-02b.jpg + } + } + + } + +} + +material chiropteradm045 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 256-03a.jpg + } + } + + } + +} + +material chiropteradm046 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block01b.jpg + } + } + + } + +} + +material chiropteradm047 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-01a.jpg + } + } + + } + +} + +material chiropteradm048 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture stone03c.jpg + } + } + + } + +} + +material chiropteradm049 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block06b.jpg + } + } + + } + +} + +material chiropteradm050 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture lig_064-02b1.jpg + } + } + + } + +} + +material chiropteradm051 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 096-01c.jpg + } + } + + } + +} + +material chiropteradm052 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 064-02c.jpg + } + } + + } + +} + +material chiropteradm053 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture v064-01c.jpg + } + } + + } + +} + +material chiropteradm054 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture stone04a.jpg + } + } + + } + +} + +material chiropteradm055 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture zbatcula-logo.jpg + } + } + + } + +} + +material chiropteradm056 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture lig_b064-01a.jpg + } + } + + } + +} + +material chiropteradm057 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 128-03a.jpg + } + } + + } + +} + +material chiropteradm058 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 064-01b.jpg + } + } + + } + +} + +material chiropteradm059 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture block06a.jpg + } + } + + } + +} + +material chiropteradm060 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 064-01c.jpg + } + } + + } + +} + +material chiropteradm061 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture 064-02b.jpg + } + } + + } + +} Added: branches/ogrenewt/newton20/demos/media/materials/scripts/primitives.material =================================================================== --- branches/ogrenewt/newton20/demos/media/materials/scripts/primitives.material (rev 0) +++ branches/ogrenewt/newton20/demos/media/materials/scripts/primitives.material 2009-12-28 20:07:05 UTC (rev 2774) @@ -0,0 +1,38 @@ +material ellipsoid000 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture wood.tga + } + } + + } + +} + + +material box000 +{ + technique + { + pass + { + ambient 0.2 0.2 0.2 1 + diffuse 0.7 0.7 0.7 1 + + texture_unit + { + texture BumpyMetal.jpg + } + } + + } + +} \ No newline at end of file Added: branches/ogrenewt/newton20/demos/media/models/chiropteradm.mesh =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/models/chiropteradm.mesh ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: branches/ogrenewt/newton20/demos/media/primitives/box.mesh =================================================================== (Binary files differ) Modified: branches/ogrenewt/newton20/demos/media/primitives/ellipsoid.mesh =================================================================== (Binary files differ) Added: branches/ogrenewt/newton20/demos/media/primitives/textures/BumpyMetal.jpg =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/BumpyMetal.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/blinkyde.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/blinkyde.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/carpet4_w.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/carpet4_w.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/floor_.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/floor_.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/icon.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/icon.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/newtonLogo.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/newtonLogo.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/oldmetal.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/oldmetal.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/ornament1_.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/ornament1_.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/ornament2_.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/ornament2_.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/tiles.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/tiles.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_4.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_4.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_7.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_7.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_8.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_8.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_9.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_9.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_p.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_p.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_w.tga =================================================================== (Binary files differ) Property changes on: branches/ogrenewt/newton20/demos/media/primitives/textures/wall_w.tga ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |