Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

3d Max does export Opacity value of an material to Fbx, which in Xna (when importet/processed) can be easily found in BasicEffect of a mesh instance Alpha property (and used in draw method).

My question is:

  1. Can opacity values on animated mesh be exported (specific opacity states/values over time/keyframes) ??

From what I gathered it seems that only Opacity value of the First frame of animated mesh is exported (and found in BasicEffect of mesh). So if in Max there are keyframes with different opacity values and Max animation preview clearly show these transparency transitions when moving scroll, then do not get exported to Fbx.

Are there knows techniques/hacks to inject opacity from animated meshed (values over time/keyframes) to Fbx?

share|improve this question
add comment

1 Answer 1

So, you want to animate the material transparency setting. You might want to use a different format if FBX does not support that, at least for this specific effect, maybe detach to a different mesh, and export as collada file instead for that effect. I don't know if collada is supported in XNA, nor if would support material opacity animation. But is by far a more complete format, allowing a lot more stuff to be ported from a scenery.

I haven't really searched, but some stuff that pops, in case collada is not already supported by default (if not, they should add it) : link 1, link 2

Edit: Collada plugin for Max, info. You can try also with this other one.

share|improve this answer
    
3dMax 2010 does support exporting to Collada format. I've analyzed exported xml and do not see anything that would indicate Opacity setting in animations is exported (only standard positions, rotations, scale for meshes). Is does surprises me that there is almost nothing on web covering this conceptually simple requirement... –  daniel Apr 21 '11 at 14:00
    
Game engines often do this by providing a custom plugin. I am not surprised, remember my mates coders having to implement stuff even for just environmental maps in other engines... I am not aware if is there a native max format loader for XNA, o r a hot link with the engine, something... –  S.gfx Apr 21 '11 at 21:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.