Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Unable to select models from the Project folder and model materials and textures are not copied

edited July 29 in Bugs Posts: 59

I am working on a Craft project and I am having some issues with models.

1: When I copy a model that is obj type to another folder using the asset chooser, only the .obj file is copied and not the .mtl file nor the textures used in the the .mtl file. It is not too big of an issue since I can move them by hand using the Files app.

2: I am able to copy models and model material shaders into the Project folder. I can choose shaders from the project folder with the asset popup, but when I try to choose a model from the asset popup, the Project folder is not listed. Dropbox and Documents are there though.

If you have time please look in to it! :)

EDIT: After adding the file using the asset popup to the Project folder, I can’t select it from the asset popup. However, I was able to enter the name manually ”Project:model_name” and it works.

Comments

  • Posts: 1,367

    @exomut - in many models the mtl file and the texture file details are contained within the text of the files and are not always given the same names, in particular with mtl files as the textures are very often named differently. In addition there may be several obj files and texture files to create the full 3D model.

    Codea would have to interrogate the files to be able to transfer the correct files with the obj/mtl files. So I transfer them by hand. Also there not always visible within the Codea file viewer - you usually get the 3D textured model view.

    You can edit the text files yourself but need to be careful to name everything correctly.

    Just read your edit, nice find.

  • Posts: 59

    @Bri_G I wish we could import our .obj models as a .zip file that included the (obj, mtl, tiff, png, etc) so Codea would only have to deal with one file to move around. And so my Dropbox assets folder doesn’t get so messy. If I delete a model from within Codea, the mtl files always get left behind, so I have to use Files to clean up afterwards.

    I guess I should right it as a feature request, but they seem so busy with the new version of Codea and all of its exciting new features. I don’t want to put any pressure on them.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @exomut good idea on how to handle obj files. I don't know what the best solution is — zip is kind of neat especially now that it's natively supported in the iOS 13 Files app

  • edited July 29 Posts: 411

    @exomut, @Simeon, yes i just hit the same issue. Previously my Project assets were in dropbox, today i copied them into Project (using edit and add to from the asset picker). Even though it works it does not seem possible to view the models associated to the Project.

    @Simeon, would it be possible that the assets viewer on the main Codea startup screen could allow one to look at the assets associated to a selected project? Also would be nice if the asset picker for models/images displayed the filetype extension.

Sign In or Register to comment.