0
Commit Graph

357 Commits

Author SHA1 Message Date
Bernd Buschinski
bc24ea53ce Added Chains 2021-06-02 17:36:17 +02:00
Bernd Buschinski
ba85932352 Added chiseled and cracked nether bricks 2021-06-01 19:41:25 +02:00
Bernd Buschinski
a998694dbf Added End Rod 2021-05-31 17:27:15 +02:00
Nicolas F
c43284a2cf Merge PR #1856 from IncredibleHolg
I finally got around to doing this.
2021-05-21 01:32:49 +02:00
Nicolas F
a7e5be4322 Merge PR #1926 of Buscher 2021-05-16 14:49:44 +02:00
Bernd Buschinski
49339af795 Fixes snow height rendering 2021-05-15 17:40:26 +02:00
Bernd Buschinski
9a34b4578f Fixes glass pane/iron bar connection/adjacent rendering 2021-05-13 20:00:09 +02:00
InrcedibleHolg
6b2be1635d add quartz_bricks, remove duplicates 2020-11-29 23:33:03 +01:00
Nicolas F
47a0604b5a textures: be more resilient against corrupted jars 2020-10-04 19:45:39 +02:00
Nicolas F
01ed588278 textures: work around old pillow
Older versions apparently didn't have LANCZOS filtering for
resizing. In this case, just fall back to whatever the default is.

Will look marginally worse for those people but at least it works.
2020-09-20 16:16:10 +02:00
InrcedibleHolg
d23fdb13f1 simplify fire handling 2020-08-30 10:43:44 +02:00
InrcedibleHolg
66ef67bb78 soul lightning 2020-08-23 09:55:29 +02:00
InrcedibleHolg
619ce0a219 add advanced blocks, nether roof update
crying_obsidian, lodestone, respawn_anchor
ancient_debris part of the nether roof
2020-08-15 10:10:29 +02:00
Lieuwe Westra
113a3a6f09 Added crimson and warped wood 2020-08-14 14:53:59 +02:00
InrcedibleHolg
629b43370e add stone nether blocks 2020-08-09 21:50:13 +02:00
Nicolas F
0776bf0a93 textures: fix various small nitpicks
- don't redundantly declare a side image when it's the same as top
- change wood blocks to get textures from a dict
2020-08-05 18:52:21 +02:00
InrcedibleHolg
0a9d1961c5 add soul_soil, nether_gold_ore, removelist 2020-08-04 19:38:23 +02:00
InrcedibleHolg
3ac090a7a0 nether biomes 2020-07-17 00:21:29 +02:00
Nicolas F
fcb3f2644d Shuffle around wall IDs, change wall check
Previously, walls were all numbered at 21000+. This is bad because
our blockmap is an array, so this caused our blockmap to take up
80 MiB of RAM in each worker process.

This commit changes the wall numbering, and exploits some bitmasking
to have the wall check run in constant time no matter how many walls
there are. This is done with a simple mask and xor to check the prefix.

RAM usage for the blockmap thus drops to like 44 MiB.

This is in preparation for adding more walls for 1.16.
2020-07-13 19:15:47 +02:00
Nicolas F
fd2c0a057a Add blackstone and netherite blocks 2020-07-03 13:10:23 +02:00
Nicolas F
bc56346bad Initial 1.16 block work
- Add ancient debris
- Add basalt
- Add polished basalt
- Add soul campfire
2020-07-03 13:10:23 +02:00
Joseph Camp
297a940a4b Amend loom rendering
- Account for render direction & block facing data
2020-06-23 23:35:43 +00:00
Joseph Camp
9ee1a6a3dd Amend table block rendering
- Account for render direction & flip bottom-right face of
  crafting, fletching, smithing, and cartography table blocks
2020-06-23 23:35:43 +00:00
Joseph Camp
83db30da66 Amend coarse dirt texture
- Correct texture used for coarse dirt
- Code formatting
2020-06-23 23:35:43 +00:00
Joseph Camp
efc345313d Add bell texture 2020-06-23 23:35:43 +00:00
Joseph Camp
99864d99a7 Add campfire texture 2020-06-23 23:35:43 +00:00
Joseph Camp
9365cce160 Amend lectern rendering
- Replaces exising implementation with a texture that better
  resembles the in game block, accounting for its facing & whether
  a book has been placed or not
2020-06-23 23:35:43 +00:00
Joseph Camp
cde059e9a6 Amend stonecutter rendering
- Account for facing when generating textures
- Render block top at the appropriate height & add saw blade
2020-06-23 23:35:43 +00:00
Joseph Camp
3bfe52013d Amend grindstone rendering
- Replaces existing implementation with a texture that better
  resembles the in game block and accounts for its facing & what
  surface it is attached to (ceiling, wall, or floor)
