chrono::irrlicht::ChIrrWizard Class Reference

Description

Class with static functions which allow creation of Irrlicht frequent 'scene nodes' like lights, camera, sky box etc.

with very simple statements.

#include <ChIrrWizard.h>

Static Public Member Functions

static void add_typical_Logo (irr::IrrlichtDevice *device, const std::string &mlogofilename=GetChronoDataFile("logo_chronoengine_alpha.png"))
 A very basic and simple function which is just a shortcut to avoid lot of typing when someone wants to add a logo in a 3D scene, using Irrlicht.
 
static void add_typical_Lights (irr::IrrlichtDevice *device, irr::core::vector3df pos1=irr::core::vector3df(30.f, 100.f, 30.f), irr::core::vector3df pos2=irr::core::vector3df(30.f, 80.f, -30.f), double rad1=290, double rad2=190, irr::video::SColorf col1=irr::video::SColorf(0.7f, 0.7f, 0.7f, 1.0f), irr::video::SColorf col2=irr::video::SColorf(0.7f, 0.8f, 0.8f, 1.0f))
 A very basic and simple function which is just a shortcut to avoid lot of typing when someone wants to add two lights in a 3D scene, using Irrlicht. More...
 
static void add_typical_Sky (irr::IrrlichtDevice *device, const std::string &mtexturedir=GetChronoDataFile("skybox/"))
 A very basic and simple function which is just a shortcut to avoid lot of typing when someone wants to add a sky dome (sky box) in a 3D scene, using Irrlicht. More...
 
static void add_typical_Camera (irr::IrrlichtDevice *device, irr::core::vector3df mpos=irr::core::vector3df(0, 0, -8), irr::core::vector3df mtarg=irr::core::vector3df(0, 0, 0))
 A very basic and simple function which is just a shortcut to avoid lot of typing when someone wants to add a Maya-like camera in a Irrlicht 3D scene. More...
 

Member Function Documentation

◆ add_typical_Camera()

void chrono::irrlicht::ChIrrWizard::add_typical_Camera ( irr::IrrlichtDevice *  device,
irr::core::vector3df  mpos = irr::core::vector3df(0, 0, -8),
irr::core::vector3df  mtarg = irr::core::vector3df(0, 0, 0) 
)
static

A very basic and simple function which is just a shortcut to avoid lot of typing when someone wants to add a Maya-like camera in a Irrlicht 3D scene.

The camera rotation/pan is controlled by mouse left and right buttons, the zoom is controlled by mouse wheel or rmb+lmb+mouse, the position can be changed also with keyboard up/down/left/right arrows, the height can be changed with keyboard 'PgUp' and 'PgDn' keys. Optional parameters are position and target. Note: if you want more precise control on camera specs, just use plain commands of Irrlicht.

◆ add_typical_Lights()

void chrono::irrlicht::ChIrrWizard::add_typical_Lights ( irr::IrrlichtDevice *  device,
irr::core::vector3df  pos1 = irr::core::vector3df(30.f, 100.f, 30.f),
irr::core::vector3df  pos2 = irr::core::vector3df(30.f, 80.f, -30.f),
double  rad1 = 290,
double  rad2 = 190,
irr::video::SColorf  col1 = irr::video::SColorf(0.7f, 0.7f, 0.7f, 1.0f),
irr::video::SColorf  col2 = irr::video::SColorf(0.7f, 0.8f, 0.8f, 1.0f) 
)
static

A very basic and simple function which is just a shortcut to avoid lot of typing when someone wants to add two lights in a 3D scene, using Irrlicht.

Note: if you want more precise control on lights, just use plain commands of Irrlicht.

◆ add_typical_Sky()

void chrono::irrlicht::ChIrrWizard::add_typical_Sky ( irr::IrrlichtDevice *  device,
const std::string &  mtexturedir = GetChronoDataFile("skybox/") 
)
static

A very basic and simple function which is just a shortcut to avoid lot of typing when someone wants to add a sky dome (sky box) in a 3D scene, using Irrlicht.

Note: it is assumed that the specified "mtexturedir" directory contains the following three texture images: sky_lf.jpg, sky_up.jpg, sky_dn.jpg


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_irrlicht/ChIrrWizard.h
  • /builds/uwsbel/chrono/src/chrono_irrlicht/ChIrrWizard.cpp