Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

lupicus

Members
  • Content Count

    29
  • Joined

  • Last visited

Community Reputation

5 Neutral

About lupicus

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. When colors are using float type then you use values from 0 to 1. When colors are using int then you use values from 0 to 255. So, you can change to this.addVertex(matrix4f, matrixNormal, vertexBuilder, 1, 0, 0, 1, combinedOverlay, combinedLight);
  2. Could be up to 7 times. You currently pass side to buildQuad. Do something like this for each add call you make: if (side == Direction.NORTH) quads.add(buildQuad(Direction.NORTH, north, 1, 1, 0, north.getMinU(), north.getMinV(), 1, 0, 0, north.getMinU(), north.getMaxV(), 0, 0, 0, north.getMaxU(), north.getMaxV(), 0, 1, 0, north.getMaxU(), north.getMinV() ));
  3. It is asking for quads for the NORTH side. It will call getQuads for all 6 sides and one extra for general quads (when side == null) not for a specific side. So by returning all the quads for each call then you are rendering the sides multiple times.
  4. Try adding this when canceling: event.setSwingHand(false);
  5. I think part of problem is that in getQuads, you are returning north and south faces and ignoring the quads for the requested side (method argument). The rendering code calls Block.shouldSideBeRendered to check if quads for a given side are drawn or skipped.
  6. For #1 and #3 you can adjust position in json file (this looks about right): { "loader": "forge:obj", "model" : "dicehoard:models/dice/d_six.obj", "display": { "gui": { "translation": [ 10, 3, 5 ] }, "ground": { "translation": [ 9.6, 5, 8 ] } } }
  7. I should've mentioned that I only took assets and no code, sorry about that. For #2, you have 2 texture U coordinates above 1.0 (the last 2 defined in OBJ file). Changing them to 1.0 makes it look correct.
  8. Beethoven92 is correct, you need to change map_Kd line to (map_Kd dicehoard:item/white). I put your files is a test project and the texture loads. (Note: I used your png file and not the jpg in model folder)
  9. Look at the Codec in each of those classes, the strings in fieldOf() are for each argument of constructor or load latest 1.16.5 and look at the fields the arguments are stored into. You might want to load the latest 1.16.5, because it should be easier.
  10. I tested your 2 files (unchanged at same locations you mentioned) in a dummy project and it works fine.
  11. look at the else case when outside [0,10) range in WorldRenderer. So -1 will remove damage.
  12. You don't need optifine, see spider or enderman renderer (eyes layer).
  13. The part of the bell that moves is in BellTileEntityRenderer class and the static parts are in json.
  14. To me a better example might be a shulker box, it is a full cube, but I must admit I'm just guessing what he is doing without seeing his code and assuming it was similar to what I had done. Shulker box works because it uses notSolid() block property, but this will let light go thru it.
  15. The chest example isn't a good one, because they aren't full cubes. It seems when they are full cubes the light passed into render method is 0, which will cause the faces to be dark. You have to get light for neighboring position using WorldRenderer.getCombinedLight for each side that you add to buffer (this seems to be what normal blocks do).
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.