Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the ambiera forums
i've made a brick texture and a normal map for it.
i made a test scene with irredit, then i tested it with irrlicht renderer. i found that the normal bump is not obvious... it is just like adding outlines to every single brick. lol
i realised that there are some errors when i apply normal map in irredit:
Error: Normal map renderer only supports vertices of type EVT_TANGENTS
Error: Normal map renderer only supports vertices of type EVT_TANGENTS
Error: Normal map renderer only supports vertices of type EVT_TANGENTS
It means you haven't created a mesh with the correct tangents. Look at the Per Pixel Lighting example (#6 I believe, maybe #4) and look at the roommesh, room, and tangentmesh pointers.
Phant0m51 wrote:It means you haven't created a mesh with the correct tangents. Look at the Per Pixel Lighting example (#6 I believe, maybe #4) and look at the roommesh, room, and tangentmesh pointers.
how to create mesh with the correct tangents? not very understand.
scene::IMesh* tangentMesh = smgr->getMeshManipulator()->createMeshWithTangents(
roomMesh->getMesh(0));
room = smgr->addMeshSceneNode(tangentMesh);
room->setMaterialTexture(0, colorMap);
room->setMaterialTexture(1, normalMap);
room->getMaterial(0).EmissiveColor.set(0,0,0,0);
room->setMaterialFlag(video::EMF_FOG_ENABLE, true);
room->setMaterialType(video::EMT_PARALLAX_MAP_SOLID);
room->getMaterial(0).MaterialTypeParam = 0.02f; // adjust height for parallax effect
// drop mesh because we created it with a create.. call.
tangentMesh->drop();
}
ok getting it working now. but this is fully done in dev-c++(disnt use irredit at all). what i want to ask is, can this be done in irredit only? because i am not the programmer of my project. i am just an artist and i am using irredit to create my game scene.