Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] FirstPersonView breaks on interaction #9249

Open
7 tasks
Gerbert-Kaandorp opened this issue Nov 14, 2024 · 0 comments
Open
7 tasks

[Bug] FirstPersonView breaks on interaction #9249

Gerbert-Kaandorp opened this issue Nov 14, 2024 · 0 comments
Labels

Comments

@Gerbert-Kaandorp
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant