Commit graph

3665 commits

Author SHA1 Message Date
Jozufozu
eae8cd467b Cranking out fixes
- Fix hand crank not deleting its rotatingModel
- Fix exception setting up pulley lightcache
- Bump flywheel build to fix garbage models
2024-07-27 18:30:40 -07:00
Jozufozu
5be92fcde8 Bumpy road
- Bump flywheel build
- Directly rotate the last pose and normal matrix in SBB
2024-07-27 17:43:24 -07:00
Jozufozu
b3aba93665 93 days late
- Add BlazeBurnerVisual
- Offload blaze burner's tickAnimation to flywheel when enabled
- Add generic scrolling instance type for the flame, to be re-used for
  belts
- Mark flame model json as cutout
2024-07-22 15:26:26 -07:00
PepperCode1
3071e46ddc More Flywheel fixes and clean up
- Remove BeltLighter
- Replace AbstractPulleyVisual's usage of LightVolume with new
LightCache
- Remove Box, MutableBox, and LightVolume
- Use AbstractBlockEntityVisual#relight without the pos parameter when
possible
- Use ExtraMemoryOps where appropriate
- Remove unnecessary init methods
- Organize imports
2024-07-21 15:00:25 -06:00
Jozufozu
bbc30e41c7 Crank it!
- Fix valve handle visual rendering a ghost instance
- Fix drills rendering garbage
2024-07-19 21:42:56 -07:00
IThundxr
73661845fe fix instances & update flywheel 2024-07-19 21:42:18 -07:00
IThundxr
05c2cbaf73 Flying the wheel away 2024-07-19 21:42:18 -07:00
PepperCode1
02dca46855 SuperByteBuffer fixes and improvements
- Use color as a multiplier instead of override
- Always use maximum of provided light and stored light
- Use stored overlay if overlay value is not provided
- Use shader light directions to calculate diffuse
- Require providing level when using level light
- Reuse objects
2024-05-26 14:21:06 -07:00
Jozufozu
ec0350cfba Revving up
- Bump flywheel build
- Bulk replace com.jozufozu -> dev.engine_room
- Optimize imports
2024-05-25 12:25:19 -07:00
PepperCode1
669c748bd1 Fully fix unshaded geometry in SBBs 2024-05-21 17:22:47 -07:00
Jozufozu
0d324ffdf9 Simply implless
- Use split api/runtime flywheel jars
- Update instance types to use single packed light int
- Update visuals to use new context location
2024-05-20 21:31:55 -07:00
PepperCode1
79e1c8c950 Restore SBB contraption rendering 2024-05-16 21:35:24 -07:00
PepperCode1
7d265eb2c1 Rename instance to visual in builders 2024-05-16 21:35:15 -07:00
Jozufozu
d28fd7e47b Touchups
- Bump flywheel version and remove #shouldReset
- Water wheels and belt tunnels now properly handle updates without
  resetting
- Fix flaps going crazy
2024-04-02 19:23:14 -07:00
Jozufozu
26074dc3df Cut it out
- Remove CutoutPartial
- Set render_type in models than need cutout
- Fix TrackVisual going invisible when renderers reload
- Fix TrackVisual not getting re-lit in some cases
- Bump flywheel version
2024-04-02 19:23:14 -07:00
Jozufozu
42b1e19fc8 Light work
- Track the min/max sections contraptions reported themselves in
- When the current min/max sections don't match, invoke the notifier
- Track the min/max block positions contraptions collected light from
- When the current min/max positions don't match, re-collect all light
- Invalidate light before collecting
2024-04-02 19:23:14 -07:00
Jozufozu
99b886ce15 Cool and normal
- Minecraft does not rotate normals when you rotate a cuboid, which
  manifests as incorrect diffuse lighting in-game
- Set forge's calculate_normals to true for all rotated BB cuboids
- Fix some stray UVs on diagonal belts
2024-04-02 19:23:14 -07:00
Jozufozu
9cdc3ec231 Visual inspection
- Run through and fix a bunch of broken visuals
- Mostly things were missing setChanged
- Add CutoutPartial and BakedModel wrapper to force some partials to
  render as cutout
- Remove CutoutRotatingVisual
- Update most visuals to use the partial ticked passed to init and in
  VisualFrameContext
2024-04-02 19:23:14 -07:00
Jozufozu
a38f01fae2 Relit
- Actually use light volume api stuffs
- Bit of a pain to try to iterate over sections based on an AABB
- Still need to handle when contraptions move
- Bump flywheel version
2024-04-02 19:23:14 -07:00
Jozufozu
7df37f7bff Unlit
- Remove last bits of FlwContraption rendering
- Remove ContraptionLighter
2024-04-02 19:23:14 -07:00
PepperCode1
605daed671 Update Flywheel
- Fix SBB model buffering passing empty instead of virtual model data,
resulting in blocks like shafts appearing invisible with Flywheel off
- Fix endAndCombine not null checking unshadedData before transferring
it
- Remove VirtualEmptyBlockGetter which already exists in Flywheel
2024-04-02 19:23:14 -07:00
Jozufozu
7613ebcb1e Embed and virtualize
- Use VisualEmbedding in ContraptionVisual
- Remove context shaders
- Directly use the model from the blockstate in VirtualRenderHelper
  - Fixes many bes trying to use empty meshes because they correctly
    identify as ENTITYBLOCK_ANIMATED
- Fix valves being unlit
- Fix bearing contraptions spinning way too fast
- Do not implement SimpleDynamicVisual in CarriageContraptionVisual,
  that's taken care of by the base ContraptionVisual now
