1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00
Files
godot/doc/classes
jfons 3a53ae5d9f Implement visibility range and dependencies.
This commit adds the following properties to GeometryInstance3D: `visibility_range_begin`,
`visibility_range_begin_margin`, `visibility_range_end`, `visibility_range_end_margin`.

Together they define a range in which the GeometryInstance3D will be visible from the camera,
taking hysteresis into account for state changes. A begin or end value of 0 will be ignored,
so the visibility range can be open-ended in both directions.

This commit also adds the `visibility_parent` property to 'Node3D'.
Which defines the visibility parents of the node and its subtree (until
another parent is defined).

Visual instances with a visibility parent will only be visible when the parent, and all of its
ancestors recursively, are hidden because they are closer to the camera than their respective
`visibility_range_begin` thresholds.

Combining visibility ranges and visibility parents users can set-up a quick HLOD system
that shows high detail meshes when close (i.e buildings, trees) and merged low detail meshes
for far away groups (i.e. cities, woods).
2021-06-14 12:17:11 +02:00
..
2021-06-11 09:32:39 -04:00
2021-06-03 07:30:01 -04:00
2021-06-11 18:48:42 +02:00
2021-06-04 18:14:32 +01:00
2021-06-11 18:48:42 +02:00
2021-06-11 18:48:42 +02:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-06-04 18:14:32 +01:00
2021-05-03 19:21:37 -03:00
2021-06-11 18:48:42 +02:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-06-03 12:05:20 -04:00
2021-06-11 18:48:42 +02:00
2021-06-11 18:48:42 +02:00
2021-03-19 13:21:20 +01:00
2020-01-31 17:15:41 -08:00
2021-03-19 13:21:20 +01:00
2021-03-19 13:21:20 +01:00
2021-06-11 18:48:42 +02:00
2021-06-11 18:48:42 +02:00
2021-05-31 10:13:09 +02:00
2021-06-13 02:02:39 +02:00
2021-05-31 10:13:09 +02:00
2021-06-05 09:28:56 -03:00
2021-06-11 18:48:42 +02:00
2021-06-04 18:14:32 +01:00
2021-03-19 13:21:20 +01:00
2021-03-19 13:21:20 +01:00
2021-03-19 13:21:20 +01:00
2021-03-19 13:21:20 +01:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-06-11 18:48:42 +02:00
2020-03-13 16:35:03 +01:00
2020-03-13 16:35:03 +01:00
2021-06-11 18:48:42 +02:00
2021-03-19 13:21:20 +01:00
2021-06-03 11:44:28 -04:00
2020-03-13 16:35:03 +01:00
2020-01-31 17:15:41 -08:00
2021-06-04 18:14:32 +01:00
2021-06-11 18:48:42 +02:00
2020-06-21 22:55:16 -04:00
2021-06-11 18:48:42 +02:00
2020-01-31 17:15:41 -08:00
2021-03-19 13:21:20 +01:00
2021-06-05 09:28:56 -03:00
2021-06-05 09:28:56 -03:00
2021-06-05 09:28:56 -03:00
2021-06-11 18:48:42 +02:00
2021-03-19 13:21:20 +01:00
2021-06-11 18:48:42 +02:00
2021-06-11 18:48:42 +02:00
2021-03-19 13:21:20 +01:00
2021-06-11 18:48:42 +02:00
2021-04-23 21:45:23 +02:00
2021-06-11 09:32:39 -04:00
2021-02-11 13:22:44 -08:00
2021-06-11 18:48:42 +02:00
2021-06-11 18:48:42 +02:00
2021-06-04 11:40:36 -07:00
2021-06-04 11:40:36 -07:00
2021-06-04 11:40:36 -07:00
2021-03-19 13:21:20 +01:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-06-04 18:14:32 +01:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-06-11 18:48:42 +02:00
2021-03-19 13:21:20 +01:00
2021-03-19 13:21:20 +01:00
2021-06-11 18:48:42 +02:00
2021-06-05 09:28:56 -03:00
2021-06-11 18:48:42 +02:00
2021-03-18 16:37:43 +01:00
2021-06-11 18:48:42 +02:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-06-11 18:48:42 +02:00
2020-01-31 17:15:41 -08:00
2021-06-03 07:30:01 -04:00
2021-02-19 14:39:14 +01:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-05-23 21:38:27 +02:00
2021-03-19 13:21:20 +01:00
2021-06-11 18:48:42 +02:00
2021-03-19 13:21:20 +01:00
2020-01-31 17:15:41 -08:00
2020-01-31 17:15:41 -08:00
2021-06-11 18:48:42 +02:00
2021-06-11 18:48:42 +02:00
2021-06-11 18:48:42 +02:00
2020-06-18 11:34:10 +02:00
2021-06-11 18:48:42 +02:00
2021-05-20 13:12:03 +02:00
2021-06-11 09:32:39 -04:00
2021-03-19 13:21:20 +01:00
2021-06-02 12:47:57 -03:00
2021-03-19 13:21:20 +01:00
2021-06-11 18:48:42 +02:00
2021-03-19 13:21:20 +01:00
2021-06-11 18:48:42 +02:00
2021-06-03 12:05:20 -04:00
2021-06-03 12:05:20 -04:00
2021-06-04 18:14:32 +01:00
2021-06-03 12:05:20 -04:00
2020-01-31 17:15:41 -08:00
2021-06-05 09:28:56 -03:00
2021-06-05 09:28:56 -03:00
2020-03-13 16:35:03 +01:00
2020-03-13 16:35:03 +01:00
2021-06-11 18:48:42 +02:00
2020-01-31 17:15:41 -08:00
2021-06-11 18:48:42 +02:00
2020-04-09 15:33:01 +10:00
2021-06-11 09:32:39 -04:00