Skip to content

Default camera view changed in v1.9? #6694

Open
@komatebe

Description

@komatebe

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build Process
  • Unit Testing
  • Internalization
  • Friendly Errors
  • Other (specify if possible)

p5.js version

1.9

Web browser and version

All

Operating System

All

Steps to reproduce this

Has the default camera view in WEBGL mode changed in the latest 1.9 version of p5js?
p5js
I have noticed a significant difference, and it seems that any sketches created before version 1.9 would require reprogramming to work correctly.

Steps:

  1. Use this code in v1.9
  2. Use this code in v1.8
  3. Spot the difference

Snippet:

function setup() {
  createCanvas(400, 400, WEBGL);
	noStroke();
}

function draw() {
  background(0);
  for(z=0;z<300;z+=50){
    push();
    translate(0,0,z);
    torus(50+z/5,5);
    pop();
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions