You mix that with a fancy normal/parallax map and some glowing and you got an almost next gen graphics....
BTW, does that support irr normal and parallax? Or will you have to implement another shader and stuff?
ent1ty wrote:Edit: maybe I am blind, but where is some example code how to use shadows?
irr::deferred::initDeferredRendering(smgr);Kalango wrote:You mix that with a fancy normal/parallax map and some glowing and you got an almost next gen graphics....
BTW, does that support irr normal and parallax? Or will you have to implement another shader and stuff?

ent1ty wrote:Just tested it, it's so cool![]()
Just one question, i have terrain and a cube. The terrain casts shadows on itself, but the cube does not cast shadows on the terrain. Why?
ITerrainSceneNode* terrain= smgr->addTerrainSceneNode("level.bmp");
terrain->setScale(vector3df(1,0.2,1));
terrain->setMaterialTexture(0, video->getTexture("texture.jpg"));
ILightSceneNode* light= smgr->addLightSceneNode(0, vector3df(50,60,50), SColorf(1.0,1.0, 1.0), 2000);
//light->addAnimator(smgr->createFlyCircleAnimator(vector3df(0,50,0), 100, 0.0005, vector3df(0, 1, 0)));
IBillboardSceneNode* billlight= smgr->addBillboardSceneNode(light);
billlight->setMaterialTexture(0, video->getTexture("texture.jpg"));
billlight->setMaterialFlag(EMF_LIGHTING, false);
IMeshSceneNode* kubo= smgr->addCubeSceneNode(5, 0, -1, vector3df(50,10,50));
kubo->setMaterialTexture(0, video->getTexture("detailmap.jpg"));
ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 40, 0.1, -1);
camera->setNearValue(0.1);
camera->setFarValue(1000);
device->getCursorControl()->setVisible(false);
ITerrainSceneNode* terrain= smgr->addTerrainSceneNode("level.bmp");
terrain->setScale(vector3df(1,0.2,1));
terrain->setMaterialTexture(0, video->getTexture("texture.jpg"));
ILightSceneNode* light= smgr->addLightSceneNode(0, vector3df(50,40,50), SColorf(0.5,0.5, 1.0), 500);
IMeshSceneNode* cube= smgr->addCubeSceneNode(5, 0, -1, vector3df(50,20,50));
cube->setMaterialTexture(0, video->getTexture("texture.jpg"));
ent1ty wrote:Here you go http://www.megaupload.com/?d=ETW23LCA
There is no GLSL error in console, just 'Unsupported texture format'
ILightSceneNode* light= smgr->addLightSceneNode(0, vector3df(50,40,50), SColorf(1,0.8, .6), 500);
SLight lightdata= light->getLightData();
lightdata.Direction= vector3df(50,0,50);
lightdata.OuterCone= 40;
lightdata.Type= ELT_SPOT;
light->setLightData(lightdata);ILightSceneNode* light= smgr->addLightSceneNode(0, vector3df(50,40,50), SColorf(1,0.8, .6), 500);
light->setLightType(ELT_SPOT);Return to Project Announcements
Users browsing this forum: Google [Bot], Ovan and 1 guest