Comments (7)
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.
Let me know if you need a some models to test
from prowl.
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.
That is the correct way, for now, you might have to restart the editor for it to properly import the model.
from prowl.
Ill look into this one, hopefully it goes a bit more smoothly than the other bug 😅
from prowl.
Might be more to this then I initially thought.
from prowl.
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)
- [Inspector] Need to rewrite how Component Drawing works HOT 1
- [Editor] I'm having problems when creating files inside folders, because they are being created at the root folder, not inside the desired folder.
- Embedding the Engine in an AvaloniaUI App HOT 5
- [Cleanup] Merge RegisterAllType methods into 1 system HOT 2
- [Editor] DragnDrop Improvement
- [Editor] Mac OSX input is not working HOT 2
- [Editor] ModelImporter Embedded Textures Support
- [Editor] Improved Prefabs
- [Editor] MacOS creating a new project fails HOT 3
- [Rendering] Mac OS Rendering is wack. EditorGUI + Runtime Renderer
- [Editor] (MacOS) crash when clicking "AssetBrowser" HOT 3
- [Rendering] Overhaul Rendering Backend HOT 5
- [Editor] Overhaul Mesh Importing
- [Editor] Shader Hot-Reloading doesnt seem to work HOT 1
- [Engine] Reduce the overhead of GameObjects HOT 2
- [Runtime/Gizmos] UI Runtime Solution HOT 5
- [Rendering] Google ANGLE support for Vulkan, Metal and DirectX HOT 1
- [Editor] Missing Monobehaviours HOT 1
- [Engine] SceneObjects HOT 3
- [Editor] Inspector/CustomEditors need to support Sub Assets & Runtime Generated Resource
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prowl.