Skip to content

Bugs with code in WebGL2 3D Perspective Section #168

Open
@molicaca

Description

@molicaca

Describe the bug
It seems some codes are wrong in the first example of 3D Perspective Section.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the first example in 3D Perspective Section
  2. Change the x, y position to get the object in the center of canvas
  3. Add the X angle to around 263

Expected behavior
Then in the result figure, the model seems to be worn, just like below
image

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Macos
  • Browser chrome

Additional context
Also, the code in that example also gets wrong. In this code "float zToDivideBy = 1.0 + position.z * u_fudgeFactor;" it should be "float zToDivideBy = (1.0 + position.z) * u_fudgeFactor;".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions