bsf icon indicating copy to clipboard operation
bsf copied to clipboard

way to enable vertex program point size with gl renderer

Open underdoeg opened this issue 6 years ago • 6 comments

Is there a way to enable GL_VERTEX_PROGRAM_POINT_SIZE within the opengl renderer?

underdoeg avatar Aug 26 '19 09:08 underdoeg

I don't believe this is supported.

You should ask questions on discourse.bsframework.io, github issues are reserved for bugs and feature requests as per contribution guidelines.

BearishSun avatar Aug 26 '19 16:08 BearishSun

It is some sort of feature request. But yes, there probably isnt an implementation that would work for all render APIs.

underdoeg avatar Aug 26 '19 17:08 underdoeg

Re-opening as a feature request. I'm not sure how well is this feature supported on modern hardware and render backends? I feel like I remember most modern hardware don't support varying point sizes, but I might be misremembering.

BearishSun avatar Aug 26 '19 18:08 BearishSun

AFAIK the implementation is vendor dependent though all of them support it in some way or another. what is not defined is the max allowed point size. But it is part of the official opengl standart.

A little off topic but somewhat related. I usually use it to easily generate billboard point sprites. what method would you recommend with bsf?

underdoeg avatar Aug 26 '19 18:08 underdoeg

It's probably easiest to use instanced rendering to draw the quads, potentially with a custom vertex shader to control the size and orient them towards the view.

Particle system might also be able to handle this out of the box, or at least with a custom shader.

BearishSun avatar Aug 26 '19 18:08 BearishSun

i'll probably have to implement something like that at some point. FYI we develop software for clients that run on a single device. That's why we get away with using things like point size and don't worry about it.

underdoeg avatar Aug 27 '19 08:08 underdoeg