You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing out the latest version of the Geospatial API and in the sample scene (Samples/ARCore Extensions/1.37.0/Geospatial Same/Scenes/Geospatial) there is a toggle for Geometry. However when I toggle it on nothing happens (no errors either).
I added some debug logs to the geospatialcontroller.cs script, only the first is logged so I guess there nothing being added to the _addedStreetscapeGeometrys or _updatedStreetscapeGeometrys
lines 675-715
` if (_streetscapeGeometryVisibility)
{
// get access to ARstreetscapeGeometries in ARStreetscapeGeometryManager
if (StreetscapeGeometryManager)
{
StreetscapeGeometryManager.StreetscapeGeometriesChanged
+= (ARStreetscapeGeometrysChangedEventArgs) =>
{
_addedStreetscapeGeometrys =
ARStreetscapeGeometrysChangedEventArgs.Added;
_updatedStreetscapeGeometrys =
ARStreetscapeGeometrysChangedEventArgs.Updated;
_removedStreetscapeGeometrys =
ARStreetscapeGeometrysChangedEventArgs.Removed;
};
Debug.Log("geo 1");
}
foreach (
ARStreetscapeGeometry streetscapegeometry in _addedStreetscapeGeometrys)
{
InstantiateRenderObject(streetscapegeometry);
Debug.Log("geo 2");
}
foreach (
ARStreetscapeGeometry streetscapegeometry in _updatedStreetscapeGeometrys)
{
// This second call to instantiate is required if geometry is toggled on
// or off after the app has started.
InstantiateRenderObject(streetscapegeometry);
UpdateRenderObject(streetscapegeometry);
Debug.Log("geo 3");
}
foreach (
ARStreetscapeGeometry streetscapegeometry in _removedStreetscapeGeometrys)
{
DestroyRenderObject(streetscapegeometry);
}
}`
i have streetscape geometry enabled in the GeospatialConfig
is geometry only available in certain areas (we are in Tokyo)
The text was updated successfully, but these errors were encountered:
i should clarify, there was a similar issue on the arcore gold demo. after they mentioned this fix the geometry started working for me on the standard sample - i rebuilt my app - not sure if that helped google-ar/demo-megagolf#1 (comment)
I am testing out the latest version of the Geospatial API and in the sample scene (Samples/ARCore Extensions/1.37.0/Geospatial Same/Scenes/Geospatial) there is a toggle for Geometry. However when I toggle it on nothing happens (no errors either).
I added some debug logs to the geospatialcontroller.cs script, only the first is logged so I guess there nothing being added to the _addedStreetscapeGeometrys or _updatedStreetscapeGeometrys
lines 675-715
` if (_streetscapeGeometryVisibility)
{
// get access to ARstreetscapeGeometries in ARStreetscapeGeometryManager
if (StreetscapeGeometryManager)
{
StreetscapeGeometryManager.StreetscapeGeometriesChanged
+= (ARStreetscapeGeometrysChangedEventArgs) =>
{
_addedStreetscapeGeometrys =
ARStreetscapeGeometrysChangedEventArgs.Added;
_updatedStreetscapeGeometrys =
ARStreetscapeGeometrysChangedEventArgs.Updated;
_removedStreetscapeGeometrys =
ARStreetscapeGeometrysChangedEventArgs.Removed;
};
Debug.Log("geo 1");
}
i have streetscape geometry enabled in the GeospatialConfig
is geometry only available in certain areas (we are in Tokyo)
The text was updated successfully, but these errors were encountered: