Skip to content

Commit 73a31ab

Browse files
committed
Add screenshots and fix compile warnings
- Reduce cmake required version to ubuntu distributed version.
1 parent 27c1974 commit 73a31ab

File tree

8 files changed

+14
-7
lines changed

8 files changed

+14
-7
lines changed

.github/screenshot1.png

1.54 MB
Loading

.github/screenshot2.png

1.18 MB
Loading

.github/screenshot3.png

1.56 MB
Loading

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.30)
1+
cmake_minimum_required(VERSION 3.28)
22

33
if (NOT CMAKE_BUILD_TYPE)
44
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose Release or Debug" FORCE)

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ It uses the original assets that are downloaded from the resources server.
77
The downloaded assets will be stored in `%appdata%/Polymer/` on Windows and `~/.polymer/` on Linux.
88

99
### Screenshots
10-
![Polymer Image](https://i.imgur.com/rAfkvtd.png)
10+
Typical scene in a village.
11+
![Standard scene](.github/screenshot1.png)
12+
13+
Rendering inside a cave.
14+
![Cave lighting](.github/screenshot2.png)
15+
16+
Rendering with a radius of 32 chunks in a very dense area.
17+
![Dense chunks](.github/screenshot3.png)
1118

1219
### Running
1320
Main development is done on Windows. It can run on Linux, but not tested much.
1421

15-
- Requires `blocks-1.20.4.json` that is generated from running Minecraft with a [certain flag](https://wiki.vg/Data_Generators#Generators) or from the [polymer release page](https://github.com/atxi/Polymer/releases).
22+
- Requires `blocks-1.21.4.json` that is generated from running Minecraft with a [certain flag](https://minecraft.fandom.com/wiki/Tutorials/Running_the_data_generator) or from the [polymer release page](https://github.com/atxi/Polymer/releases).
1623
- Requires compiled shaders. Get them from the release page or read the building section below if manually building.
1724
- Requires an internet connection on first launch so it can download the necessary assets.
1825

@@ -28,7 +35,7 @@ The project is configured to use vcpkg as a dependency manager, so follow the di
2835

2936
#### Requirements
3037
- C++ compiler (tested with MSVC 2022 and Clang)
31-
- [CMake](https://cmake.org/) at least version 3.30.1
38+
- [CMake](https://cmake.org/) at least version 3.28
3239

3340
#### Windows
3441
- Open terminal in polymer folder.

polymer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.30)
1+
cmake_minimum_required(VERSION 3.28)
22

33
file(GLOB_RECURSE SOURCES ${PROJECT_SOURCE_DIR}/lib/*.cpp *.cpp)
44

polymer/asset/block_assets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ size_t AssetParser::LoadTextures() {
477477
{
478478
MemoryRevert reverter = arena->GetReverter();
479479
size_t meta_size = 0;
480-
char metaname[512];
480+
char metaname[520];
481481

482482
sprintf(metaname, "%s.mcmeta", texture_files[i].name);
483483

polymer/buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ String RingBuffer::ReadAllocString(MemoryArena& arena) {
370370

371371
if (!this->ReadVarInt(&length)) {
372372
this->read_offset = offset_snapshot;
373-
return 0;
373+
return {};
374374
}
375375

376376
result.data = (char*)arena.Allocate(length);

0 commit comments

Comments
 (0)