BCXDX


Navigation:

Irrlicht 3D Engine

Irrlicht is a powerful and fast 3D engine. 

  •  Easy of using.
  •  Has a very big Forum.
  •  Render with DX9,DX8,OpenGl
  •  Open Source code.

take a look here.

let me see ScreenShots.


New MagicLibrary for Irrlicht, it is an addon static library , so you could use it without changing the Engine

http://www.freewebs.com/bcxgl/index.htm


  Note well

I have changed the Engine so that allow many features of BCXDX to works correctly with it.

Because of  BCXDX works with DX9 [ not with DX8 nor OpenGl ] , i have removed the OpenGl and DX8 from Engine.  

   Changes

  • allow locking background.
  • removed first param from createDevice Function ,always for DX9.


Sample Program

$Cpp
$Library "Irrlicht.lib"

$Header
#include "irrlicht.h"
// Irrlicht Namespaces
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

#include "CAnimSprite.cpp"

$Header

Global irrDevice as IrrlichtDevice ptr
irrDevice = createDevice(dimension2d<s32>(640,480),32,false,false,false,0)

irrDevice->setWindowCaption(L"Animation 2D Sprite")

Global irrVideo as IVideoDriver ptr
irrVideo = irrDevice->getVideoDriver()

Global irrSceneMgr as ISceneManager ptr
irrSceneMgr = irrDevice->getSceneManager()

Global Sprite as TAnimSpriteSceneNode ptr
Sprite = new TAnimSpriteSceneNode(irrSceneMgr->getRootSceneNode(), irrSceneMgr, 666)
Sprite->Load("media/sonwalk.bmp",0,0,40*8,40,40,40,true)
'Sprite->Load("media/sonwalk.bmp",432,54)
Sprite->setSpeed(100)
'Sprite->PlayBackward()


irrSceneMgr->addCameraSceneNode(0, vector3df(0,0,-1.5), vector3df(0,0,0))

!int lastFPS = -1;
While  irrDevice->run()
       irrVideo->beginScene(true, true, SColor(0,200,200,200))
                  static rt!
                  rt += 0.001
                  Sprite->setPosition(vector3df(-0.5,0.1,0))
                  Sprite->setRotation(vector3df(0,0,rt))  
                  Sprite->setScale(vector3df(2,2,0))   
                  Sprite->Update()
                  'Sprite->setFrame(7)
                  irrSceneMgr->drawAll()
       irrVideo->endScene()
       $Ccode
         int fps = irrVideo->getFPS();
         if (lastFPS != fps)
         {
             stringw str = L"Irrlicht Engine - example [";
             str += irrVideo->getName();
             str += "] FPS:";
             str += fps;
             irrDevice->setWindowCaption(str.c_str());   
             lastFPS = fps;
         }
       $Ccode
Wend    
irrDevice->drop()                    


Downloading

   Dev-C++ version 

 

  VcToolKit2003 version

Classes & DxDemos version 0.3


Tutorials

I have wrote some tutorial for Irrlicht Engine.


Screen shots of BCXDX9 & Irrlicht

      

                     Scroll demo                                               Horez. Scroll


                               AI Demo

Download the exe and source code demo here.



© 2005 All Rights Reserved.


Create a free website at Webs.com