Skip to content

Commit

Permalink
Cave & Cliffs Update: Part 1 support (#77)
Browse files Browse the repository at this point in the history
* Include updated block textures from pack

* Add in missing textures

* Re-use tripwire hook render correct method for lightning rod

* Fix lightning rod placement & added more Transparent blocks

* Do not use TripWire render method

* Render dripstone

Only render tip texture. Centered. Orientation fixed.

* Fix render glow lichen

Will only render top and bottom facing texture.
TODO transform base texture and place for side facing lichen.

* Fix lightning rod render top/bottom orientation

* Fix render glow item frame

Will only render top and bottom facing texture.
TODO transform base texture and place for side facing lichen.

* Fix wrong texture for some azalea blocks

* Fix amethyst cluster render orientation

* Fix amethyst buds orientation and translation

* Variable for clarity

* Fix small dripleaf orientation

* Fix lightning rod orientation when placed sideways

* Added missing "double-cut" variants texture map

* Add missing rendering rules for cave vines and variants

Fix for #78
  • Loading branch information
bennydiamond committed Jun 26, 2021
1 parent 8032db8 commit 74f9dbd
Show file tree
Hide file tree
Showing 95 changed files with 624 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Maploader/Renderer/ChunkRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void RenderChunk(TImage dest, Chunk c, int xOffset, int zOffset)
textureFinder.FindTexturePath(block.Block.Id, block.Block.Data, block.X, block.Z, block.Y);
if (textures == null)
{
Console.WriteLine($"\nMissing Texture(2): {block.ToString().PadRight(30)}");
Console.WriteLine($"Missing Texture(2): {block.ToString().PadRight(30)}");
MissingTextures.Add($"ID: {block.Block.Id}");
continue;
}
Expand Down
374 changes: 364 additions & 10 deletions Maploader/Renderer/Texture/TextureFinder.cs

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion Maploader/World/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ private static (string, Dictionary<string, Object>) GetNbtVal(MemoryStream ms)
IEnumerable<fNbt.Tags.NbtTag> enumTag = (IEnumerable<fNbt.Tags.NbtTag>)tag;
foreach(var subtag in enumTag)
{
if((subtag.Name == "direction") || (subtag.Name == "facing_direction") || (subtag.Name == "open_bit"))
if((subtag.Name == "direction") || (subtag.Name == "facing_direction") || (subtag.Name == "open_bit") || (subtag.Name == "multi_face_direction_bits"))
{
int subtagvalue = GetTagValue(subtag);
dictParams.Add(subtag.Name, subtagvalue);
Expand All @@ -442,6 +442,15 @@ private static (string, Dictionary<string, Object>) GetNbtVal(MemoryStream ms)
dictParams.Add(subtag.Name, subtag.StringValue);
}
}
if(subtag.Name == "dripstone_thickness")
{
dictParams.Add(subtag.Name, subtag.StringValue);
}
if(subtag.Name == "hanging")
{
int subtagvalue = GetTagValue(subtag);
dictParams.Add(subtag.Name, subtagvalue);
}
}
break;
case "val":
Expand Down
Binary file added PapyrusCs/textures/blocks/amethyst_block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/amethyst_cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/azalea_leaves.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/azalea_leaves_flowers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/azalea_leaves_opaque.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/azalea_plant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/azalea_side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/azalea_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/big_dripleaf_side1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/big_dripleaf_side2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/big_dripleaf_stem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/big_dripleaf_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified PapyrusCs/textures/blocks/blackstone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/budding_amethyst.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/calcite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/cave_vines_body.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/cave_vines_head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified PapyrusCs/textures/blocks/coal_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/copper_block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/copper_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/cut_copper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PapyrusCs/textures/blocks/deepslate/deepslate.png
Binary file modified PapyrusCs/textures/blocks/diamond_ore.png
Binary file added PapyrusCs/textures/blocks/dirt_with_roots.png
Binary file added PapyrusCs/textures/blocks/dripstone_block.png
Binary file modified PapyrusCs/textures/blocks/emerald_ore.png
Binary file added PapyrusCs/textures/blocks/exposed_copper.png
Binary file added PapyrusCs/textures/blocks/exposed_cut_copper.png
Binary file added PapyrusCs/textures/blocks/flowering_azalea_side.png
Binary file added PapyrusCs/textures/blocks/flowering_azalea_top.png
Binary file modified PapyrusCs/textures/blocks/gilded_blackstone.png
Binary file added PapyrusCs/textures/blocks/glow_item_frame.png
Binary file added PapyrusCs/textures/blocks/glow_lichen.png
Binary file modified PapyrusCs/textures/blocks/gold_ore.png
Binary file added PapyrusCs/textures/blocks/grass_block_snow.png
Binary file added PapyrusCs/textures/blocks/hanging_roots.png
Binary file modified PapyrusCs/textures/blocks/iron_ore.png
Binary file modified PapyrusCs/textures/blocks/lapis_ore.png
Binary file added PapyrusCs/textures/blocks/large_amethyst_bud.png
Binary file added PapyrusCs/textures/blocks/lightning_rod.png
Binary file added PapyrusCs/textures/blocks/medium_amethyst_bud.png
Binary file added PapyrusCs/textures/blocks/moss_block.png
Binary file added PapyrusCs/textures/blocks/oxidized_copper.png
Binary file added PapyrusCs/textures/blocks/oxidized_cut_copper.png
Binary file added PapyrusCs/textures/blocks/powder_snow.png
Binary file added PapyrusCs/textures/blocks/raw_copper_block.png
Binary file added PapyrusCs/textures/blocks/raw_gold_block.png
Binary file added PapyrusCs/textures/blocks/raw_iron_block.png
Binary file modified PapyrusCs/textures/blocks/redstone_ore.png
Binary file added PapyrusCs/textures/blocks/small_amethyst_bud.png
Binary file added PapyrusCs/textures/blocks/small_dripleaf_side.png
Binary file added PapyrusCs/textures/blocks/small_dripleaf_top.png
Binary file modified PapyrusCs/textures/blocks/smoker_top.png
Binary file added PapyrusCs/textures/blocks/smooth_basalt.png
Binary file added PapyrusCs/textures/blocks/spore_blossom.png
Binary file added PapyrusCs/textures/blocks/spore_blossom_base.png
Binary file added PapyrusCs/textures/blocks/tinted_glass.png
Binary file added PapyrusCs/textures/blocks/tuff.png
Binary file added PapyrusCs/textures/blocks/weathered_copper.png
Binary file added PapyrusCs/textures/blocks/weathered_cut_copper.png
Loading

0 comments on commit 74f9dbd

Please sign in to comment.