GithubHelp home page GithubHelp logo

Uber bug with assets. about mundus HOT 5 CLOSED

mbrlabs avatar mbrlabs commented on July 19, 2024
Uber bug with assets.

from mundus.

Comments (5)

mbrlabs avatar mbrlabs commented on July 19, 2024
  1. The Assets menu in the menu bar does nothing, it shows all assets unfiltered for debugging reasons
  2. Yes, you can import new textures and models there
  3. What do you mean multiple times. Sure, you can import the same asset multiple times if you choose. But the asset manager loads the resource only once if you open the project.
  4. Yes, it shows only models. That's intended for now. Later on it will act as asset browser that shows all assets in a directory tree like a file explorer.

A few more notes:

  • You can apply textures to models independtly now (see the ModelComponent in the outline).
  • If you select a resource from the assets dialog, the resource is not loaded again. With the dialog you can only select a reference to that asset.
  • You can specify filters on the asset dialog, that's why some assets are somtimes not visible. E.g if you select a new texture for a model, the asset dialog will only show texture assets
  • It's not finished yet ;)

from mundus.

krukhlis avatar krukhlis commented on July 19, 2024

Regarding 3)
So I can import multiple times the same texture. And in assets browser I will see multiple lines with this texture:
mundus-assets1
And I can use any of this as texture for my model. However, if save the project and reload Mundus --
I see the texture was loaded only once and I have only 1 entyry in assets browser:
mundus-assets2

Which is inconsistent with the original situation. :)

from mundus.

mbrlabs avatar mbrlabs commented on July 19, 2024

Oh yes, that's a bug ;)
It's overriding the files when importing the asset for the second time. That's why they are gone after the restart. We need to check if there already exists a file with that name and if yes, add an extension to the filename. Or just forbid to import a new asset with the same name.
I'd prefer the second option, because it better reflects the organistion in folders.

I'll do that tomorrow.

from mundus.

krukhlis avatar krukhlis commented on July 19, 2024

I also agree with the second option, cool!

from mundus.

mbrlabs avatar mbrlabs commented on July 19, 2024

Alright, i fixed the bug by preventing the user to import multiple assets with the same name.

from mundus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.