Skip to content

One pixel gpu picking not working with points but works with meshes #31395

@sketchpunk

Description

@sketchpunk

Description

I have a GPU picker which renders the scene to a render target that is only 1x1 pixel size. Works fine with meshes but not with points. Seems like a problem for both windows and macs. Not sure if this a problem in webgl, threejs or something i'm doing like if there is extra steps to make points work.

If I do a full screen render target points work. So I feel like its something tied to camera.setViewOffset

In the example code Im using r174, I also tested with the latest r178 and still not working.

Reproduction steps

  1. Example Page : https://sketchpunk.github.io/posing/proto/tmp2.html
  2. Open Javascript console
  3. Click around, Red cube and Green plane will show there is a colored pixel in that spot
  4. Click on blue point shows there is only a black pixel not a blue one

Code

https://github.com/sketchpunk/posing/blob/main/proto/tmp2.html

Live example

https://sketchpunk.github.io/posing/proto/tmp2.html

Screenshots

Image

Version

r174

Device

Desktop

Browser

Chrome

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions