XNA Creators Club Online
Page 1 of 1 (5 items)
Sort Posts: Previous Next

Can a modeler export lighting with a model?

Last post 04/11/2009 4:43 by jwatte. 4 replies.
  • 03/11/2009 22:12

    Can a modeler export lighting with a model?

    Hello, XNA community.

    My artist was wondering if light sources could be exported with the .fbx file and processed by XNA. She uses Maya 2009.

    ...I don't know if there's any other information that might be needed.

    Well--ask if there is something you need to know.
  • 03/11/2009 22:27 In reply to

    Re: Can a modeler export lighting with a model?

    Answer
    Reply Quote
    A lot of the packages and formats can export the cameras and lights, but the XNA Content pipline does not bring them in in their current form. You would have to write your own wrapper around the standard importers to take the lights.
  • 03/11/2009 22:30 In reply to

    Re: Can a modeler export lighting with a model?

    Ah, okay. Thanks for the quick reply!
  • 04/11/2009 1:51 In reply to

    Re: Can a modeler export lighting with a model?

    You can bake lighting into the model textures if you have static meshes with static lighting.
  • 04/11/2009 4:43 In reply to

    Re: Can a modeler export lighting with a model?

    Another option is to create a dummy/null node and name it something special (like "light_omni_<range>_<color>"), and then pick that out as a Bone when you load the Model, and apply the appropriate lighting. It's rather more cumbersome than using the regular lights, but at least it works without writing any custom content importers and processors.
    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
Page 1 of 1 (5 items) Previous Next