Hello, I created a blank project from UrhoSharp template in visual studio 2019 and added these files in MyData folder :
_ Textures
|_ cube.png
_ Materials
|_ cube.xml
_ Models
|_ Cube.mdl
_ techniques
|_ Diff.xml
In the cube.xml there’s :
<?xml version="1.0" ?>
<material>
<technique name="techniques/Diff.xml" />
<texture name="textures/cube.png" unit="diffuse" />
<parameter name="MatDiffColor" value="1 1 1 1" />
<parameter name="MatSpecColor" value="0.5 0.5 0.5 50" />
</material>
In my app I have :
cubemodel.Model = cache.GetModel("Models/Cube.mdl");
var material = cache.GetMaterial("Materials/cube.xml").Clone("");
cubemodel.SetMaterial(material);
In android the cubemodel loads fine, but the material fails to with an exception :
Could not find resource techniques/Diff.xml
What I’m doing wrong ?
Thanks