It is possible to use materials from a web server?

Feb 18, 2011 at 12:05 PM

It is possible to use materials from a web server?  EXAMPLE

           <Materials:Material Ambient="Black" Diffuse="Green" Specular="White" Shade="Gouraud" DiffuseMap="http://localhost:4822/images/paisagem.jpg" />

how to proceed?

I would also like to use in skybox EXAMPLE

<Execution:Game Width="640" Height="480">

    <Execution:Game.Skybox> 

               <Objects:Skybox IsEnabled="true"

Front="http://localhost:4822/images/foda1.jpg"

Back="http://localhost:4822/images/foda2.jpg"

Top="http://localhost:4822/images/foda3.jpg"

Bottom="http://localhost:4822/images/foda4.jpg"

Left="http://localhost:4822/images/foda5.jpg"

 Right="http://localhost:4822/images/foda6.jpg"

               </Objects:Skybox> 

           </Execution:Game.Skybox>
            <Lighting:OmniLight Position="0,0,-20" Diffuse="Green"/>

            <Geometries:Box Dimension="10,10,10">  

             <Geometries:Box.Material>

                    <Materials:Material Ambient="Black" Diffuse="Green" Specular="White" Shade="Gouraud" DiffuseMap="http://localhost:4822/images/bola.png" /> 

               </Geometries:Box.Material> 

           </Geometries:Box>
            <Execution:Game.Camera>

                <View:Camera x:Name="Camera" Position="0,0,0" Target="0,0,-1"/>  

         </Execution:Game.Camera>

        </Execution:Game>

        <TextBlock x:Name="PositionText"/>

    </Grid>
</UserControl>

I hope one helps,thanks

Coordinator
Feb 19, 2011 at 6:55 AM
Edited Feb 19, 2011 at 6:55 AM

There is no support out of the box, but you can create your own FileLoader to do it : 

http://www.ingebrigtsen.info/post/2010/09/18/Loading-files-from-other-places-than-the-XAP-package-with-Balder.aspx

 

Unfortunately, async is not supported - so you'd have to do it synchronously.