Search found 4 matches

by napeHeK
Tue Jul 05, 2011 7:20 pm
Forum: Project Announcements
Topic: Realistic water scene node
Replies: 255
Views: 341043

Re: Realistic water scene node (updated)

This class will only work if you specify a parent node...
ISceneManager* smgr = CCore::app()->getSceneManager();
IVideoDriver* driver = CCore::app()->getDriver();

RealisticWaterSceneNode* water = new RealisticWaterSceneNode(
smgr, 512, 512, driver->getTexture("media/waterbump.png ...
by napeHeK
Sun Feb 13, 2011 3:46 pm
Forum: Advanced Help
Topic: Terrain question
Replies: 0
Views: 574

Terrain question

How can create a terrain from the height's array (unsigned char *)?

Agreed...

Code: Select all

IReadFile *map = device->getFileSystem()->createMemoryReadFile(data, 65536 * sizeof(unsigned char), "heightmap");
//...
terrainSceneNode->loadHeightMapRAW(map);
by napeHeK
Thu Sep 23, 2010 7:30 pm
Forum: Beginners Help
Topic: I can not create material...shaders
Replies: 3
Views: 500

I do not know English, on it I have tried to briefly write. Error ...
irr:: s32 irr:: video:: IGPUProgrammingServices:: addHighLevelShaderMaterialFromFiles (const irr:: io:: path &, const irr:: c8 *, irr:: video:: E_VERTEX_SHADER_TYPE, const irr:: io:: path &, const irr:: c8 *, irr:: video:: E ...
by napeHeK
Thu Sep 23, 2010 7:13 pm
Forum: Beginners Help
Topic: I can not create material...shaders
Replies: 3
Views: 500

I can not create material...shaders

This code is taken from the examples, but it does not work...
newMaterialType1 = gpu->addHighLevelShaderMaterialFromFiles(
"terrainShader.hlsl", "vertexMain", EVST_VS_2_0,
"terrainShader.hlsl", "pixelMain", EPST_PS_2_0,
mc, EMT_SOLID, 0);

What am I doing wrong?