3D Game Programming Using OGRE ObjectOriented Graphics Rendering Engine - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

3D Game Programming Using OGRE ObjectOriented Graphics Rendering Engine

Description:

Your program should be built based on the materials contained in the main folder. ... src, contains the source code and a subfolder bin. assign_four.sln. ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 6
Provided by: csNct
Category:

less

Transcript and Presenter's Notes

Title: 3D Game Programming Using OGRE ObjectOriented Graphics Rendering Engine


1
3D Game ProgrammingUsing OGRE (Object-Oriented
Graphics Rendering Engine)
  • ???
  • wingo.wong_at_cs.nctu.edu.tw
  • http//www.cs.nctu.edu.tw/cswingo
  • Room 706
  • ext. 56626

2
Assignment four Your program should be built
based on the materials contained in the main
folder.
3
Assignment Three File Organization
  • \assign_four, the main folder
  • 00README.txt, contains student name, student ID,
    student email address and description of the
    program state on what platform the program is
    implemented
  • \html, contains the documentation generated by
    doxygen
  • \src, contains the source code and a subfolder
    \bin
  • assign_four.sln
  • .cpp files and .h files and other related files
  • \bin
  • \Media \\ stores fonts, textures, scripts,
    etc
  • \plugin
  • \sound
  • assign_four.exe
  • dll files \\ dynamic linked libraries
  • \lib
  • \Dependencies
  • \Ogre

4
Hints life bar for ship
  • 1. Prepare a texture which has the image of the
    digits from 0 to 9.
  • 2. Create entities and manually define a quad for
    each entity
  • 3. Setup the texture coordinates for the quad of
    each entity
  • 4. Attach each entity to one scene node

5
Hints BAR_2D
  • Initialization
  • mLifeBar new BAR_2D(mSceneMgr, a_MaterialName,
    NULL)
  • mLifeBar-gtsetDefaultPos(0.7, 0.4) //normalized
  • mLifeBar-gtsetBarDimension(0.3, 0.01)
    //normalized
  • mLifeBar-gtsetInfo(mCurLife, mMaxLife)
  • mLifeBar-gtupdate(NULL, 0)
  • Example
  • a_MaterialName is wago_game/LifeBar.
  • You should prepare your own image for the life
    bar.
  • Update
  • mLifeBar-gtsetInfo(mCurLife, mMaxLife)
  • mLifeBar-gtupdate(NULL, 0)
Write a Comment
User Comments (0)
About PowerShow.com