Git Product home page Git Product logo

Comments (7)

michaelsakharov avatar michaelsakharov commented on May 14, 2024 1

Awesome thanks!
It seems Assimp provides some sort of Unit Scale modifier we can use to scale the models on import.

It would be done inside ModelImporter.cs
Probably on the RootNode/Gameobject which is created around 258, just do
rootNode.Scale = something
Im not sure how exactly to extract the unit scale from assimp though or how it works.

Reading the issue i linked above it might be something like:
scene.Metadata["UnitScaleFactor"].Data;

from prowl.

michaelsakharov avatar michaelsakharov commented on May 14, 2024 1

Let me know if you need a some models to test

from prowl.

10xJosh avatar 10xJosh commented on May 14, 2024 1

Awesome thanks! It seems Assimp provides some sort of Unit Scale modifier we can use to scale the models on import.

It would be done inside ModelImporter.cs Probably on the RootNode/Gameobject which is created around 258, just do rootNode.Scale = something Im not sure how exactly to extract the unit scale from assimp though or how it works.

Reading the issue i linked above it might be something like: scene.Metadata["UnitScaleFactor"].Data;

I tried adding the rootnode stuff but im not sure it worked. I'll have to look more into it tomorrow, I'm a little in over my head here but ill figure it out.

How have you been importing the objects? I've just been putting it in the folder and going into the editor and dragging and dropping. Is there another way to import?

from prowl.

michaelsakharov avatar michaelsakharov commented on May 14, 2024 1

That is the correct way, for now, you might have to restart the editor for it to properly import the model.

from prowl.

10xJosh avatar 10xJosh commented on May 14, 2024

Ill look into this one, hopefully it goes a bit more smoothly than the other bug 😅

from prowl.

michaelsakharov avatar michaelsakharov commented on May 14, 2024

Might be more to this then I initially thought.

from prowl.

michaelsakharov avatar michaelsakharov commented on May 14, 2024

Added a GlobalScale flag for ModelImporter which may help some cases
Also added a UnitScale modifier value like unity has, this doesn't solve the issue entirely, but it provides a decent enough solution.

from prowl.

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.