Menu

#14 Create light class(es)

open
7
2009-10-01
2009-10-01
Mark Curtis
No

Need to create a class or set of classes that represent dynamic lights in a scene. The light class will extend from the scenegraph Leaf class so that lights can be inserted and transformed within a scene graph just like other leafs (geometry, cameras etc). The light system should support several types of lighting such as ambient, directional, point and spot lights. One decision to be made is whether to implement each type as a separate class or include all functionality in a single super light class. Since lights will need to be instantiated by the rendering system, a single class may well be the easier (if slightly less flexible) option.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.