Fly3D SDK Guide - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Fly3D SDK Guide

Description:

menu, car, gamelib, lights, panorama, ship, viewport, volfog, bezobj, ... gamelib, lights, bezobj, volfog, panorama, viewport, subdivsurf, cartoon, weapon, ... – PowerPoint PPT presentation

Number of Views:73
Avg rating:3.0/5.0
Slides: 14
Provided by: jaeh3
Category:
Tags: fly3d | sdk | guide | panorama

less

Transcript and Presenter's Notes

Title: Fly3D SDK Guide


1
Fly3D SDK Guide
  • Jaeho Kim
  • VR Lab. KAIST

2
Contents
  • Introduction to Fly3D
  • Engine Design
  • Software Architecture
  • Plug-ins
  • Conclusions

3
Introduction to Fly3D
  • A Game engine all written in C
  • OpenGL 1.1 as the 3D API
  • DirectInput for mouse and Keyboard
  • DirectSound for 3D sounds
  • DirectPlay for multiplayer
  • All you need to do to create a new game is
    building new plug-ins

4
Introduction to Fly3D
  • What is included
  • flyFrontend, flyEditor, flyLight, flyPVS
  • Plugins with source code
  • menu, car, gamelib, lights, panorama, ship,
    viewport, volfog, bezobj, weapon
  • Utilities
  • flypak, expflybsp, impflybsp, q2flybsp,q2md2fly,q3
    flybsp, and so on
  • Demos

5
Engine Design
  • Is based on BSP(Binary Space Partitioning)
    technology
  • Example Games
  • 1st person shooter game
  • Car racing and pursuit game
  • 3D strategy game

6
Engine Design
  • Developing Game
  • Building the environment or level using a
    modeling utility or editor
  • Writing plug-ins to define different behaviors,
    both visual and dynamic for the game objects
  • Refer given plug-ins with source code

7
Fly3D SDK Demo
8
Software Architecture
  • The classes defined in the Fly3D.dll
  • vector, mat4x4
  • boudbox,plane,vertex,face
  • local_system,sound,base_object
  • mesh,anim_mesh,stripfan_mesh
  • bezier_curve,bezier_path,particle
  • bsp_node,bsp_object,static_mesh
  • light_map,light_map_pic,light_vertex
  • class_desc,flydll,flydllgroup,directX,picture,cons
    ole,flyEngine
  • flyEngine flyengine

9
Plug-ins
  • DLL files that defines new classes derived from
    the bsp_object class
  • bsp_object class is derived from particle.
  • Given plug-ins
  • gamelib, lights, bezobj, volfog, panorama,
    viewport, subdivsurf, cartoon, weapon, menu,
    ship, walk, car

10
Plug-ins
  • bsp_object virtual functions
  • virtual void init()
  • virtual int step(int dt)
  • virtual bsp_object clone()
  • virtual mesh get_mesh()
  • virtual mesh ray_intersect()
  • virtual int get_custom_param_desc()
  • virtual int message()

11
Plug-ins
  • Camera and Scene Drawing
  • flyengine-gtset_camera(camobj)
  • flyengine-gtdraw_bsp()
  • Text Output
  • flyengine?start_text_mode()
  • char str64
  • sprintf(str,FPSi Ni,flyengine?fame_rate,
    flyengine?nodedrawcount)
  • flyengine?draw_text(0,0,str)
  • flyengine?end_text_mode()

12
Plug-ins
  • Rendering API
  • void my_objectdraw()
  • glPushMatrix()
  • glTranslatef(pos.x, pos.y, pos.z)
  • glBlendFunc(GL_ONE, GL_ONE)
  • my_mesh?draw()
  • glBlendFunc(GL_SRC_ALPHA,
  • GL_ONE_MINUS_SRC_ALPHA)
  • glPopMatrix()

13
Conclusion
  • http//www.fly3d.com.br
  • Install the SDK in your computer, then execute
    modify given demos.
  • Project Assignment 1 will be given after some
    days.
Write a Comment
User Comments (0)
About PowerShow.com