What happend to mesh after applying lightmap?

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
_Neo
Posts: 30
Joined: Thu May 24, 2012 7:47 pm
Location: SiChuan, China

What happend to mesh after applying lightmap?

Post by _Neo »

Basically, I use newton dynamics for physics simulation.And I have to extract vertices and vector to create Newton Collison object,
but the problem is, the mesh's vertices cannot be extracted correctly after the light map is applied in the map.
So I just wondering what happened to mesh after lightmap is used and how to get correct vertices in this condition?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: What happend to mesh after applying lightmap?

Post by hybrid »

You probably use the base SMesh, while lightmapped meshes have special vertex types. You have to do the casts properly.
Post Reply