Commit Graph

55 Commits

Author SHA1 Message Date
dexy
73402373e3 Fix for crash caused by bad entity LOD linkage 2022-01-28 04:50:10 +11:00
dexy
d622cd33fa Use LodInParentYmap flag for LOD linking instead of index check hack 2022-01-16 00:00:48 +11:00
Skylumz
0c62a04625 Implemented a lights editor in model viewer 2021-12-29 17:17:31 -05:00
dexy
432b42504e Improved ymap rename/saveas experience 2021-11-08 04:01:51 +11:00
dexy
37ac0ba62b Light hash calculation bounding box fix 2021-05-03 23:53:34 +10:00
dexy
5ebda6f0bb HD lights rendering in exterior and lodlights switching, lights falloff fix 2021-05-03 22:59:31 +10:00
dexy
2c8311c936 LodLights generator positions improvement 2021-05-03 00:57:14 +10:00
dexy
12dd40ea8e Light hash calculation using correct bounding boxes 2021-05-02 23:30:45 +10:00
dexy
7b628aeab2 Light hash calculation including archetype extensions 2021-05-02 23:09:21 +10:00
dexy
e18cf990fe Moved entity light hash generation to YmapEntityDef and added Lights array to entity 2021-05-02 04:57:24 +10:00
dexy
384ad0c9cb LodLights generator progress, correct hash for some lights 2021-05-02 00:33:13 +10:00
dexy
ea876743bc LodLights rotating and scaling 2021-04-30 18:19:54 +10:00
dexy
a8e212135c OccludeModel and BoxOccluder editing basics 2021-04-30 02:15:23 +10:00
dexy
5cdde7a34f LodLights editing basics 2021-04-26 04:41:02 +10:00
dexy
edd8916c1f LodLights selection basics, replaces DistantLodLights mode 2021-04-22 15:16:11 +10:00
dexy
b3f9312790 Auto calculate ymap flags and extents options in project window 2021-04-21 19:07:32 +10:00
Eugene Pogrebnyak
3e05173d11 Fixed hash generation to 100% fit RAGE one 2020-12-03 23:47:39 +03:00
Eugene Pogrebnyak
44c71139f1 Changed entity hash generation method to real one used in RAGE 2020-12-03 14:30:15 +03:00
dexy
e31e401fa8 MLO editing progress 2019-12-30 00:56:29 +11:00
dexy
d13c8bbc3b Fix for ymap XML not displaying 2019-12-29 10:47:36 +11:00
dexy
0e11478d7b MLO editing progress 2019-12-28 23:24:36 +11:00
dexy
3f445182f3 Fix for add/remove entities not applying to world view 2019-12-15 15:40:00 +11:00
dexy
2b02ad0091 Fixed LODs culling issue 2019-12-11 22:38:59 +11:00
dexy
0aa220e0c2 Improved GameFileCache memory usage 2019-12-11 00:31:56 +11:00
dexy
5d0a3334a8 LOD manager immersion improvement 2019-12-09 00:41:35 +11:00
dexy
b187ad919b LOD manager performance improvements 2019-12-08 18:40:09 +11:00
dexy
6c76726131 Added LOD manager, improved shadows performance 2019-12-08 05:42:06 +11:00
dexy
52f4563680 Change entity culling to use boxes instead of spheres 2019-12-06 22:36:11 +11:00
dexy
9a53c2147b Deferred shading 2019-12-04 00:52:22 +11:00
dexy
7fb07e1a27 Opening ytyp in project window now updating world view archetypes 2019-12-01 17:31:44 +11:00
dexy
2f12402a03 Cutscene viewer hide models partially working 2019-11-27 20:24:02 +11:00
dexy
8bfca3a338 Peds form progress, new MetaNames, ped ymt metas parsing 2019-11-07 03:51:35 +11:00
dexy
fa268ec9c8 Replaced MetaTypeName.VECTOR3 with MetaName.FloatXYZ 2019-10-31 22:11:17 +11:00
dexy
96a561798c Fix for MLO Instance rotations 2019-10-31 19:01:06 +11:00
dexy
4834b8c520 Fixed casing issues with MetaNames which probably was causing XML issues. Moved shader param names to new ShaderParamNames enum to preserve casing. Moved meta type names to new MetaTypeName enum to avoid polluting MetaNames. 2019-10-31 17:11:12 +11:00
dexy
c14590ff42 Generate LOD Lights tool (WIP) 2019-01-21 17:30:43 +11:00
dexy
ac3bcb7f4e Added MetaNames by 0x1F9F1 - from companion app 2019-01-13 19:51:49 +11:00
dexy
6c244c6406 Replaced CMapData and CEntityDef property gets with field gets for performance 2019-01-09 18:09:12 +11:00
dexy
1af436b403 Stopped HD ytd's getting loaded when HD texture not enabled, changed cache stacks to queues, added distance property to entity 2019-01-08 18:57:24 +11:00
dexy
e4c2dddf10 Updated MetaNames 2018-12-29 11:10:49 +11:00
dexy
37afa2335c Moved entity sets checkboxlist to MLO Instance tab on entity panel. Added support for updating/saving MLO instance data. Added support for updating/saving TImeArchetype data. 2018-12-16 22:32:33 +11:00
dexy
13a57102a9 Selectable OccludeModels, also occluder ymap indices now displayed 2018-12-15 12:12:57 +11:00
dexy
3533260884 Rendering OccludeModels when in Occlusion mode 2018-12-15 04:09:02 +11:00
dexy
ca7f270c5c Added Occlusion mode and render YmapBoxOccluders (OccludeModels todo) 2018-12-15 01:46:48 +11:00
dexy
e7f5238c33 Added PsoTypes generated struct and enum infos, and new MetaNames 2018-12-14 02:14:14 +11:00
Soloman
462e464c2f Ability to edit YTYP files and MLO Entity Defintions + Revisions to grass brush (#33)
* - Add ability to edit/add ytyp files to project.
- Add ability to edit/add ytyp archetype files to ytyp.
- Add ability to add/remove entities from mlo archetype defs.
- Add ability to save ytyp files.
- Add dialog popup before optimizing grass batches.
- Fix grass batches not being selected when chaning selection in project explorer.
- Merged with upstream/master.
- Squashed last 4 commits for PR cleanliness.

* Fixed windows forms reference error.

* - Added error checking to deleting mlo entities.
- Fixed various bugs with deleting mlo entities.
- Fixed edit archetype panel Asset Type box.
- Removed redundant/unnecessary.
- Removed backwards references between MCEntityDef and YmapEntityDef. All ymap entity to mcentity references are grabbed using indecies in the MloInstanceData class.
- Fixed "YmapMenu" not showing when selecting entities/mlo entities in project form.

Current bugs:
- Loading a ytyp file -- mlo entities are not editiable, and are created in the world.
- entitysets are not editable (properly).
- Removing an mloinstancedef from a ymap does not delete the mlo instance's gizmo from the world, and it's still selectable. (Although all references are lost, and I believe collected by the GC?)

* - Moved archetype initialization methods YmapFile.InitYmapEntityArchetypes(GameFileCache gfc)  and MloInstanceData.InitYmapEntityArchetypes(GameFileCache gfc)
- Added ability to load mlo instance defs through ymap files.
- Fixed add method for mlo archetypes.

* - Removed SetOrientationInv.
- Removed unreachable code + updated comment.
- Renamed CreateEntity to CreateYmapEntity, and renamed params for consistency.

* Split calls to CreateYmapEntity() and MloArchetype.AddEntity().

* Fixed redundant rotation inversions.

* - Added ability to select rooms.
- Changed tree view grouping for mlo entities.
- Fixed projectexplorer selection bugs.
- Added ability to toggle mlo entity sets.
- Fixed some change events when editing archetypes.
2018-12-03 19:54:04 +11:00
Soloman N
6bce9acbcd Some revisions to grass brush.
- Made some changes to the way I check for deleting instances.
- Added a new bounding box check for painting grass.
- Made GetNewGrassBounds return a bounding box instead of our parameters
- Added new Expand method to bounding box util
- Added instance radius check and instance brush check to project form for possible future instance types (Props)
- Added grass brush gizmo
- Updated gui for grass instance batch panel
- Fixed bug with GoToPosition (with bounds)
2018-06-10 09:36:50 -04:00
Soloman N
b971beb5bf added grass painting 2018-06-07 12:42:41 -04:00
dexyfex
68273e7dca Refactored loading resource files from raw byte array code 2018-03-08 12:15:28 +11:00
Carmine
974e67ce46 Ymap: Added bit 10 (of contentFlags) assertion for GrassInstanceBatches 2018-02-27 19:18:20 +01:00