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

Terrain example #597

Closed
VinnyVicious opened this issue Dec 11, 2015 · 5 comments
Closed

Terrain example #597

VinnyVicious opened this issue Dec 11, 2015 · 5 comments

Comments

@VinnyVicious
Copy link

A terrain example would be nice to have.

@bkaradzic
Copy link
Owner

Purpose of examples in bgfx is to show of API use + to cover different feature code paths. Not sure how terrain fits into this. Is there anything specific that's unclear about API and how to do with bgfx?

@andr3wmac
Copy link
Contributor

A sort of terrain example might be useful for testing dynamic vertex buffer updates, and testing texture sampling in vertex shaders. I'm thinking a simple heightmap based terrain with raise/lower (right/left click?) with three options available in a menu:

  1. Regular Vertex Buffer: destroy/create for each height update.
  2. Dynamic Vertex Buffer: update for each height update.
  3. Vertex Shader Texture Sampling: the height data is written to a texture and sampled in the vertex shader.

I might have time this weekend to throw it together if there is interest.

@bkaradzic
Copy link
Owner

Sounds good! 👍

Also it might be enough just to cover 2 and 3.

@bkaradzic
Copy link
Owner

@VinnyVicious
Copy link
Author

Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants