Can't see my Mesh

Nov 13, 2010 at 6:40 PM

Hi, i was very impressed by Balder when i saw it in first time. It's great work.

But i've got some problems when i was trying to load a .ase file (audi.ase from your GettingStarted project). I have repeated all of your actions from screencast (on vimeo) and all was fine until loading mesh. I wrote this: 

<Geometries:Mesh x:Name="Object" AssetName="/cups;component/Assets/audi.ASE" Position="0,0,0" />

But then i'm trying to compile this, nothing happens on the screen. I mean that then i'm trying put a box on the screen all is ok, but then it comes to adding a mesh it's does not work. That is my source code of MainPage.xaml:

<UserControl x:Class="cups.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Execution="clr-namespace:Balder.Execution;assembly=Balder"
             xmlns:Geometries="clr-namespace:Balder.Objects.Geometries;assembly=Balder"
             xmlns:View="clr-namespace:Balder.View;assembly=Balder"
             xmlns:Lighting="clr-namespace:Balder.Lighting;assembly=Balder"
             xmlns:Matherials="clr-namespace:Balder.Materials;assembly=Balder"
             xmlns:Animation="clr-namespace:Balder.Animation.Silverlight;assembly=Balder"
    mc:Ignorable="d"
    >

    <Grid x:Name="LayoutRoot" Background="Black">
        <Grid.Triggers>
            <EventTrigger RoutedEvent="Grid.Loaded">
                <BeginStoryboard>
                    <Storyboard RepeatBehavior="Forever">
                        <Animation:StoryboardExtensions.CoordinateAnimation>
                            <Animation:CoordinateAnimation
                                From="0,0,0"
                                To="0,360,0"
                                Duration="00:00:05"
                                TargetName="Object"
                                TargetProperty="(Node.Rotation)" />
                        </Animation:StoryboardExtensions.CoordinateAnimation>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Grid.Triggers>
        <Execution:Game Width="640" Height="800">
            <Execution:Game.Camera>
                <View:Camera Position="0,10,-15" />
            </Execution:Game.Camera>
            <Lighting:OmniLight Diffuse="Red" Position="0,-5,-5" />


            <Geometries:Mesh x:Name="Object2" AssetName="/cups;component/Assets/audi.ASE" Position="0,0,4"  />

            <Geometries:Box Dimension="3,3,3" Name="Object" Position="0,0,0" >
                <Geometries:Box.Material>
                    <Matherials:Material Ambient="Black" Diffuse="Green" Specular="White" Shade="Flat" />
                </Geometries:Box.Material>
            </Geometries:Box> 

        </Execution:Game>

    </Grid>
</UserControl>

In this case nothing will be displayed, but if you comment mesh line a rotaiting box will appear (how it have to be). I break my mind for a second day on it, so i need your help :) 

I'm using a Visual Studio 2010, Balder 0.8.8.9 and Google Chrome. 

Thank you.

Coordinator
Nov 13, 2010 at 9:19 PM

Hi and thanks,

did you set the Build Action to Resource for the audi.ase file? 

If you can't get it to work - could you email me your entire project (einar [at] dolittle [dot] com) ?  

Nov 14, 2010 at 8:36 AM

Yes, i've set a build action. I'll send you my prject. Thank you for help.

Coordinator
Nov 14, 2010 at 3:56 PM

I've created a Work Item for this problem : http://balder.codeplex.com/workitem/13666

Nov 14, 2010 at 7:24 PM
Edited Nov 14, 2010 at 7:58 PM

I solved this problem as you said: just replaced a every 4 spaces to the "/t" in my ase file and it's already work :)

Coordinator
Nov 14, 2010 at 9:25 PM

Great. Sorry you hit a snag like this the first try. Hope you enjoy Balder.

Nov 14, 2010 at 9:32 PM

It's ok :) I think it great and very usefull project.