Skip to main content
gamedev.net
๐Ÿ”’ Locked

Preetham Sky...

Started by Thaligar Nov 5, 2004 at 3:16 AM 1 replies 2.1k views
Original Post
Thaligar
Thaligar
hi, i actually implemented the daylight/skylight paper, ("A Practical Analytic Model for Daylight" by Preetham et al) my sky is always dark, i can multiply the luminance to get better results, my code looks like this: RGB_C = XYZ_to_RGB(Yxy_to_XYZ(Yxy_C)); the functions are selfexplaning, shall i clamp the colors or so to get better results?? thankx in advance tgar
Thaligar
Thaligar
now i am getting nearly good results, but i think i've got some trouble with the turbidity, if i change it to something bigger than 1 i get ugly bright results...

any idea,

thx in advance
tgar [smile]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.