Commit Graph

22 Commits

Author SHA1 Message Date
Mark Moissette 1ceb5050f2
feat(bevy_gltf_components): testing a different approach using only gltf extras (#134)
* not using / tracking gltf files anymore (should avoid issues with scenes vs gltf files)
 * restructured accordingly
 * closes #102
 * closes #111
2024-02-19 22:43:27 +01:00
Mark Moissette cfbda24da7
feat(tools/bevy_blueprints): bevy plugin + blender addon for components UI to more easily create components (#70)
* adds a new crate: ```bevy_registry_export``` to be able to create a json import of the registered component/type definitions
* adds a new Blender addon: ```bevy_components``` that takes that json data to generate custom UIs for components , to be to add & edit components easily in Blender 
   * also adds component metadata per object for more advanced features
   * etc
* updates to bevy_gltf_components & bevy_gltf_blueprints to add legacy_mode to support the "old"/current style component definitions
* same with gltf_auto_export Blender add_on
* closes #60
2024-02-05 23:01:19 +01:00
Mark Moissette b105f628df
chore(donations): added donation button in README (#106) 2024-01-23 22:09:59 +01:00
Mark Moissette 5429bf4779
feat(Save & load): new crate bevy_gltf_save_load + lots of upgrades & improvements (#95)
* feat(bevy_gltf_save_load): saving & loading implemented
   * created new crate for save & load features, uses & filters out blueprints for efficient loading
   * saving & loading, even with dynamically spawned nested hierarchies works 
   * component filter , resource filter & save path root are configurable
   * for saving: added removal & cleanup logic for children component with children
  that have been filtered out: ie no more invalid children getting stored in the save files !
   * added sending of event once saving is done

* feat(examples/save-load): example for the new crate
   * loading level static & dynamic data as blueprints
   * added a bit of ui when entering saving & loading states & cleanup when exiting

* feat(bevy_gltf_blueprints): significant rewrite of how the crate works
     * simplified spawning process, no more spawning children containing blueprints etc
     * simplified post process : instead of copying original entity  into blueprint root
      we now copy blueprint root data (components & children) into the original entity ! fixes #96 
     * much simpler code wise
     * solves issue with needing to register components that we only use on the bevy side (not gltf)
    since we are not copying the bevy data into the blueprints data
     * added **copyComponents** helper to copy components from one entity to another, excluding existing
     components on the target entity, & some bells & whistles
     * **Name** is now optional when spawning a blueprint: closes #97 
     * **Transform** is now optional when spawning a blueprint: closes #98 
     * removed transform from bundle (BREAKING change)
     * added (optional)  **NoInBlueprint** component to have finer control over whether to inject the **InBlueprint** component inside spawned blueprint entities
     * added (optional) **Library**  component, so we can override library path when we want
     * added (optional) **AddToGameWorld** component for convenience   to automatically add entities to the game world, if there is one

* chore(bevy_gltf_components): removed verbose output, cleaned it up a bit

* feat(tools/auto_export): added option to split out "dynamic" objects in main scenes
   * ie if a collection instance (or its original collection) has a "dynamic" (aka mutable, saveable etc)
     flag it can get exported to a seperate gltf file (essentially acting like an "initial save")
   * the rest of the levels (the "static" data) is exported without the dynamic objects and
     can be reused with save files !
2024-01-10 14:49:29 +01:00
Mark Moissette 529a68c844
refactor(tools/gltf_auto_export): complete restructuring of the tool (#67)
* split up code in logical modules instead of one giant file
 * added module structure, imports etc
 * updated README
 * add storing & reloading of lists of scenes
 * minor cleanups & tweaks
 * closes #64 
 * moved gltf_auto_export specific docs/images inside the addon's folder
 * updated main title image
2023-12-04 14:48:52 +01:00
Mark Moissette 32d01eb48f
refactor(examples): restructure examples (#44)
* refactor(examples): moved examples into more logic folders & changed to allow for per example dependencies
* chore(): updated docs, added docs, updated deps , cargo files etc
2023-11-13 14:36:42 +01:00
Mark Moissette c4e83655f3
chore(bevy_gltf_components): Update to Bevy 0.12 (#32)
* chore(bevy_gltf_components): updated code for bevy_main/ v0.12
* refactor(examples): cleanups & tweaks
* added compatibility tables
2023-11-11 22:58:00 +01:00
Alix Bott 79f29776c2
fix(tools/gltf_auto_export): Don't replace non-library collection instances by empties (#35)
* don't try to export non-library collections (export embedded in main scene)
* add to contributors section
2023-11-08 08:13:22 +01:00
Mark Moissette 4afa0f5d7d
feat(Animation): added code & example for animation support (#33)
* feat(animation): added example & boilerplate
  * moved animations specific code to a different module
  * added multiple robots & foxes
  * added example of controlling animation based on distance from the player
  * removed obsolete files
  * added information about animation to READMEs
  * updated dependencies

closes #26
2023-11-01 12:44:37 +01:00
Mark Moissette a1c32ae1d6
docs(contributors): added contributors list to main README (#19)
* added GitGhillie
2023-10-10 22:18:47 +02:00
Mark Moissette 868fa163e0
docs(README): added link to blueprints video (#10) 2023-09-30 01:22:08 +02:00
Mark Moissette 4d09d17614
fix(): various Fixes and tweaks (#7)
* fixed license files name typo
* fixed bad links
* fixed typo in the repo name !!
* updated crates to 0.1.1 
* added missing parts in README files
2023-09-28 16:53:21 +02:00
Mark Moissette 528e13a250
feat(): Blueprints, crates, enhanced Blender tooling & more (#5)
* feat(bevy_gltf_components):
	* create crate 
	* added SystemSet (GltfComponentsSet) to run process_loaded_scenes (where components are injected)
	in a specific systemset & allow ordering other systems relative to it

* feat(bevy_gltf_blueprints): 
	* created crate
	* made the blueprint library path configurable
	* added BluePrintBundle helper
	* added SystemSet (GltfBlueprintsSet) for better system ordering
	* integrated into advanced demo

* feat(tools-blender-auto-export): 
	* renamed blender tool to gltf_auto_export
   	* rewritten auto_export
	* added blueprint / prefab support
		* creates scene with empties with BlueprintName components in the scene
		* export of the main scene now exports this scene instead of real main scene
		* changes collection stand in names in original scene & sets them back after export
			to have correctly named collection instance exports
		* also added an additional 'SpawnHere' component to not conflate BlueprintNames & spawning requests
   		* toggling & blueprint library output parameters added
   		* added correct handling/ restoring of saved selection when using blueprints

* feat(examples): 
	* added advanced example
	* general example renamed to "basic", and cleaned up

* feat(various): a lot of experiments with saving & loading etc

* chore(assets): updated blend & generated assets

* fix(examples-advanced): disabling hot reloading as it messes up scenes in experiments with save & loading

* docs(): 
	* added & fleshing out docs for the various crates & main README
	* added process doc image & tweaks to README
 	* added missing licence info where relevant
 	* fixed broken links
 	* clarified some aspects
 	* added updated screenshots where relevant
 	* added tweaks & improvements etc
2023-09-28 14:10:45 +02:00
Mark Moissette d9060a4d6b
chore(cleanups): overall minor cleanups & tweaks (#3)
* split documentation between main docs & example docs
* clearer seperation between example, blender add on etc
*  some  minor code quality improvements based on Clippy linting
* minor tweaks & additions to Blender & gltf example files: swapped out one mesh collider 
   for a capsule collider for demo purposes
* cleanups, tweaks, badges etc
2023-08-12 00:35:14 +02:00
Mark Moissette e24ccc01cc
docs(README): path fixes & minor tweaks (#2) 2023-08-02 01:51:39 +02:00
Mark Moissette 1417d5f389
refactor(): restructured code to turn the process_gltf (core) part into a crate (#1)
* refactor(): restructured code to turn the process_gltf (core) part into a crate
 * changed process_gltf into a lib/crate basics
 * changed current demo setup into an example that is importing the new crate
 * updated imports in the crate side
 * updated dependencies
 * cleanups
 * added more clear information about preUpdate vs setup
 * improved README/ added use as crate examples
2023-08-02 01:45:57 +02:00
kaosat.dev 2eb6daece8 docs(README): added link to the video/tutorial 2023-07-30 01:29:03 +02:00
kaosat.dev 9fe68d75b8 docs(name): slight name change for clarity 2023-07-30 01:25:51 +02:00
kaosat.dev e4171e5969 docs(README): updated docs 2023-07-27 22:22:53 +02:00
kaosat.dev 0d4a90b733 docs(): readme tweaks + added licenses 2023-07-27 02:08:57 +02:00
kaosat.dev bd6957bae3 docs(README): updated docs, images etc
* updated images & text from JSON => RON
 * also added a section for the Blender tool
2023-07-27 01:53:48 +02:00
kaosat.dev 64ec564b02 chore(): added all boilerplate
* switch to ron for components inside Blender
 * related experiments & cleanups
 * total overhaul & cleanup of physics proxies handling
 * a lot of cleanups
2023-07-25 22:58:23 +02:00