François
1fcafc4210
Glb textures should use bevy_render to load images ( #1454 )
...
Fixes #1396
<img width="1392" alt="Screenshot 2021-02-16 at 02 24 01" src="https://user-images.githubusercontent.com/8672791/108011774-1b991a80-7008-11eb-979e-6ebfc51fba3c.png ">
Issue was that, when loading an image directly from its bytes in the binary glb file, it didn't follow the same flow as when loaded as a texture file. This PR removes the dependency to `image` from `bevy_gltf`, and load the image using `bevy_render` in all cases. I also added support for more mime types while there.
<img width="1392" alt="Screenshot 2021-02-16 at 02 44 56" src="https://user-images.githubusercontent.com/8672791/108011915-674bc400-7008-11eb-83d4-ded96a38919b.png ">
2021-03-03 21:36:16 +00:00
Will Crichton
e6e23fdfa9
Add support for gltf::Material::unlit ( #1341 )
...
* Add support for gltf::Material::unlit
2021-01-31 17:13:16 -08:00
François
228c3df751
use Name on node when loading a gltf file ( #1183 )
...
* export Name in prelude
* use Name instead of Labels in gltf scenes
2021-01-01 15:30:18 -06:00
François
21794fe6df
make more information available from loaded GLTF model ( #1020 )
...
make more information available from loaded GLTF model
* make gltf nodes available as assets
* add list of primitive per mesh, and their associated material
* complete gltf structure
* get names of gltf assets
* only load materials once
* add labels with node names
2020-12-31 14:57:15 -06:00
rod-salazar
19c4f331ac
Ensure default material is loaded ( #1016 )
2020-12-08 19:36:41 -08:00
François
59d98de194
naming coherence for cameras ( #995 )
...
naming coherence for cameras
2020-12-03 13:46:15 -08:00
Joshua J. Bouw
9f4c8b1b9a
Fix errors and panics to typical Rust conventions ( #968 )
...
Fix errors and panics to typical Rust conventions
2020-12-02 11:31:16 -08:00
Duncan
46fac78774
Extend the Texture asset type to support 3D data ( #903 )
...
Extend the Texture asset type to support 3D data
Textures are still loaded from images as 2D, but they can be reshaped
according to how the render pipeline would like to use them.
Also add an example of how this can be used with the texture2DArray uniform type.
2020-11-22 12:04:47 -08:00
Joel Nordström
1e9a0544bd
Fix pixel format conversion in bevy_gltf ( #897 )
...
* Fix pixel format conversion in bevy_gltf
* Update renamed image::DynamicImage method calls
* Remove unused GltfError variant
2020-11-21 19:08:50 -08:00
bjorn3
d6eb647451
Misc cleanups ( #879 )
...
* Remove cfg!(feature = "metal-auto-capture")
This cfg! has existed since the initial commit, but the corresponding
feature has never been part of Cargo.toml
* Remove unnecessary handle_create_window_events call
* Remove EventLoopProxyPtr wrapper
* Remove unnecessary statics
* Fix unrelated deprecation warning to fix CI
2020-11-17 13:40:18 -08:00
Carter Anderson
7628f4a64e
combine bevy_ecs and bevy_hecs crates. rename XComponents to XBundle ( #863 )
...
combine bevy_ecs and bevy_hecs crates. rename XComponents to XBundle
2020-11-15 20:32:23 -08:00
Carter Anderson
4ef6eb8a85
adjust to new clippy lints ( #826 )
2020-11-09 14:12:42 -08:00
Chrs Msln
35d4fca0d0
[gltf] Support camera and fix hierarchy ( #772 )
...
[gltf] Support camera and fix hierarchy
2020-11-06 17:08:15 -08:00
Carter Anderson
44b3e24e32
fix mesh allocation bug and public mesh api improvements ( #768 )
2020-11-02 13:15:07 -08:00
Julian Heinken
4645da30c8
Mesh overhaul with custom vertex attributes #592 ( #599 )
...
Mesh overhaul with custom vertex attributes
2020-10-30 19:21:53 -07:00
Alex Hirsch
1b051d3353
Add SamplerDescriptor to Texture ( #399 ) ( #747 )
...
GLTF loader now grabs (some) sampler information from the respective
GLTF sampler struct.
2020-10-29 14:22:45 -07:00
Carter Anderson
f88cfabdde
asset: WasmAssetIo ( #703 )
...
asset: WasmAssetIo
2020-10-19 17:29:31 -07:00
Carter Anderson
c32e637384
Asset system rework and GLTF scene loading ( #693 )
2020-10-18 13:48:15 -07:00
Grayson Burton
354d71cc1f
The Great Debuggening ( #632 )
...
The Great Debuggening
2020-10-08 11:43:01 -07:00
Gray Olson
afc656701d
switch to u32 indices by default ( #572 )
2020-09-25 14:29:30 -07:00
Gray Olson
f7c8882c04
Index buffer specialization ( #568 )
...
index buffer specialization
2020-09-25 12:13:01 -07:00
Elias
9aff0bcc2a
Add support for binary glTF (.glb) ( #271 )
...
Add support for binary glTF (.glb)
2020-08-25 16:55:08 -07:00
Csányi István
268b520105
Simplify GLTF loader code ( #245 )
...
simplify gtlf loader code
2020-08-20 14:06:16 -07:00
Victor "multun" Collod
c38420f1e9
enforce clippy for all target and features
2020-08-16 07:20:06 -07:00
Milan Vaško
e96afc33a7
Add support for embedded buffers in GLTF loader
2020-08-13 16:30:49 +02:00
Carter Anderson
3d09459813
add more doc comments and clean up some public exports
2020-08-09 16:13:04 -07:00
Carter Anderson
7212b70478
rustfmt changes
2020-07-28 14:24:03 -07:00
Carter Anderson
b12c4d0a48
render: simplify imports and cleanup prelude
2020-07-16 18:26:21 -07:00
Carter Anderson
2705e5cbb4
add texture atlases
2020-06-06 00:12:38 -07:00
Carter Anderson
d920100d35
scenes: deserialization and refactor
2020-05-21 17:21:33 -07:00
Carter Anderson
870f715df3
Hot asset reloading
2020-05-16 20:18:30 -07:00
Carter Anderson
b1f07e3749
cargo fmt
2020-05-16 00:27:30 -07:00
Carter Anderson
4e1abea161
AssetServer: multithreaded sync/async asset loading
2020-05-15 16:55:44 -07:00