ASE file load problem

Aug 25, 2010 at 10:35 PM

Hello,

I exported a simple cube form Blender (blender.org) using the "Blender 2.41-2.43 ASE export - Goofos" script found at http://www.katsbits.com/tools/

Trying to load it with Balder gives me the following exception:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)Timestamp: Wed, 25 Aug 2010 21:22:18 UTC

Message: Unhandled Error in Silverlight Application Code: 4004    Category: ManagedRuntimeError       Message: System.FormatException: Input string was not in a correct format.   at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)   at System.Single.Parse(String s, IFormatProvider provider)   at Balder.Assets.AssetLoaders.AseParser.VertexScopeHandler(AseGlobals globals, Object scopeObject, String propertyName, String content)   at Balder.Assets.AssetLoaders.AseParser.Parse(String assetName, List`1 lines, IAssetLoaderService assetLoaderService, IContentManager contentManager)   at Balder.Assets.AssetLoaders.AseLoader.Load(String assetName)   at Balder.Content.ContentManager.LoadInto[T](T asset, String assetName)   at Balder.Objects.Geometries.Mesh.Prepare(Viewport viewport)   at Balder.Node.OnPrepare(Viewport viewport)   at Balder.Rendering.NodeRenderingService.Prepare(Viewport viewport, INode node)   at Balder.Rendering.NodeRenderingService.Prepare(Viewport viewport, NodeCollection nodes)   at Balder.Scene.Prepare(Viewport viewport)   at Balder.Display.Viewport.Prepare(PrepareMessage prepareMessage)   at Balder.Execution.MessageSubscriptions`1.Notify(T message)   at Balder.Execution.MessengerContext.Send[T](T message)   at Balder.Display.Silverlight.Display.Prepare()   at Balder.Rendering.Silverlight.RenderEventHandler.Invoke()   at Balder.Rendering.Silverlight.RenderingManager.ShowTimer(Object sender, EventArgs e)   at System.Windows.Media.CompositionTarget.OnRendering(Object sender, RenderingEventArgs e)   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)     
Line: 56Char: 13Code: 0URI: http://localhost:19344/ThreeDeeModelTestTestPage.aspx

I have set the model (Cube.ase) as a Resource.  The file looks like this:

