OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Sinbad Model
View page
Source of version: 13
(current)
{IMG(fileId="1996",styleimage="border",title="Sinbad",align="right")}{IMG} !General Info This is Sinbad, OGRE's official mascot as of January 2010. His name comes from the community nickname of [http://stevestreeting.com/|Steve Streeting], OGRE's Founder and former Project Lead. The character design and 3D model were made by Zi Ye (aka [http://www.ogre3d.org/forums/memberlist.php?mode=viewprofile&u=21783|omniter]), with input from the OGRE community. The OGRE mesh and Blender scene file are available in the OGRE SDK (1.7 and up) under the [http://creativecommons.org/licenses/by-sa/3.0/|Creative Commons Attribution-Share Alike 3.0 Unported License]. !Animation Sinbad can perform the following actions: * Idle * Run * Jump * Take out swords * Put away swords * Swing swords (vertically or horizontally) * Dance These are achieved by mixing and playing 13 different animations. Some animations control different parts of Sinbad's body, and can be played simultaneously (e.g., swinging the swords while running). Others control the same parts, and are therefore mutually exclusive (e.g., idling or dancing but not both). In addition to the animations, two sword entities can be attached to tag points on Sinbad's hands or sheaths to complete the character. Here is a slightly older video of Sinbad in action: {CODE(ishtml="1")}<iframe src="http://player.vimeo.com/video/8815075" width="400" height="300" frameborder="0"></iframe>{CODE} !Usage !!Simple Setup If you just want to load Sinbad into your application and animate him, first make sure ''media/packs/Sinbad.zip'' is properly loaded. If you don't have that file, [https://bitbucket.org/sinbad/ogre/src/30d58b97248f/Samples/Media/packs/Sinbad.zip|download] it. Now do this in your setup: {CODE(colors="c++")} // Create entity from mesh and attach it to a scene node. SceneNode* node = sceneMgr->getRootSceneNode()->createChildSceneNode(); Entity* ent = sceneMgr->createEntity("Sinbad", "Sinbad.mesh"); node->attachObject(ent); // Set animation blend mode to additive / cumulative. ent->getSkeleton()->setBlendMode(ANIMBLEND_CUMULATIVE); // Get the two halves of the idle animation. baseAnim = ent->getAnimationState("IdleBase"); topAnim = ent->getAnimationState("IdleTop"); // Enable both of them and set them to loop. baseAnim->setLoop(true); topAnim->setLoop(true); baseAnim->setEnabled(true); topAnim->setEnabled(true);{CODE} Now do this in your update every frame: {CODE(colors="c++")}// Update the animations according to elapsed frame time. baseAnim->addTime(elapsedTime); topAnim->addTime(elapsedTime); {CODE} !!Advanced Setup There are many details involved in controlling animated characters - way too many for this article. The Character sample in the SDK provides a full demonstration of Sinbad's capabilities. In particular, refer to the code in ''SinbadCharacterController.h''. The comments should provide a fairly decent explanation of what is going on. !Development The development of Sinbad happened in [http://www.ogre3d.org/forums/viewtopic.php?f=16&t=48856|this thread]. Below are a few images showing Sinbad during various stages of development. {img fileId="1999" thumb="y" rel="box[g]" width="300" desc="Initial Sketch (click to enlarge)" title="Initial Sketch" stylebox="border"} {img fileId="2000" thumb="y" rel="box[g]" width="400" desc="Initial Sketch (click to enlarge)" title="Initial Sketch" stylebox="border"} {img fileId="2003" thumb="y" rel="box[g]" width="400" desc="Model development (click to enlarge)" title="Model development" stylebox="border"} {img fileId="2005" thumb="y" rel="box[g]" width="400" desc="Model development (click to enlarge)" title="Model development" stylebox="border"} %%% !Appearances !!Award for Steve Streeting For creating, publishing, leading and support of Ogre for awesome 10 years, Steve got this award from the Ogre community when he retired from his lead position in 2010. {img fileId="2009" title="The happy day of obtaining the award"} {img fileId="2007" thumb="y" rel="box[g]" width="400" desc="(click to enlarge)" title="Award for Steve Streeting" stylebox="border"} {img fileId="2008" thumb="y" rel="box[g]" width="400" desc="(click to enlarge)" title="Award for Steve Streeting" stylebox="border"} !!Pixel Art {IMG(fileId="1997",title="by Skiriki")}{IMG}{IMG(fileId="1998",title="by omniter")}{IMG} !!Games {img fileId="2006" thumb="y" rel="box[g]" width="400" desc="by Kojack (click to enlarge)" title="by Kojack" stylebox="border"} {img fileId="2002" thumb="y" rel="box[g]" width="400" desc="by tommo (click to enlarge)" title="by tommo" stylebox="border"} {YOUTUBE(movie="http://www.youtube.com/watch?v=Pc_G6K_JhWU",width="400",allowFullScreen="y")}{YOUTUBE} !!Kinect {YOUTUBE(movie="http://www.youtube.com/watch?v=O6xdopI9su4",width="400",allowFullScreen="y")}{YOUTUBE}
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
32 online users