2020-06-23 23:35:42 +00:00
Joseph Camp
d0ddab3b20 Amend anvil texture generation
- Fix gap between sides & top in anvil texture
2020-06-23 23:35:42 +00:00
Joseph Camp
8e1eeb2170 Amend glazed terracotta rendering
- Reduce data range to prevent excessive texture generation
- Correct rotation of side 4 texture
- Simplify texture generation code
2020-06-23 23:35:42 +00:00
Joseph Camp
b2244f5b76 Amend observer rendering
- Allow rendering of powered observers with appropriate back texture
2020-06-23 23:35:41 +00:00
Joseph Camp
0bb4785008 Amend shulker box rendering
- Correct shulker box side textures being resized to 4x4 resolution
- Use intended texture for 'uncolored' shulker boxes instead of purple
2020-06-23 23:33:56 +00:00
Joseph Camp
7e0c880a58 Add mushroom block & vine variants
- Add all possible variants of mushroom blocks introduced in 1.13
- Render mushroom stems similarly to red/brown mushroom blocks
- Add vine variants where vines are on the upwards facing side
2020-06-23 23:33:55 +00:00
Joseph Camp
29eff95f8b Amend (blast) furnace & smoker rendering
- Use 'lit' property to determine when block is on or off
- Account for facing when generating textures
- Clean up smoker/furnace/dispenser/dropper texture generation code
2020-06-23 23:33:55 +00:00
Joseph Camp
6d5ccdfd54 Amend farmland rendering
- Use 'moisture' property to determine when to render farmland as moist
2020-06-23 23:33:55 +00:00
Joseph Camp
16753aad79 Fix cake rendering
- Use 'bites' property to determine which cut of cake to render
2020-06-23 23:33:55 +00:00
Joseph Camp
70ce68da4b Add Jigsaw block 2020-06-23 23:33:55 +00:00
Joseph Camp
46d48bf1f8 Fix cauldron water rendering
- Use cauldron 'level' property to determine water level
2020-06-23 23:33:55 +00:00
Joseph Camp
c30e976cbd Amend end portal frame rendering
- Use portal frame 'eye' property to allow ender eye to be rendered
- Use portal frame 'facing' property to determine block rotation
2020-06-23 23:33:55 +00:00
Joseph Camp
4ee5673e0d Add piston variant rendering & fix lighting
- Fix extended pistons rendering as if they were retracted
- Fix retracted pistons rendering completely dark when using a
  lighting rendermode primitive
- Use piston head 'facing' property to determine rotation
- Use piston head 'type' property to determine if sticky or not
2020-06-23 23:33:52 +00:00
Joseph Camp
2a7280f8bf Add colored beds & use bed facing/type properties
- Add beds with colors other than red
- Use bed 'facing' property to determine bed's rotation
- Use bed 'type' property to determine if the head or foot is rendered
- Correct faulty logic during bed texture generation
2020-06-23 22:27:04 +00:00
InrcedibleHolg
8c08b44a38 add flowers and berries 2020-06-13 16:45:50 +02:00
Nicolas F
7af188da4e textures: better error logging for corrupt files
Sometimes people's texture packs contain weird things, and it'd
be good if instead of throwing an unhandled IOError, we raise
a TextureException with the filename in it.

Also, make verbose mode actually run find_file in verbose mode,
which is useful for finding where Overviewer loaded that texture
file from.
2020-03-30 07:47:16 +02:00
Nicolas F
e5ec41fcf9 Revert "textures: remove baffling texture generation logic"
This reverts commit 9895fe875b.

The original code was correct, but confusing. Overviewer did regenerate
the texture in each worker process because Python pickling is incredibly
fragile fucking garbage designed by idiots who have no clue of what
a good language looks like.
2020-03-02 19:59:18 +01:00
Nicolas F
9895fe875b textures: remove baffling texture generation logic
We used to generate textures multiple times for each worker process,
which didn't seem to be intended as it was done gated behind a reversed
if statement. It just so happened to fix an issue introduced by the
pickling code which was deleting vital attributes like the actual
generated textures.

I'm honestly not sure why this was ever done, so let's just throw this
out and call it a day.

Fixes #1728
2020-02-19 15:06:42 +01:00
Nicolas F
d8b3183a88 Merge PR 1717 from DragonDev1906 2020-02-14 21:21:58 +01:00
Nicolas F
6251a6c730 Merge PR #1716 by Auron956 2020-02-11 07:38:43 +01:00
Nicolas F
021e88dd4a Merge pull request #1699 from sjamesr/py3.4-compat
Fix construct requiring >=Python3.5
2020-02-11 06:52:51 +01:00
Auron956
a3960bd419 Fix chest rendering by using 'type' property
Resolves an issue where chests with more than one adjacent chest would
fail to render. Instead of distinguishing double from single chests by
checking for the presence of adjacent chests, use the provided "type"
property of chests to determine if they are single or the left/right
part of a double chest.
2020-02-04 00:16:28 +00:00