*3DSMAX_ASCIIEXPORT	200
*COMMENT "Exported from Blender 249 - Wed Aug 25 13:08:25 2010"
*SCENE {
*SCENE_FILENAME ""
*SCENE_FIRSTFRAME 0
*SCENE_LASTFRAME 30
*SCENE_FRAMESPEED 30
*SCENE_TICKSPERFRAME 160
*SCENE_BACKGROUND_STATIC 1.0000 1.0000 1.0000
*SCENE_AMBIENT_STATIC 0.3000 0.3000 0.3000
}
*MATERIAL_LIST {
*MATERIAL_COUNT 1
*MATERIAL 0 {
*MATERIAL_NAME "Material"
*MATERIAL_CLASS "Standard"
*MATERIAL_AMBIENT 0.0000   0.0000   0.0000
*MATERIAL_DIFFUSE 0.8000   0.8000   0.8000
*MATERIAL_SPECULAR 1.0000   1.0000   1.0000
*MATERIAL_SHINE 0.5000
*MATERIAL_SHINESTRENGTH 0.0978
*MATERIAL_TRANSPARENCY 0.0000
*MATERIAL_WIRESIZE 1.0000
*MATERIAL_SHADING Blinn
*MATERIAL_XP_FALLOFF 0.0000
*MATERIAL_SELFILLUM 0.0000
*MATERIAL_FALLOFF In
*MATERIAL_XP_TYPE Filter
}
}
*GEOMOBJECT {
*NODE_NAME "Cube"
*NODE_TM {
*NODE_NAME "Cube"
*INHERIT_POS 0 0 0
*INHERIT_ROT 0 0 0
*INHERIT_SCL 0 0 0
*TM_ROW0 1.0000 0.0000 -0.0000
*TM_ROW1 -0.0000 1.0000 -0.0000
*TM_ROW2 0.0000 -0.0000 1.0000
*TM_ROW3 0.0000 0.0000 -0.0000
*TM_POS 0.0000 0.0000 0.0000
*TM_ROTAXIS 1.0000 0.0000 0.0000
*TM_ROTANGLE 0.0000
*TM_SCALE 1.0000 1.0000 1.0000
*TM_SCALEAXIS 1.0000 0.0000 0.0000
*TM_SCALEAXISANG 0.0000
}
*MESH {
*TIMEVALUE 0
*MESH_NUMVERTEX 8
*MESH_NUMFACES 12
*MESH_VERTEX_LIST {
*MESH_VERTEX 0   1.0000   1.0000   -1.0000
*MESH_VERTEX 1   1.0000   -1.0000   -1.0000
*MESH_VERTEX 2   -1.0000   -1.0000   -1.0000
*MESH_VERTEX 3   -1.0000   1.0000   -1.0000
*MESH_VERTEX 4   1.0000   1.0000   1.0000
*MESH_VERTEX 5   1.0000   -1.0000   1.0000
*MESH_VERTEX 6   -1.0000   -1.0000   1.0000
*MESH_VERTEX 7   -1.0000   1.0000   1.0000
}
*MESH_FACE_LIST {
*MESH_FACE    0:    A:    0 B:    1 C:    2 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    1:    A:    2 B:    3 C:    0 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    2:    A:    4 B:    7 C:    6 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    3:    A:    6 B:    5 C:    4 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    4:    A:    0 B:    4 C:    5 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    5:    A:    5 B:    1 C:    0 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    6:    A:    1 B:    5 C:    6 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    7:    A:    6 B:    2 C:    1 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    8:    A:    2 B:    6 C:    7 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE    9:    A:    7 B:    3 C:    2 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE   10:    A:    4 B:    0 C:    3 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
*MESH_FACE   11:    A:    3 B:    7 C:    4 AB:    1 BC:    1 CA:    0    *MESH_SMOOTHING    *MESH_MTLID 0
}
*MESH_NORMALS {
*MESH_FACENORMAL 0   0.0000   0.0000   -1.0000
*MESH_VERTEXNORMAL 0   0.6667   0.3333   -0.6667
*MESH_VERTEXNORMAL 1   0.4082   -0.8165   -0.4082
*MESH_VERTEXNORMAL 2   -0.6667   -0.3333   -0.6667
*MESH_FACENORMAL 1   0.0000   -0.0000   -1.0000
*MESH_VERTEXNORMAL 2   -0.6667   -0.3333   -0.6667
*MESH_VERTEXNORMAL 3   -0.4082   0.8165   -0.4082
*MESH_VERTEXNORMAL 0   0.6667   0.3333   -0.6667
*MESH_FACENORMAL 2   0.0000   0.0000   1.0000
*MESH_VERTEXNORMAL 4   0.3333   0.6667   0.6667
*MESH_VERTEXNORMAL 7   -0.8165   0.4082   0.4082
*MESH_VERTEXNORMAL 6   -0.3333   -0.6667   0.6667
*MESH_FACENORMAL 3   0.0000   -0.0000   1.0000
*MESH_VERTEXNORMAL 6   -0.3333   -0.6667   0.6667
*MESH_VERTEXNORMAL 5   0.8165   -0.4082   0.4082
*MESH_VERTEXNORMAL 4   0.3333   0.6667   0.6667
*MESH_FACENORMAL 4   1.0000   -0.0000   -0.0000
*MESH_VERTEXNORMAL 0   0.6667   0.3333   -0.6667
*MESH_VERTEXNORMAL 4   0.3333   0.6667   0.6667
*MESH_VERTEXNORMAL 5   0.8165   -0.4082   0.4082
*MESH_FACENORMAL 5   1.0000   -0.0000   0.0000
*MESH_VERTEXNORMAL 5   0.8165   -0.4082   0.4082
*MESH_VERTEXNORMAL 1   0.4082   -0.8165   -0.4082
*MESH_VERTEXNORMAL 0   0.6667   0.3333   -0.6667
*MESH_FACENORMAL 6   -0.0000   -1.0000   -0.0000
*MESH_VERTEXNORMAL 1   0.4082   -0.8165   -0.4082
*MESH_VERTEXNORMAL 5   0.8165   -0.4082   0.4082
*MESH_VERTEXNORMAL 6   -0.3333   -0.6667   0.6667
*MESH_FACENORMAL 7   -0.0000   -1.0000   0.0000
*MESH_VERTEXNORMAL 6   -0.3333   -0.6667   0.6667
*MESH_VERTEXNORMAL 2   -0.6667   -0.3333   -0.6667
*MESH_VERTEXNORMAL 1   0.4082   -0.8165   -0.4082
*MESH_FACENORMAL 8   -1.0000   0.0000   -0.0000
*MESH_VERTEXNORMAL 2   -0.6667   -0.3333   -0.6667
*MESH_VERTEXNORMAL 6   -0.3333   -0.6667   0.6667
*MESH_VERTEXNORMAL 7   -0.8165   0.4082   0.4082
*MESH_FACENORMAL 9   -1.0000   0.0000   -0.0000
*MESH_VERTEXNORMAL 7   -0.8165   0.4082   0.4082
*MESH_VERTEXNORMAL 3   -0.4082   0.8165   -0.4082
*MESH_VERTEXNORMAL 2   -0.6667   -0.3333   -0.6667
*MESH_FACENORMAL 10   0.0000   1.0000   0.0000
*MESH_VERTEXNORMAL 4   0.3333   0.6667   0.6667
*MESH_VERTEXNORMAL 0   0.6667   0.3333   -0.6667
*MESH_VERTEXNORMAL 3   -0.4082   0.8165   -0.4082
*MESH_FACENORMAL 11   0.0000   1.0000   0.0000
*MESH_VERTEXNORMAL 3   -0.4082   0.8165   -0.4082
*MESH_VERTEXNORMAL 7   -0.8165   0.4082   0.4082
*MESH_VERTEXNORMAL 4   0.3333   0.6667   0.6667
}
}
*PROP_MOTIONBLUR 0
*PROP_CASTSHADOW 1
*PROP_RECVSHADOW 1
*MATERIAL_REF 0
}

