Jump to content

Nictogen

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

1002 profile views

Nictogen's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I figured out that I can fix the issue by disabling the lighting before returning the baked quads, but that seems like a bad solution... If anyone knows the underlying reason for this I'd be grateful
  2. Tried that, no change unfortunately
  3. I have an item that has a different "model" based on its NBT. I had been rendering it manually, but for performance reasons I'd rather have a baked model that I can eventually cache than do a TESR every tick. The only problem is that when the item is rendered in the hand or really anywhere except in a gui, it is much darker than I would like. I don't claim to understand much of baked models, so I can't figure out why this would be the case. Using the item vertex format and applying normals to the vectors seems to change the brightness, but it is inconsistent and changes when I look around. If anyone can help, that would be great. Attached is how the item looks in the hand (ignoring the wrong offset, I just haven't gotten around to fixing it). It should be rendering white, but it is a fairly dark grey due to the brightness. In a gui, it correctly renders white. I believe all of the relevant code is in this gist: https://gist.github.com/nictogen/984d165ea2fefbfdbd3ca7c0f2666ebf If not, the full codebase is available on github. https://github.com/nictogen/Star-Tech/tree/master/src/main/java/com/nic/st
  4. First of all, your LapisCobblestone is a Block, and blocks are singletons, meaning that only one instance of them is made (the instance you use when you register it). Therefore, all of your variables (timelast, time, l) will be the same for every LapisCobblestone block placed in the world. You don't really want to do that. I'd add a tile entity to the block that extends ITickable, personally (see vanilla tile entities such as the furnace)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.