Using *.scn model and *.png as texture.


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#??



Best Answer


  • EgorBoEgorBo BYXamarin Team ✭✭✭
    edited July 2016

    @requenaxii 2D or 3D? You can definitely load png:
    Texture2D texture = cache.GetTexture2D("Textures/MyTexture.png");

  • redsnowredsnow USMember ✭✭

    hi @EgorBo,

    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.

  • redsnowredsnow USMember ✭✭

    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.


  • EgorBoEgorBo BYXamarin Team ✭✭✭

    @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)

    var file = ResourceCache.GetFile("UrhoNodePrefab.xml", true);
    var prefabNode = scene.InstantiateXml(file, Vector3.Zero, Quaternion.Identity, CreateMode.Replicated);
Sign In or Register to comment.