tag:blogger.com,1999:blog-8350257063773144600.post5883429014027935962..comments2024-03-08T00:18:28.525-08:00Comments on Pete Shirley's Graphics Blog: Direct Light 3: what goes in the direct light function?Peter Shirleyhttp://www.blogger.com/profile/17871569418798062417noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8350257063773144600.post-80163488216338686782022-09-23T19:57:22.878-07:002022-09-23T19:57:22.878-07:00nice blog you are sharing very informatics blog i ...nice blog you are sharing very informatics blog i will recommended to all <a href="https://thedraftingexperts.com/" rel="nofollow">Architectural 3D rendering service provider in California,usa</a> thedraftingexpertshttps://www.blogger.com/profile/02741878013853119229noreply@blogger.comtag:blogger.com,1999:blog-8350257063773144600.post-2161156239907824692022-02-01T21:30:20.272-08:002022-02-01T21:30:20.272-08:00Thanks for sharing such an Amazing post with us, F...Thanks for sharing such an Amazing post with us, For Professional <a href="https://www.3drevolutionusa.com/3d-townhouse-rendering" rel="nofollow">3D Townhouse Rendering</a> services in Los Angeles, Visit 3D Revolution Rendering company.3D Revolutionhttps://www.blogger.com/profile/13967435643329829297noreply@blogger.comtag:blogger.com,1999:blog-8350257063773144600.post-29435839448593289522022-02-01T13:43:15.824-08:002022-02-01T13:43:15.824-08:00From the book, this is the code to sample sphere u...From the book, this is the code to sample sphere uniformly:<br /><br />1 a = 1 - 2*u[0];<br />2 b = sqrt(1 - a*a);<br />3 phi = 2*M_PI*u[1];<br />4 x = R*b*cos(phi);<br />5 y = R*b*sin(phi);<br />6 z = R*a;<br /><br />-u[0] and u[1] are the x and y components of the hit point I'm sending the ray from, right?<br /><br />-And it was also specified that the z value of the sampled point ranges from -1 to 1, I just multiply that with the z value of the sphere light to make it right?Anonymoushttps://www.blogger.com/profile/14555082697627304641noreply@blogger.comtag:blogger.com,1999:blog-8350257063773144600.post-53545296303318035022022-02-01T12:25:56.202-08:002022-02-01T12:25:56.202-08:00For years I also discussed this in my graphics cla...For years I also discussed this in my graphics class, leading students to option 2. And then of course the question: "How would you assign probabilities to different light sources?"<br /><br />Whatever answer the students give (equal probability, proportional to intensity, distance only, ...) it is always easy to give a counterexample where that doesn't work, because it is hard to set up probabilities for the entire scene at once. And no one ever thinks to insert the visibility term into the probability of picking the light source - so that was/is usually the first homework ;-)Phil Dutréhttps://www.blogger.com/profile/13607941040736764291noreply@blogger.com