Skip to content

GroundedSkybox missing height parameter causing NaNs in bounding sphere calculation... #69

Description

@manthrax

In Env.js the construction of:

	skybox = new GroundedSkybox( hdr );
	skybox.scale.setScalar( 100 );

needs to pass the height, radius into the constructor... they don't have default values and are causing the SphereGeometry position attribute to contain NaN values.

causing this error when the background sphere is mouseovered:
error( 'BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this );

A fix could be:


let smoothHeight = .25;

skybox = new GroundedSkybox( hdr, smoothHeight , 1 );

skybox.position.y+=(height * smoothHeight);


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions