Comments (10)
@bghgary @pjcozzi Are viewers expected to calculate missing normals? Does the spec explicitly state that normals are the responsibility of the exporter?
@kcoley Part of the "spirit of glTF" is that we try to move all processing burdens to the exporters and glTF creators, and keep those burdens off the viewers and runtime engines. The model is intended to be in a ready-to-render state when it arrives, to the extent reasonable, because the runtime may be on a battery-operated mobile device without a lot of spare cycles for calculating normals that could have been supplied. So my suggestion would be, always supply the normals, but I've asked some other members of the working group if there's a more official statement on this.
from gltf-vscode.
@emackey Per implementation note, https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#meshes
Implementation note: When normals are not specified, client implementations should calculate flat normals.
from gltf-vscode.
@kcoley Thanks for writing this up. I lost track of this a bit, but the Cesium engine now has an issue open to fix it here: CesiumGS/cesium#5838. I don't know if the BabylonJS folks have a corresponding issue.
from gltf-vscode.
BabylonJS folks have a corresponding issue.
BabylonJS has supported normal generation for some time now, though it is currently broken right now. How often do you update the BabylonJS bits? It might make sense to point to the latest BabylonJS on the CDN, perhaps even use the preview links.
from gltf-vscode.
Ah, I may just need a Babylon refresh, once the issue is resolved.
How often do you update the BabylonJS bits?
Not on any schedule, which is a problem for all the engines I guess. I've avoided adding CDN links because I need this plugin to work on a disconnected network with no CDN access. I suppose there should be a recurring task to update each of the engines at some frequency. I wonder if I could convince a bot to file those PRs for me, hmmm.
though it is currently broken right now
Do you have an issue handy for this, that we could link to from here? Thanks @bghgary!
from gltf-vscode.
No, unfortunately, we don't have an issue on GitHub for this. Do we need one?
from gltf-vscode.
No not for my sake, thanks.
from gltf-vscode.
Normals issue in BabylonJS is now fixed.
from gltf-vscode.
This issue looks resolved in the current version of the extension.
from gltf-vscode.
The issue should be resolved for Babylon with the next published release of the extension (coming soon!). Cesium has a separate issue to track this, CesiumGS/cesium#5838.
I am going to close this since it's not a bug in this VSCode extension itself. Thanks everyone!
from gltf-vscode.
Related Issues (20)
- rotate skybox in three.js, front view is dark
- You may want to upload this extension to the Open VSX registry.
- Add new keys to end of JSON blocks
- Preserve image mimeType when converting from GLB to GLTF HOT 5
- TypeError when converting .gltf to .glb HOT 3
- Tabs interfere with validation report columns
- [cesium] gltf preview: Uncaught RuntimeError HOT 2
- Dependency update strategy HOT 2
- Validation error for missing bufferView in sparse accessors HOT 2
- Update rendering engines? HOT 2
- Please add support for KHR_materials_anisotropy HOT 2
- Feature request: add a glTF pathtracer
- Update extension schema mappings
- Can't inspect data inside draco compressed attributes
- Possible crash in language server HOT 1
- In official gltf sample BOX.gltf, why am i unable to display inspect-data window when using inspect-data tools?
- Unable to enable plug-ins
- glTF Tools breaks other extensions in a weird way
- Render Grid option broken
- Feature request: preview enhancements
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 gltf-vscode.