Original Post
Im having my first stab at a decent engine (not just graphics by the way) for this new game idea. First i''ll explain the idea a wee bit so you can understand that its not a wild dream at doing a MMPORPG.
The game has a sort of X-Files, DeusEx, Matrix feel to it (obviously im not trying to go as good as DeusEx).
But the main problem with the game is i havnt completed the story for it (actually not got much of one anymore after losing a lot of notes) so i thought that making little episodes would be a good thing (obviously nothing new as games have been doing this for a while online). The reason for this is i''ll get a brainstorm for how my story can progress then i get a block for months so making the game like a series seemed like an interesting thing to do and gives me a much smaller project to handle.
Now anyway I have decided to use OGL for graphics and my rendering class was going fine (all in design stage) as i had a scene manager that sorts vertices using an octree and then sends the vertices/tex coords/normals/ materials etc to the renderer, so far so good. Now the problem is lights, i thought i should derive lights from my objects base class as a lot of people have lights and sounds stored in there scene as objects, which seemed a good idea. But my objects have this physics entity class that has all sorts of stuff happening in it that a light wouldnt be effected by (suppose i could just move this down the chain a bit)
Then i thought that obviously my renderer needs to know about the lights in a scene so i have decided that when i send vertex data to the renderer i should send a list of the lights that effect these vertices. Now i''ve never done anything with shaders so for now im just gonna limit my scene to the 8/9 lights that OGL provides and the renderer shall set the proper details and enable the lights before rendering the scene.
Now I dont even know what i was asking or anything ''cos i think i just answered my question but if there is any flaws in this method or you have any advice I would be very greatful. Thanks.
Oh one last thing how hard/timely would it be to change the lighting to use pixel shaders (taking in consideration I would need to learn about them), or do you think I should just try and get my scripting system up and running (using Lua).