@yangyc
2018-08-08T03:04:58.000000Z
字数 934
阅读 745
functional_3d_engine_pattern
section2
https://github.com/KhronosGroup/glTF/issues/1238:
1)Streaming an entire scene by progressively adding mesh geometries
2)Streaming a single mesh geometry by progressively refining bufferViews
(can combine together!!!???)
@ProFive for an HLOD approach to streaming, check out 3D Tiles which is a spatial data structure containing nodes with glTF.
For progressive streaming, there is interest (but no extension AFAIK) in using POP buffers: https://x3dom.org/pop/
https://github.com/KhronosGroup/glTF/issues/755
- stream load scene
duplicate with http://gameprogrammingpatterns.com/game-loop.html ?
share material/geometry
example:
script component
custom job
custom material
custom glsl
more...
example:
transform->compute localToWorld matrix(multiply parent matrix)
model * view * project matrix transform
skeleton animation->compute position(multiply parent matrix)
example:
compile custom shader language to glsl