Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

way to enable vertex program point size with gl renderer #396

Open
underdoeg opened this issue Aug 26, 2019 · 6 comments
Open

way to enable vertex program point size with gl renderer #396

underdoeg opened this issue Aug 26, 2019 · 6 comments
Labels
type: enhancement [MINOR] Feature that doesn't take more than a few days to implement
Milestone

Comments

@underdoeg
Copy link

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

@BearishSun
Copy link
Member

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.

@underdoeg
Copy link
Author

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

@BearishSun
Copy link
Member

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 BearishSun reopened this Aug 26, 2019
@BearishSun BearishSun added the type: enhancement [MINOR] Feature that doesn't take more than a few days to implement label Aug 26, 2019
@BearishSun BearishSun added this to the Longterm milestone Aug 26, 2019
@underdoeg
Copy link
Author

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?

@BearishSun
Copy link
Member

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.

@underdoeg
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement [MINOR] Feature that doesn't take more than a few days to implement
Projects
None yet
Development

No branches or pull requests

2 participants