I'm not sure if this is possible (or if I'm asking the right question). I have a vertices/indices and I render in a scene in DirectX 9.0. Now, I'd like to add ambient and diffuse lights, and then get the final resulting calculated Diffuse Shade of each vertex. So basically, have a sun, and then different point lights around. I guess it would be similar to how Blender would do it. Then I want to get the final result of each vertex, and write it off to a file statically (no dynamic lighting). Then it will go into a game which uses static diffuse color per vertex. So it wouldn't depend on camera, the lighting, only on the static point/sun.
I don't think I can use DirectX lighting, because that doesn't appear to let you get the final RGB of the final vertices for export?
Does anyone have algorithms? Or a way to somehow add lights in DirectX and then get final result?