Normal map loaded but texture coords messed up huh?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
xtheagonyscenex
Posts: 131
Joined: Fri Jun 03, 2005 7:26 pm

Normal map loaded but texture coords messed up huh?

Post by xtheagonyscenex »

when i load a normal map using EMT_NORMAL_MAP with a mesh copy using meshmanipulaot->getmesh->cratemeshwithtangents EVT_VERTEXTYPE_TANGENTS the texture coords get messed up and almost appear flipped but when i use meshmanipulator->flipsurfaces it messes it up more and i tried normalize normals as well when i copied the mesh is the a parameter for keeping texture data or something that im missing if anyone has successfully implemented normal maps into the plz help code snippets would be well appreciated thx in advance pls help check back in a few days am on public computer pls have pity. pls help :?: :oops:
"Held in Your arms but too far from my heart." "These thoughts will carry me through the darkest nights...while your eyes rest in mine."
"How quickly I forget that this is meaningless."
genesys
Posts: 75
Joined: Tue Nov 02, 2004 6:49 pm
Contact:

Post by genesys »

did you try to flip your normalmap vertically?
Guest

Post by Guest »

yeah its not that i tried both ways
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

which texture coords get messed up? colorMap,,,, normalsMap????
try this makeplanaretexturemap for normalsMap
you can also do the normalsMao from original diffuse map, but it is ugly
....try your model with perpixel lightning example if everything fails :wink:
what is this thing...
Post Reply