is it possible for example to insert lighting in a 3D Model software like 3DSMAX and export an animated model like md5,..etc. and export the lighting too ?

  • \$\begingroup\$ Do you mean the light position relative to the model? \$\endgroup\$
    – Tordin
    Commented Jan 14, 2014 at 8:48
  • \$\begingroup\$ Yea I mean like spot light on the model,..etc. so that the exported model would have some lighting effects on it \$\endgroup\$
    – Tolba
    Commented Jan 14, 2014 at 8:49

1 Answer 1


If I understand your question correctly, and you need to export the lighting model and not the light info (position, color etc). No, unless that particular lighting model shader was written in GLSL/Cg/HLSL.

3Ds max and other modelling tools use different totally different rendering algorithms, for instance Maya (and probably other programs) use [http://en.wikipedia.org/wiki/Reyes_rendering][1] (with ray tracing) and uses Renderman as its shading language.

While real time rendering engines use different kind of rendering algorithms based on forward rasterization that makes implementing most lighting models and global illumination a totally different thing.

So unless you re-implement what the 3D applications renderer do in your application, or your application just generate your GLSL/Cg/HLSL code for you, and even with that you still have a fairly complex task to integrate it with your real time renderer. it's not possible out of the box.

On the other hand exporting the light info is fairly trivial and you only need to read the exported file in your application and read the light info like {Position, Diffuse, Diffuse Color, Direction, Specular etc)

  • \$\begingroup\$ what kind of animated file format that can export the light info ? \$\endgroup\$
    – Tolba
    Commented Jan 14, 2014 at 11:24
  • \$\begingroup\$ @Tolba I can recall fbx and collada. I am not sure about obj but most probably not. \$\endgroup\$
    – concept3d
    Commented Jan 14, 2014 at 12:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .