Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: piere on April 22, 2012, 12:58:58 AM

Title: Shadow issues...
Post by: piere on April 22, 2012, 12:58:58 AM
Here is a screenshot of an issue I am having with shadows. When I add the trinity model to the scene, the shadows look fine, but with my custom character, it looks like the shadow is bigger than the actor, and it cuts off. Any Ideas how to solve this?

Title: Re: Shadow issues...
Post by: hubertMichael on April 23, 2012, 08:02:28 PM
I don't know which 3d application you use. Before export your model, in Blender case, you must apply transform.
Title: Re: Shadow issues...
Post by: hubertMichael on April 23, 2012, 08:23:11 PM
and my friend told that in 3ds max there is something like XForm. You must apply this before export.
Title: Re: Shadow issues...
Post by: piere on April 24, 2012, 10:00:27 AM
What is X form?  If it makes any difference, the shadows display perfect for stencil shadows, but when I do flat shadows is when it messes up.
Title: Re: Shadow issues...
Post by: MaaS on April 24, 2012, 03:38:03 PM
xform is a 3dsmax modifier and lets you reset the transformations of an object... You can access it also via Utilities tab, reset xform.
Title: Re: Shadow issues...
Post by: hubertMichael on April 24, 2012, 04:21:10 PM
Exactly. What I know it is like that:  for instance you got 3d model of your character in your 3d application. Let say that you downscaled your model in Z Axis 50 % so for 3d application your model scale is (  (X 100%, Y 100%, Z 100% + downscale modifier Z -50%) = X 100% Y 100% Z 50%). But most of the exporters for game engines doesn't see your modifier, therefore your model in game can be out of scale. X Form merges your modifiers with your model. So your 3d application after X Form will see scale (X 100%, Y 100%, Z 100%) but size of your model will be the same as before X Form. So everybody is happy and exporter will export your model with correct scale.

This can be solution for your problem. If not, keep in mind for futre this tip. It helps you to avoid many bugs.

Sorry for my english, It's not my native.