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

Lighting setup guide #7

Closed
rasteron opened this issue Apr 26, 2017 · 4 comments
Closed

Lighting setup guide #7

rasteron opened this issue Apr 26, 2017 · 4 comments
Assignees

Comments

@rasteron
Copy link

Is there a quick step or guide on how to setup different types of lighting, position, color, etc?

ands

@ands
Copy link
Owner

ands commented Apr 26, 2017

Apparently you are on the development branch which injects some blue emissive lighting into the initially black texture for testing purposes.
If you want, you can do the same.
Just render your objects with some colored (emissive) parts by painting into the textures that you render your objects with.
You can also render light source meshes with emissive surfaces (just color them; e.G. a yellowish sphere that is placed relatively far away to emulate the sun).
You can also set the clear color which would be like light coming from all directions.
Using a skybox to light your scene is also a possibility (just render a skybox like in a regular game scene).

Most of this you would have to implement yourself into the example application, or, if you already have your own OpenGL renderer, you can integrate this library into your project and just render your scene as always to compute indirect lighting bounces.

Hope this helps :)
(There is no guide or quick introduction other then the example, sorry. I might make a more useful application to show off what can be done at some point though).

@ands ands self-assigned this Apr 26, 2017
@rasteron
Copy link
Author

Hey @ands thanks and no worries! 😄 Noted on the development branch setup and I'll just do more tests.

Keep it up, this is awesome! 👍

@ands
Copy link
Owner

ands commented Apr 27, 2017

Have fun ;) (what did you note on the development branch setup?)

@rasteron
Copy link
Author

Ah yes, just this part that you mentioned 😄

Apparently you are on the development branch which injects some blue emissive lighting into the initially black texture for testing purposes. If you want, you can do the same.

thanks.

@ands ands closed this as completed Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants