School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,125 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,067 people online right now. Registration is fast and FREE... Join Now!




Lighting Limits Direct X

 

Lighting Limits Direct X, Custom Light algorithms

grnEyeDvl

30 Oct, 2009 - 03:01 AM
Post #1

New D.I.C Head
*

Joined: 28 Oct, 2009
Posts: 10

Hi

I'm working with Direct X 9 (c++) and i am interesting in writing an algorithm that does not use the default lighting methods, in basic to create a very simple stripped down lighting engine that goes behind the limit to 8 lights per scene could anyone point me in the right direction to a tutorial or a working example of a directx light engine.

thanks all for reading.

User is offlineProfile CardPM
+Quote Post


Tom9729

RE: Lighting Limits Direct X

30 Oct, 2009 - 10:26 AM
Post #2

Debian ninja
Group Icon

Joined: 30 Dec, 2007
Posts: 2,144



Thanked: 53 times
Dream Kudos: 425
My Contributions
The 8 light limit is per polygon (not per scene).
User is online!Profile CardPM
+Quote Post

grnEyeDvl

RE: Lighting Limits Direct X

30 Oct, 2009 - 10:57 AM
Post #3

New D.I.C Head
*

Joined: 28 Oct, 2009
Posts: 10

QUOTE(Tom9729 @ 30 Oct, 2009 - 10:26 AM) *

The 8 light limit is per polygon (not per scene).


Thanks tom, is there a way to increase this will custom lighting?
User is offlineProfile CardPM
+Quote Post

Tom9729

RE: Lighting Limits Direct X

30 Oct, 2009 - 11:09 AM
Post #4

Debian ninja
Group Icon

Joined: 30 Dec, 2007
Posts: 2,144



Thanked: 53 times
Dream Kudos: 425
My Contributions
Try just enabling the 8 closest lights to the model you're rendering.
User is online!Profile CardPM
+Quote Post

Aeternalis

RE: Lighting Limits Direct X

30 Oct, 2009 - 01:24 PM
Post #5

D.I.C Regular
***

Joined: 13 Jul, 2009
Posts: 273



Thanked: 25 times
My Contributions
What would you need more than 8 lights on a single polygon for? Just about any realistic effect can be created within that limit.. is there a true need for this?

Aet
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:22PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month