Sega Saturn Development > General Jo Engine Help

Fixed Light Source?

(1/2) > >>

ponut64:
Simple question. Does anyone know how to organize a fixed light source?

It probably revolves around organizing my matrix properly, but at the moment it seems the light source is always the camera/player.
I want the light source to always be in one particular location in the world. Or rather, from one particular angle (i'm not asking it to be in the center, that would be much more complicated)

Maybe I should figure out gourad shading

XL2:
You need to calculate the point.
See the SGL demos or RockinB's tutorial.

ponut64:
That's helpful, now I know where to look. I guess I should have figured Sega would have a demo of such a thing, wouldn't they?

XL2:
I'm not sure if that's sarcasm, but if not here is the link where RB explains it : http://www.rockin-b.de/saturn/saturngametutorial/SaturnGameTutorial.htm#useRealtimeGouraud

ponut64:

--- Quote from: XL2 on May 10, 2018, 12:28:25 am ---I'm not sure if that's sarcasm, but if not here is the link where RB explains it : http://www.rockin-b.de/saturn/saturngametutorial/SaturnGameTutorial.htm#useRealtimeGouraud

--- End quote ---

No, that wasn't sarcasm. I really didn't know where to look. Thanks, XL2
You, on the other hand, are free to call me lazy. it does mark something off of ones pride to find out the solution really was google

With gourad shading laid out so simply like that, using your CLUT (or really any other) system is made easier

Navigation

[0] Message Index

[#] Next page

Sitemap 1 2 3 4 5 6 7 8 9 10 
Go to full version