I have models and textures as *.scn and *.png respectively, any way to use them with UrhoSharp like *.mdl?
By the other hand, if not be possible, can I properly convert these files to others that can be used by Urho#??
You will need https://urho3d.github.io/documentation/1.5/_tools.html AssetImporter, it handles SCN and it is able to export Urho MDL & materials files.
@requenaxii 2D or 3D? You can definitely load png:Texture2D texture = cache.GetTexture2D("Textures/MyTexture.png");
Texture2D texture = cache.GetTexture2D("Textures/MyTexture.png");
I have three models in 3D (*.scn) and some textures as png. I want to use these textures on my models, but I don't know how; as Urho doesn't recognizes these models extension =S.
Hi again @EgorBo,
I'm trying to use AssetImporter but I can't open *.scn files. I'm using Urho-3D engine... Do you have any reference to check? It's my first app and I'm lost.
@requenaxii I am not experienced with the "scn" format but have you tried:AssetImporter.exe node MyScnFile.scn UrhoNodePrefab.xml or (scene instead of node)
AssetImporter.exe node MyScnFile.scn UrhoNodePrefab.xml
var file = ResourceCache.GetFile("UrhoNodePrefab.xml", true);
var prefabNode = scene.InstantiateXml(file, Vector3.Zero, Quaternion.Identity, CreateMode.Replicated);
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies