Skip to content

Conversation

AlphaMode
Copy link

@AlphaMode AlphaMode commented Apr 6, 2025

I found a few annoying issues when trying to work with station api current rendering api, this PR aims to solve most of them.
This is a draft PR for now as I still want to add more features.
This PR also updates some old reused MC to use the newer versions of it
I also removed station api's vector, matrix, etc classes and replaced everything with JOML
I also updated DFU to use the same version as 1.21.5, not sure if their is a reason why this wouldn't be wanted but I can revert it if wanted.

  • Allow models to be renderd into a VertexConsumer (untested)
  • Port fabric api's quad api (still unsure if I would want to do this)
  • Port dynamic models from fabric api (pretty much the same as using fabric's quad api ex: context aware version of BakedModel#getQuads/emitQuads)
  • Use MatrixStack instead of using fixed function pipeline

@AlphaMode
Copy link
Author

I want to look into possible lightmap support, but I went ahead and removed the methods for them for now,
I might come back to it tho

Add LightmapGetter
Remove LightmapTextureManager (As it's too out of scope for the pr currently)
# Conflicts:
#	build.gradle.kts
#	station-maths-v0/src/main/java/net/modificationstation/stationapi/api/util/math/Direction.java
#	station-maths-v0/src/main/java/net/modificationstation/stationapi/api/util/math/Vec3f.java
#	station-maths-v0/src/main/java/net/modificationstation/stationapi/api/util/math/Vec4f.java
#	station-renderer-api-v0/src/main/java/net/modificationstation/stationapi/api/client/render/model/BakedQuadFactory.java
#	station-renderer-api-v1/src/main/java/net/modificationstation/stationapi/impl/client/render/StationTessellatorImpl.java
@AlphaMode
Copy link
Author

Due to #197 being merged, I pretty much just reverted the changes since those classes are just gone in this PR in favor of JOML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant