Skip to content

Instantly share code, notes, and snippets.

@alepez
Created May 15, 2013 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alepez/5584415 to your computer and use it in GitHub Desktop.
Save alepez/5584415 to your computer and use it in GitHub Desktop.
Ogre: background with PT_PLANE entity, camera at (0.0, H, 0.0) looking down
plane_ = createEntity("PLANE");
plane_->getSubEntity(0)->setMaterialName("Background");
plane_->setRenderQueueGroup(RENDER_QUEUE_BACKGROUND);
node_ = rootNode()->createChildSceneNode();
node_->attachObject(plane_);
node_->lookAt(Vector3::UNIT_Y, Ogre::Node::TS_WORLD, Ogre::Vector3::UNIT_Z);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment