Skye icon indicating copy to clipboard operation
Skye copied to clipboard

A question of fill.vs

Open JinYiGao opened this issue 3 years ago • 2 comments

image image In fill.vs ,there's a uniform variable called "uOffset", and set it to 0 in Program, I want to know why you did that. And I tried to set it to 0 manually in the shader, but it didn't work. image Thank you very much if you can answer my questions. : )

JinYiGao avatar Jul 07 '21 05:07 JinYiGao

Hi, it's only set to 0 if your pointcloud has just one vertex buffer, i.e., if it has less than 134M points. If it has more than that, another code path is taken: https://github.com/m-schuetz/Skye/blob/afc3bd58d91b0168852e0abc7405ad35650b6107/modules/progressive/render_progressive.js#L304

Could that be the problem? Does your pointcloud consist of more than 134M points?

m-schuetz avatar Jul 07 '21 18:07 m-schuetz

Haha, thanks for your answer, I finally know the meaning of "uOffset", I can't show it before because I made a mistake in code. No questions now, thank you.

JinYiGao avatar Jul 08 '21 03:07 JinYiGao