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.
Nadro wrote:You can download it from:
http://www.sendspace.com/file/8lpzoq
cheers,
#ifndef H_XEFFECTS_SQ
#define H_XEFFECTS_SQ
// Based on "CBaseFilter" by ItIsFree.
// Original thread: http://irrlicht.sourceforge.net/phpBB2/ ... 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
Return to Project Announcements
Users browsing this forum: No registered users and 1 guest