normal not obvious

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

normal not obvious

Post by Virion »

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

Image

any suggestions? :oops:
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Have you added a light?
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

i got 2 light sources. one at the front, one at the side. oh maybe it's too bright?
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

i've reduced to 1 light source, and reduce the radius of light to 50. but it still look like the same.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

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
what is that mean?
Phant0m51
Posts: 106
Joined: Mon Jan 15, 2007 6:07 am

Post by Phant0m51 »

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.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

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. :oops:
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

You mean this?:

Code: Select all

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();
	}
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

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.
Image
Post Reply