Really nice work.

Has anybody an idea how the get the waves moving? Probably i am doing something wrong...
I am using Irrlicht 1.7.2 and an NVIDIA GeForce 8800 GT on Linux Mint 12 (OpenGL) .
Thanks in advance.
Hi Nadro, thanks for the link! I've been working on a demo using Irrlicht and realize that the AddShadowVolumeSceneNode slows down my pc when added to many meshes on screen. So i've been looking for an alternative shadow effect. I'm wondering why the feature to generate shadows efficiently like in XEffects is not added into Irrlicht natively?
Code: Select all
#ifndef H_XEFFECTS_SQ
#define H_XEFFECTS_SQ
// Based on "CBaseFilter" by ItIsFree.
// Original thread: http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=9857
// Cleaned-up by SiO2: removed redundant vertexes and fixed index list.
#include <irrlicht.h>
class CScreenQuad
{
public:
CScreenQuad()
{
Material.Wireframe = false;
Material.Lighting = false;
Material.ZWriteEnable = false;
Vertices[0] = irr::video::S3DVertex(-1.0f,-1.0f,0.0f,0,0,1,irr::video::SColor(0x0),0.0f,1.0f);
Vertices[1] = irr::video::S3DVertex(-1.0f, 1.0f,0.0f,0,0,1,irr::video::SColor(0x0),0.0f,0.0f);
Vertices[2] = irr::video::S3DVertex( 1.0f, 1.0f,0.0f,0,0,1,irr::video::SColor(0x0),1.0f,0.0f);
Vertices[3] = irr::video::S3DVertex( 1.0f,-1.0f,0.0f,0,0,1,irr::video::SColor(0x0),1.0f,1.0f);
}
virtual void render(irr::video::IVideoDriver* driver)
{
const irr::u16 indices[6] = {0, 1, 2, 0, 2, 3};
driver->setMaterial(Material);
driver->setTransform(irr::video::ETS_WORLD, irr::core::matrix4());
driver->drawIndexedTriangleList(&Vertices[0], 4, &indices[0], 2);
}
virtual irr::video::SMaterial& getMaterial()
{
return Material;
}
irr::video::ITexture* rt[2];
private:
irr::video::S3DVertex Vertices[4];
irr::video::SMaterial Material;
};
#endif