My xaml code to load it is as follows:

        <Execution:Game Width="640" Height="480">
            <Execution:Game.Camera>
                <View:Camera Position="0,0,-10"></View:Camera>
            </Execution:Game.Camera>
            
            <Lighting:OmniLight Diffuse="White" Position="0,0,-5"></Lighting:OmniLight>
            <Geometries:Mesh AssetName="/ThreeDeeModelTest;component/Assets/Cube.ase"></Geometries:Mesh>
            
        </Execution:Game>

 

The code works fine to load the audi.ASE file that comes with one of the examples.

By the exception message "Message: System.FormatException: Input string was not in a correct format" I assume that there is something wrong with how my ASE file is formated. Are there any other blender users out there that could suggest a better ASE exporter?

Thanks,

  David

 

Coordinator
Aug 26, 2010 at 2:49 PM
I'll try the file a little bit later tonight.
Mar 20, 2011 at 10:29 AM

I just re-created this exact issue by using "Blender 2.41-2.43 ASE export: Goofos" with Blender 2.49b on Windows 7 x64.

The solution was to un-install the "Blender 2.41-2.43 ASE export: Goofos" script and replace it with the "Blender ASE export UE3 2.49: spelunkarr" script at http://www.katsbits.com/tools/index.php. Then re-export the default Blender cube mesh via this script and then use the Mesh AssetName to point to it appropriately; doing this resolved this exact error on my system.

Mar 20, 2011 at 4:20 PM

Thanks, I’ll give that a try.

- David

From: billyjfisher [email removed]
Sent: Sunday, March 20, 2011 2:30 AM
To: ddambman@gmail.com
Subject: Re: ASE file load problem [Balder:224845]

From: billyjfisher

I just re-created this exact issue by using "Blender 2.41-2.43 ASE export: Goofos" with Blender 2.49b on Windows 7 x64.

The solution was to un-install the "Blender 2.41-2.43 ASE export: Goofos" script and replace it with the "Blender ASE export UE3 2.49: spelunkarr" script at http://www.katsbits.com/tools/index.php. Then re-export the default Blender cube mesh via this script and then use the Mesh AssetName to point to it appropriately; doing this resolved this exact error on my system.