1 / 17

The Sword: A Role Playing Game for Demonstrating Computer Graphics Techniques

The Sword: A Role Playing Game for Demonstrating Computer Graphics Techniques. Joshua R. New Computer Graphics Jacksonville State University. Outline. Introduction 2D Transparent, Image-based Font 3D ANSI/Symbol Font Fog Model Loading Animated Texture Particle System

kassia
Download Presentation

The Sword: A Role Playing Game for Demonstrating Computer Graphics Techniques

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Sword: A Role Playing Game for Demonstrating Computer Graphics Techniques Joshua R. New Computer Graphics Jacksonville State University

  2. Outline • Introduction • 2D Transparent, Image-based Font • 3D ANSI/Symbol Font • Fog • Model Loading • Animated Texture • Particle System • Video w/ Environmental Mapping

  3. Introduction • The Sword – An RPG for demonstrating computer graphics techniques • Created using C++ and OpenGL • Most insight gained from Nehe’s OpenGL tutorials http://nehe.gamedev.net/ • Computer Graphics by Dr. Mario Aguilar

  4. 2D Transparent,Image-Based Font • Load file and create font texture for HUD TGA_Load(&font_texture, "Art/font.tga", GL_LINEAR, GL_LINEAR); Alpha Channel Targa Image (*.tga)

  5. Transparent Text Example 2D Transparent,Image-Based Font

  6. 3D ANSI/Symbol Font wglUseFontOutlines( base,… //Start of display lists 0.2f, // Font thickness in Z direction WGL_FONT_POLYGONS,…) //Not lines printf(“FPS = %2.0f”,fps); glPrint(x, y, char *text)

  7. 3D ANSI/Symbol Font Texture Effects: Gray Color, Object Linear, Eye Linear, Sphere Map

  8. Fog fogMode[]={GL_exp, GL_exp2, GL_linear, GL_none} glFogi(GL_FOG_MODE, fogMode[fogfilter]); glFogf(GL_FOG_START, 30.0f); glFogf(GL_FOG_END, 190.0f); glFogf(GL_FOG_DENSITY, 0.007f); glFogfv(GL_FOG_COLOR, fogColor); glHint(GL_FOG_HINT, GL_DONT_CARE); glEnable(GL_FOG);

  9. Fog L I N E A R N O N E E X P 2 E X P

  10. Model Loading Milkshape 3D: Program for building, coloring, texture-mapping, and animating 3D models (*.ms3d) The One Sword Screenshot of MS3D Bubbling Cauldron

  11. Animated Texture • Animate when the player is close to the texture (replicates a waving flag effect) • - Change height value of each vertex according to a sinusoidal wave in order to create a 3D mesh Bitmap Image Sinusoidal Height Waving Texture Waving Lines

  12. Flare (*.tga) Particle System • Load *.tga for a single particle • Particle system creates multiple images with specified properties • Number of particles per second • Properties (color, position, size) • Behavior (spread, velocity, gravity, attraction, etc.)

  13. Particle System B l e n d i n g O f f B l e n d i n g O n

  14. Particle System E X P L O S I O N I M P L O S I O N

  15. Video w/ Env. Mapping • Open AVI file • Grab the next frame and treat as bitmap • Environmental mapping – mapping of a texture from the environment to a surface in order to replicate reflections:

  16. Video w/ Env. Mapping SPHEREMAP Off SPHEREMAP On

  17. Future Directions • Additional graphical techniques • Shadows using stencil buffer • Picking for selection of objects • Masking for appearance of 3D depth • Multi-texturing • New MS3D loader • Integration with gaming engine

More Related