Skip to content

[Bug] FirstPersonView breaks on interaction #9249

Open
@Gerbert-Kaandorp

Description

@Gerbert-Kaandorp

Description

When interacting with deckgl in FirstPersonView, the far plane gets reset

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

Initially you should see the boxes animating.
However, when interacting with it, they disappear!

Note: I needed to set the "far": to 10000 or 100000 to see the boxes initially as expected.

image

Steps to Reproduce

To observe the problem, go to:
https://deck.gl/playground
and use the following code:

{
	"initialViewState": {
	  "longitude": -122.4,
          "latitude": 37.74,
  	  "far": 10000,
	  "zoom": 6.6,
	  "minZoom": 5,
	  "maxZoom": 15,
	  "pitch": -3,
	  "position":[0,0,234],

	  "bearing": 0
	},
	"views": [
	  {
		"@@type": "FirstPersonView",
		"controller": true
	  }
	],
	"layers": [
	 	
	{
		"@@type": "ScenegraphLayer",
		"id": "ScenegraphLayer",
		"data": "https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/bart-stations.json",
		"pickable": true,
		"scenegraph": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/BoxAnimated/glTF-Binary/BoxAnimated.glb",
		"getPosition": "@@=coordinates",
		"getOrientation": [
			0,
			0,
			90
		],
		"_animations": {
			"*": {
				"speed": 5
			}
		},
		"sizeScale": 500,
		"_lighting": "pbr"
	}
	]
  }

Environment

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions