UMLComputerGraphics / GraphicsProject

UML Graphics 2 Final Project 2013
7 stars 1 forks source link

Lights #22

Closed ImperatorFeles closed 11 years ago

ImperatorFeles commented 11 years ago

We need some kind of representation of lights in the framework. This could just be point lights for now but ideally in the future we'd like to have spotlights as well.

This would involve perhaps having lighting information in the framework (position, brightness, etc.), sending the info down to the shader, and creating a mechanism in the shader for lighting things.

jnsnow commented 11 years ago

On this note, @nuclearmistake, @soujiroboi; what sort of information do you need for light sources for raytracing?

The standard specular/diffuse/ambient kind of structure used for the "standard" lighting models?

nuclearmistake commented 11 years ago

yes, but right now I think we're only using a single light.... raytrace1 doesn't really have a lightning model other than the romantic flicker,

MONOLITH's shaders has a BSed phong model for fallback atm, and I think the engine will have to be turned inside to use a texture buffer for sending raytraceable things over to the shader... eventually

nickavv commented 11 years ago

Assigning myself to this. I wrote a "Light" class this evening, it doesn't actually hook into anything yet

nuclearmistake commented 11 years ago

we have a single light... it works fine now.

I don't think we need this, especially considering it adds complexity to the raytracer, which is still not done.

nickavv commented 11 years ago

Lights are fully implemented now, and they're super great and cool. Look at the MONOLITH constructor for an example of how to use them.