Comments (4)
It works perfect! Thank you very much for your help.
and congratulations on this fantastic library, it has helped me a lot.
Regards!
from gdx-gltf.
@RoberMS Hi, i don't think your question is related to gdx-gltf but libgdx 3D rotation in general. If you agree, you can close the issue :-).
Anyway, i'll try to help you out :
You can either rotate your model (90° on Y Axis depending on your axis) in your code or export your model with your desired orientation.
In Blender, to have your desired orientation, you need to put your character facing your front view and make sure your model have a default rotation (you can apply rotation if it's not the case). For skinned models, it requires more work, you have to deal with your armature as well.
If you need more help about it, you can found me and other cool people on libgdx discord server.
from gdx-gltf.
Thank you for your prompt response, as you can imagine I am starting with libgdx and I am a beginner.
the idea is to do what you mention "rotate the model 90° on Y Axis" but I don't know where to do it from. cameraControl? sceneManager?, I have tried from different places but I have not had luck.
Thanks
from gdx-gltf.
3D stuff is not the easiest way to start with libgdx :-) .
Anyway, maybe the best place to rotate your model in your case is on your scene ModelInstance : scene.modelInstance.transform.rotate(Vector3.Y, 90);
from gdx-gltf.
Related Issues (20)
- Model loading error: "Cannot read field "size" because "group" is null"
- Cascade Shadow Map shows shadow "clamping" when enabled HOT 1
- The GlbExporter is missing. HOT 5
- Ability to use custom DirectionalShadowLight into CascadeShadowMap
- Systematic OpenGL error when using unlit material in combination with CSM
- Cannot use pattern matching in instanceof due to "sourceCompatibility = 1.8" in gradle build HOT 1
- Native memory leak: pixmaps are never released HOT 4
- IBL: ability to create different sized maps for Skybox and radiance HOT 1
- Specular color texture is never passed to the PBR shader HOT 2
- Android error on reading gltf files when minify is enabled HOT 5
- the android module is disabled and app can not run success
- Model transparent sorting HOT 1
- RFE: Implement support for C_UINT, unsigned integer indices
- GLTF extensions: KHR_mesh_quantization
- Fix Cascaded Shadow Maps on WebGL HOT 2
- SkyBox exception HOT 1
- MeshLoader. Add model file name to message [suggestion] HOT 1
- Add support for hiding mesh parts HOT 1
- Ability to pass a custom RenderableSorter to TransmissionSource batch
- Pixmaps: novel about unpredictable disposing
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 gdx-gltf.