RainWarrior
4650ee2789
Updated to latest mappings. Exc is broken, some anonymous classes didn't map to srg names.
2016-03-13 04:40:03 +03:00
LexManos
7b7156e87f
Interaction hooks need to be re-added but compiles {Doesn't run}
2016-03-09 14:11:56 -08:00
RainWarrior
3e22a2b90d
Model UV lock handling from the state to the model, fixed most compile errors in ModelLoader, disabled it (and ModelBakeEvent) until it's functional, fixed some errors in ForgeHooksClient.
2016-03-06 02:51:39 +03:00
RainWarrior
70670d70ea
Removed generics from IModel subinterfaces, add ed ModelProcessingHelper instead.
2016-03-06 01:34:04 +03:00
RainWarrior
cb909eeb59
Fixed B3D loader, fixed some obvious errors in ModelLoader.
2016-03-05 05:02:34 +03:00
LexManos
ac7c4d2f6c
Some import renames and compile error fixes, killed ~800.
2016-03-01 04:58:03 -08:00
RainWarrior
e495b7599c
ModelLoader: added verbose error logging showing items/blockstates associated with model locations; removed redundant cast leftover from ungenerified code; fixed up a couple of warnings.
2016-02-22 03:53:26 +03:00
Bernhard Bonigl
9b128aaed2
Fix universal bucket logging an exception
2016-02-19 11:17:23 +01:00
Bernhard Bonigl
1055206ba8
Add universal bucket
2016-02-16 00:49:01 +01:00
RainWarrior
085b28ba35
Revert binary-incompatible changes in models.
2016-02-04 13:34:40 +03:00
RainWarrior
3bdc75ad49
Added "gui3d" and "smooth_lighting" options to the forge blockstate. Implemented them for vanilla and B3D models. Added generic types to IModel subinterfaces, to simplify chaining.
2016-02-02 12:23:26 +03:00
RainWarrior
0710bdf3f5
Model animation system.
...
Main things of interest:
* IAnimationStateMachine - state machine for animations; can load
from json.
* AnimationTESR - automatic TESR for animated models.
* AnimationModelBase - same for entities.
* ITimeValue - time-varying value, used to control animation
parameters from code.
* TESRs can now be batched - look at TESR.renderTileEntityFast +
TE.hasFastRenderer.
* RegionRenderCache is not accessible to TESRs and other client-side
logic - MinecraftForgeClient.getRegionRenderCache.
2016-01-24 09:59:38 +03:00
RainWarrior
17e8de8a3a
Fixed error detection login in ModelLoader, reduced the maximum number of printed stack traces to 5 per domain.
2016-01-20 01:20:26 +03:00
RainWarrior
968b7cae40
Correctly handle error caused by missing/malformed bucket model definition file.
2016-01-18 21:35:23 +03:00
RainWarrior
accf6cf218
Fixed missing model error reporting, made block and item variants sort before loading, to make the splash screen info more useful.
2016-01-17 01:57:06 +03:00
RainWarrior
5c5d946ff5
Made block model loading bar more robust, and fixed the count.
2016-01-07 02:09:29 +03:00
RainWarrior
95615cb4bf
Added progress bar for the ModelLoader.
2016-01-06 22:53:34 +03:00
RainWarrior
68339f51cf
Derp.
2016-01-06 22:06:36 +03:00
RainWarrior
949e77b46a
Model loader improvements: adding custom data/textures to models that don't need them doesn't cause a error now, since it's common to put those in the defaults section of the blockstate json; you can get IModel associated with the variant now - using ModelLoaderRegistry.getModel; MultiLayerModel should now respect transformations applied to it, and respect part transformations.
2016-01-06 22:00:43 +03:00
RainWarrior
f562579054
Don't crash on exception during loading of item variants from blockstate jsons.
2016-01-04 14:08:52 +03:00
Bernhard Bonigl
509cc79112
Fix bucket replacement not loading the bucket model by itself if replacing buckets.
...
This happens when no other mod that uses the bucket model is present.
Also added a simple method for registering the bucket model, should give
modders an idea on how to use the general model.
2015-12-29 13:31:35 +01:00
RainWarrior
097c0c6130
Added an ability to register custom item variants, not ending with "#inventory". Should allow grouping multiple item models into 1 blockstate json.
2015-12-24 06:06:38 +03:00
Fry
c7790f7b35
Merge pull request #2282 from bonii-xx/dynbucket
...
Add a dynamic bucket model that displays the animated liquid contained
2015-12-22 00:26:25 +03:00
Bernhard Bonigl
4f6784b733
Add a dynamic bucket model that displays the animated liquid contained
...
Has a config option (default off) that replaces the vanilla buckets with the forge bucket model
New original bucket textures from mr_hazard
2015-12-21 22:22:40 +01:00
RainWarrior
1dcc9abab2
Fix dependency resolution for models with custom data/textures.
2015-12-17 04:41:54 +03:00
RainWarrior
86c09722a0
IModel can now depend on a variant definition (ModelResourceLocation); added MultiLayerModel - simple model that'll render correctly in multiple layers + example of using it.
2015-12-15 21:49:19 +03:00
RainWarrior
d6ee373e87
Preparations for the Animation system.
...
Changes to the Model API - IModelState now works with Optional. Handling of parts of the model is not optional, and coordinate space/result interpretation is up to the caller. IModel doesn't extend IModelPart by default anymore; MapModelState uses composition to achieve previous functionality, IModelPart implementations are disjoint now. Updated perspective handing to the new API, removed IPerspectiveState (MapModelState is now the same thing). Perspective transforms for the default fluid model.
2015-12-14 23:27:27 +03:00
LexManos
5549b06f96
Compiler warnings pass, undeprecated SplashProgress related stuff.
2015-11-26 19:38:21 -08:00
RainWarrior
c5ee4e6451
Model stuff: updated to generics, fixed various warnings, added handling of new perspective types.
2015-11-13 17:23:37 +03:00
RainWarrior
e833ee81fb
Updated various rendering-related patches and classes to 1.8.8; forge still uses vecmath.
2015-11-10 00:03:39 +03:00
RainWarrior
da19eda51e
Provide a IModel for "builtin/generated", fixes #2147
2015-10-27 18:36:57 +03:00
RainWarrior
7c7547227c
Perspective awareness for vanilla and multi models, fixes #2148 .
...
Improved error handling in MultiModel.
2015-10-27 17:40:05 +03:00
shadekiller666
33e2e0b028
Fixed a bug with item model loading that would occur if ModelBakery.addVariantName() was called with the same string location parameter for 2 different items, and the string pointed to a location that didn't exist, where ModelLoader.loadAnyModel() would substitute the blockdefinition in for the item model, but wouldn't remove the original input location from the loadingModels list, which would cause the location from the second call to throw an IllegalStateException even though that location now has a model.
2015-10-26 10:15:13 -07:00
shadekiller666
d1b220f6a3
Added OBJ loader for the ModelLoaderRegistry system.
2015-10-26 19:38:49 +03:00
RainWarrior
dd365d7220
Model pipeline system.
...
Should replace all ad-hoc quad generation methods in forge, and make IBakedModel -> WorldRenderer data transfer faster. Added IVertexConsumer + helper classes; lighting that works correctly for non-axis-aligned faces using the new infrastructure. Changed smooth lighting algorithm, now it should work correctly for everything.
New block lighter can be disabled in the forge config options.
2015-10-26 19:25:48 +03:00
RainWarrior
c4f370a7e6
Custom transformations in forge blockstate json.
2015-06-30 21:37:11 +03:00
RainWarrior
8f65678b99
Vanilla models can now use custom textures. Fixes #1962
2015-06-23 16:52:42 +03:00
RainWarrior
510b5523d5
Fixed perspective transformations for item models.
2015-06-23 15:56:18 +03:00
RainWarrior
1582e401ed
Added ItemLayerModel - less awkward, simpler and faster version of ItemModelGenerator.
2015-06-23 04:43:48 +03:00
RainWarrior
07038f8342
Added fluid renderer.
2015-06-18 14:26:53 +03:00
Lex Manos
e94288bbb1
Fixup model loading errors not being printed by making ICustomModelLoader.loadModel propogate IOExceptions as needed.
2015-06-16 16:03:10 -07:00
Lex Manos
fef959d1e9
Redefine removal value in IRetextureableModel from null to empty string {""} due to ImmutibleMap not allowing null Values. Closes #1927
2015-06-09 12:36:36 -07:00
RainWarrior
685a97fd93
Fixed missing variant logging; added the possibility to specify the item variant in the blockstate json.
2015-06-04 18:07:03 +03:00
Lex Manos
267e1ee62f
Hook BlockState's Json loading to add support for simplified Forge format.
...
See https://github.com/MinecraftForge/MinecraftForge/pull/1885 for more details.
2015-06-02 16:49:56 -07:00
RainWarrior
46b1b82f13
Fixed mipmapping not being enabled by expanding 1x1 texture
2015-04-01 16:06:03 +03:00
RainWarrior
638af63f4d
Hopefully fix NPE during baking of empty vanilla item models
2015-02-23 16:02:10 +03:00
RainWarrior
0e34510032
Removed event bus call from the ModelLoader
2015-02-17 21:20:19 +03:00
RainWarrior
93cd9722b0
Added a default white texture; Fixed B3DLoader crashing when the brush has empty texture specified
2015-02-17 05:02:16 +03:00
RainWarrior
87ef833d32
Alternative models work once again
2015-02-14 00:23:03 +03:00
RainWarrior
dfc2e04255
fix ModelLoader.setCustomModelResourceLocation not storing same item with different metadata values
2015-02-09 17:19:10 +03:00