mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
This fundamentally reworks how the far distance plane is calculated. First I wanted to implement it like in maplibre-gl-js. Though that appraoch did not allow yaw AND pitch in both directions. It only allowed pitch in a single direction (only 90°, not the full 180°). The new approach is dicussed here: https://gamedev.stackexchange.com/questions/207328/calculation-of-far-distance-plane-based-on-yaw-and-pitch-for-a-map-renderer It works in all directions and should also be way faster to calculate. This PR also fixes the amount of tiles that are whown for the current zoom. If calculates the appropriate zoom level based on the current zoom and takes into account the resolution of tiles. * Introduce tile size based zoom level * Add debug handler for testing insets * Adjust handlers * Set fov to that of maplibre-gl-js * Move view projection calculation to view_state * Increase thickness of debug lines * Increase DEFAULT_TILE_VIEW_PATTERN_SIZE * Fix mdbook script * Enable debug plugin only in debug-like modes * Move view_state to render module * Remove 3D terrain specific code for transform * Remove overwriting z * Start to change camera movement * Change camera transformation to rotate around (x,y,0) instead of (x,y,camera_height) * Add all insets to debug handler * First completely working version which can yaw, pitch and roll * Update distance calculation * Set max/min pitch/yaw to 30 * Test stackoverflow approach * Fix far z with moved center * Use default instead of ::new
17 lines
859 B
XML
17 lines
859 B
XML
<component name="ProjectRunConfigurationManager">
|
|
<configuration default="false" name="Serve Book" type="ShConfigurationType">
|
|
<option name="SCRIPT_TEXT" value="" />
|
|
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
|
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/justfile" />
|
|
<option name="SCRIPT_OPTIONS" value="book-serve" />
|
|
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
|
|
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
|
|
<option name="INTERPRETER_PATH" value="/usr/bin/env" />
|
|
<option name="INTERPRETER_OPTIONS" value="just --justfile" />
|
|
<option name="EXECUTE_IN_TERMINAL" value="false" />
|
|
<option name="EXECUTE_SCRIPT_FILE" value="true" />
|
|
<envs />
|
|
<method v="2" />
|
|
</configuration>
|
|
</component> |