Does UrhoSharp support .obj, .ply and .stl files without conversion?

I need to dynamically load files downloaded from the internet, which have .obj, .ply and .stl extension.
Can i load them into a viewer on ios and android without any conversion?

Best Answers

Answers

  • RobertoManganoRobertoMangano CHMember ✭✭

    @PatrickAbadi said:
    Here is a custom loader for OBJ format. I found it far more useful then doing the whole conversion to MDL

    https://github.com/patrickabadi/UrhoCustomObj

    Do you think this will get expanded to be able to load OBJ with Material and external texture (jpg, png)?
    Or if not, do you know where i can find some ideas on how to implement it?

    Thanks!

  • PatrickAbadiPatrickAbadi CAMember ✭✭

    Reading in the uv coordinates and indexes from the obj is not that hard. I'll do some searching to see how to manually set the texture on an urho model. If it looks reasonable I'll add it to the project.

  • PatrickAbadiPatrickAbadi CAMember ✭✭
    edited August 21

    I've updated my project to load textured obj models, although I didn't bother reading in and parsing MTL file (shouldn't be hard to do). I hope this helps

    @PatrickAbadi said:
    Here is a custom loader for OBJ format. I found it far more useful then doing the whole conversion to MDL

    https://github.com/patrickabadi/UrhoCustomObj

Sign In or Register to comment.