2024-04-02 19:23:13 -07:00
Jozufozu
286d2a68ab As shrimple as that
- Update to SimpleDynamicVisuals
- Translate old context stuff to new api
- Add contraption visual, doesn't fully work yet
- Strip out more FlwContraption stuff
2024-04-02 19:23:13 -07:00
Jozufozu
633a7abc23 Exit stage right
- Update to implicit render stage API.
- Fix bounding sphere transformers.
- Bump flywheel version.
- Update flywheel mixin config jsons.
2024-04-02 19:23:13 -07:00
Jozufozu
5038d04ac4 Pretty rad
- Bump flywheel build.
- Fix all(?) places where radians methods were passed degrees
- Add DiffuseLightCalculator.
- Add overlay to belt and rotating types.
- Use joml quaternions in instance types.
2024-04-02 19:23:13 -07:00
Jozufozu
b6d1f02d6a Chugging along
- Fix compile errors with new flywheel light update system.
- Fix compile errors in instance shaders.
- Call Instance#setChanged where needed.
2024-04-02 19:23:13 -07:00
Jozufozu
1c46bc8ae1 What's in a name
- Rename all *Instance -> *Visual.
- FlapData -> FlapInstance.
- Rename VisualizationContext variables.
2024-04-02 19:23:13 -07:00
Jozufozu
5bac9e5224 Things on the screen again
- Use our own model cache that's aware of virtual data.
- Fix memory write issues with instance types.
- Indirect works too, though the cull shaders are still incorrect.
2024-04-02 19:23:13 -07:00
Jozufozu
e892003eb5 Throwing shade
- Actually register instance types.
- Update instance shaders to compile with new flywheel.
- Add cull shaders.
- Update flywheel dep in mods.toml.
- Bump flywheel build.
2024-04-02 19:23:13 -07:00
PepperCode1
45c9e2c87a Potentially fix SBB and virtual block buffering 2024-04-02 19:23:13 -07:00
Jozufozu
d925d697cc Sweeping things under the rug
- Comment out some stuff to get it to compile.
- Pull in ModelUtil virtual stuffs from old flywheel.
- Update build.gradle to always download sources/javadoc in IDEA.
2024-04-02 19:23:13 -07:00
Jozufozu
8d54e9268a Top 50 errors of all time
- Down to 50 compile errors.
- Port over to new instance type builders.
- Move shaders and delete program specs.
- Switch #use to #include.
- Move content.kinetics.base.flwdata.* up a level.
- Move BeltInstance to the belt package.
- Make all instance fields public.
2024-04-02 19:23:13 -07:00
Jozufozu
458f63820b Starting to visualize it
- All visuals have their compile errors sorted out*
- I realize that flywheel flipped the semantics of rotate so that it now
  takes radians instead of degrees. I fixed everything I noticed but
  this will need follow up.
- Implement collectCrumblingInstances for every visual.

* Flywheel needs to re-implement stealInstance
2024-04-02 19:23:12 -07:00
Jozufozu
5451a9afc7 Less than 400 errors
- Lots of work on updating instances
- Pulled in some old utility classes from flywheel that were removed
2024-04-02 19:23:12 -07:00
Jozufozu
6d9587b463 Doesn't build script
- Update buildscript/gradlew and bump flywheel version
2024-04-02 19:23:12 -07:00
KdotJPG
c92bbdda2d
Increase layered ore shape variation (#6158) 2024-03-21 12:01:31 +01:00
simibubi
a41053b896 Merge remote-tracking branch 'origin/mc1.19/dev' into mc1.20.1/dev 2023-11-02 15:35:37 +01:00
simibubi
26fc820c69 Merge branch 'mc1.18/dev' into mc1.19/dev 2023-11-02 15:35:09 +01:00
simibubi
2201d87da7 Asset patches
- Fixed uvs on stress- and speedometers' block models
- Toolbox hotbar slot overlay now uses the revised brass palette from 0.5.1
2023-11-02 15:30:32 +01:00
simibubi
1e666e400d Merge remote-tracking branch 'origin/mc1.19/dev' into mc1.20.1/dev 2023-11-02 12:20:29 +01:00
simibubi
aef8947e35 Merge branch 'mc1.18/dev' into mc1.19/dev 2023-11-02 11:55:11 +01:00
simibubi
fff2512a67 Bump version 2023-11-02 11:48:09 +01:00
simibubi
8e323d03c9 1.19 datagen 2023-11-02 11:41:34 +01:00
simibubi
6e19661bf9 Port Changes 2023-11-02 11:32:38 +01:00
simibubi
04406690ca Merge branch 'mc1.18/dev' into mc1.19/dev 2023-11-02 11:32:20 +01:00
simibubi
f8ef93fbd9
Merge pull request #5523 from Creators-of-Create/l10n_crowdin_translations
New Crowdin translations
2023-11-02 11:16:28 +01:00
Crowdin Bot
6e5aced6b8 New Crowdin translations by Github Action 2023-11-02 10:00:49 +00:00
simibubi
962f03c1c5 Sisyphus's broken printer
- Fixed Schematics failing to load when containing items with sensitive nbt #5680
- Fixed Turntable handler causing a crash during world shutdown #5696
- Cached outputs of BeltHelper.isItemUpright()
2023-11-02 10:57:00 +01:00
simibubi
eea8bb2607 Filter code caused global warming
- Contents of a filter are no longer deserialised from item nbt each time a stack is tested
- FilteringBehaviour.getFilter() no longer creates a copy of the item
- MovementContext for contraption actors now have a shortcut to a cached filter from their corresponding BlockEntity
2023-11-02 00:08:34 +01:00
simibubi
d6708cef3b Collide on sight
- Trains check their distance before running full collision tests
- Trains can no longer collide when on separate track networks
- Micro-optimised some streams and map value iterators
2023-11-01 20:22:29 +01:00