You can subscribe to this list here.
2000 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}

_{Jul}
(390) 
_{Aug}
(767) 
_{Sep}
(940) 
_{Oct}
(964) 
_{Nov}
(819) 
_{Dec}
(762) 

2001 
_{Jan}
(680) 
_{Feb}
(1075) 
_{Mar}
(954) 
_{Apr}
(595) 
_{May}
(725) 
_{Jun}
(868) 
_{Jul}
(678) 
_{Aug}
(785) 
_{Sep}
(410) 
_{Oct}
(395) 
_{Nov}
(374) 
_{Dec}
(419) 
2002 
_{Jan}
(699) 
_{Feb}
(501) 
_{Mar}
(311) 
_{Apr}
(334) 
_{May}
(501) 
_{Jun}
(507) 
_{Jul}
(441) 
_{Aug}
(395) 
_{Sep}
(540) 
_{Oct}
(416) 
_{Nov}
(369) 
_{Dec}
(373) 
2003 
_{Jan}
(514) 
_{Feb}
(488) 
_{Mar}
(396) 
_{Apr}
(624) 
_{May}
(590) 
_{Jun}
(562) 
_{Jul}
(546) 
_{Aug}
(463) 
_{Sep}
(389) 
_{Oct}
(399) 
_{Nov}
(333) 
_{Dec}
(449) 
2004 
_{Jan}
(317) 
_{Feb}
(395) 
_{Mar}
(136) 
_{Apr}
(338) 
_{May}
(488) 
_{Jun}
(306) 
_{Jul}
(266) 
_{Aug}
(424) 
_{Sep}
(502) 
_{Oct}
(170) 
_{Nov}
(170) 
_{Dec}
(134) 
2005 
_{Jan}
(249) 
_{Feb}
(109) 
_{Mar}
(119) 
_{Apr}
(282) 
_{May}
(82) 
_{Jun}
(113) 
_{Jul}
(56) 
_{Aug}
(160) 
_{Sep}
(89) 
_{Oct}
(98) 
_{Nov}
(237) 
_{Dec}
(297) 
2006 
_{Jan}
(151) 
_{Feb}
(250) 
_{Mar}
(222) 
_{Apr}
(147) 
_{May}
(266) 
_{Jun}
(313) 
_{Jul}
(367) 
_{Aug}
(135) 
_{Sep}
(108) 
_{Oct}
(110) 
_{Nov}
(220) 
_{Dec}
(47) 
2007 
_{Jan}
(133) 
_{Feb}
(144) 
_{Mar}
(247) 
_{Apr}
(191) 
_{May}
(191) 
_{Jun}
(171) 
_{Jul}
(160) 
_{Aug}
(51) 
_{Sep}
(125) 
_{Oct}
(115) 
_{Nov}
(78) 
_{Dec}
(67) 
2008 
_{Jan}
(165) 
_{Feb}
(37) 
_{Mar}
(130) 
_{Apr}
(111) 
_{May}
(91) 
_{Jun}
(142) 
_{Jul}
(54) 
_{Aug}
(104) 
_{Sep}
(89) 
_{Oct}
(87) 
_{Nov}
(44) 
_{Dec}
(54) 
2009 
_{Jan}
(283) 
_{Feb}
(113) 
_{Mar}
(154) 
_{Apr}
(395) 
_{May}
(62) 
_{Jun}
(48) 
_{Jul}
(52) 
_{Aug}
(54) 
_{Sep}
(131) 
_{Oct}
(29) 
_{Nov}
(32) 
_{Dec}
(37) 
2010 
_{Jan}
(34) 
_{Feb}
(36) 
_{Mar}
(40) 
_{Apr}
(23) 
_{May}
(38) 
_{Jun}
(34) 
_{Jul}
(36) 
_{Aug}
(27) 
_{Sep}
(9) 
_{Oct}
(18) 
_{Nov}
(25) 
_{Dec}

2011 
_{Jan}
(1) 
_{Feb}
(14) 
_{Mar}
(1) 
_{Apr}
(5) 
_{May}
(1) 
_{Jun}

_{Jul}

_{Aug}
(37) 
_{Sep}
(6) 
_{Oct}
(2) 
_{Nov}

_{Dec}

2012 
_{Jan}

_{Feb}
(7) 
_{Mar}

_{Apr}
(4) 
_{May}

_{Jun}
(3) 
_{Jul}

_{Aug}

_{Sep}
(1) 
_{Oct}

_{Nov}

_{Dec}
(10) 
2013 
_{Jan}

_{Feb}
(1) 
_{Mar}
(7) 
_{Apr}
(2) 
_{May}

_{Jun}

_{Jul}
(9) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

2014 
_{Jan}
(14) 
_{Feb}

_{Mar}
(2) 
_{Apr}

_{May}
(10) 
_{Jun}

_{Jul}

_{Aug}

_{Sep}

_{Oct}

_{Nov}
(3) 
_{Dec}

S  M  T  W  T  F  S 






1

2

3

4

5

6
(1) 
7
(1) 
8
(8) 
9

10

11
(2) 
12

13
(9) 
14
(1) 
15

16

17

18

19
(2) 
20

21
(1) 
22
(3) 
23
(1) 
24

25
(3) 
26

27

28

29
(1) 
30
(1) 
31







From: Diogo de Andrade <diogo.andrade@ne...>  20100111 12:43:24

Hey everyone… I’ve done a simple algorithm to get the cone area (for spot lights)… It’s basically the same as the omni light, but I find the bounding rectangle of a sphere S=(C,R), where C=LightPos+LightDir*range and R=range*tan(light_fov). After I do that, I calculate the projection of the position of light source, and do a min/max test to build the final bounding rectangle. I’m sure there’s probably a much better way to do this, but this one actually works pretty well, considering how simple it is… Again, thanks all for the help! Diogo From: Diogo de Andrade [mailto:diogo.andrade@...] Sent: segundafeira, 11 de Janeiro de 2010 12:03 To: 'Game Development Algorithms' Subject: Re: [Algorithms] Re : Re : R: Sphere to rectangle Hi Benjamin, I’ve looked at your explanation, and after you put it like that, I was all “doh!”… The problem is way simpler to solve in that form (extending the main line (center to red) so the projected point has the same characteristics of the purple points). After that it was pretty simple to get right… Thanks a lot for the help! Diogo From: Benjamin Rouveyrol [mailto:pthiben77@...] Sent: sextafeira, 8 de Janeiro de 2010 16:36 To: Game Development Algorithms; drizzt.du@... Subject: [Algorithms] Re : Re : R: Sphere to rectangle Hi Diogo, You pretty much spotted the problem with http://www.spellcasterstudios.com/sphere_problem.jpg What I wanted to do is to keep the old direction (ie center of the sphere towards the red dots), but change the vector's magnitude so that the point is on the line made by the camera position and the pink dot. So you compute first an angle (alpha = asin(R/D) ) on the triangle made by light center, camera position and pink dot. Then you apply Thales (tan(alpha) = x / D <=> x = D * tan(alpha) ) to get your final point outside the circle, and which is on the pink line. And yes, I computed the right/up vectors the same way you did (with a normalize for Right ;) ) When I look at my source code, I see that the 2D bounding rectangle checks all the xy coordinates of all the points to get the left/right/top/bottom. I can't remember why I did that, but I believe this was to solve the problem you're showing. Ben _____ De : Diogo de Andrade <diogo.andrade@...> À : Game Development Algorithms <gdalgorithmslist@...>; drizzt.du@... Envoyé le : Ven 8 Janvier 2010, 10 h 51 min 22 s Objet : Re: [Algorithms] Re : R: Sphere to rectangle Hi Benjamin, Your solution almost works for me… It works when the camera is head on to the center of the sphere: <http://www.spellcasterstudios.com/sphere_rect_problem01.jpg>; http://www.spellcasterstudios.com/sphere_rect_problem01.jpg But when I turn left or right, I get: <http://www.spellcasterstudios.com/sphere_rect_problem02.jpg>; http://www.spellcasterstudios.com/sphere_rect_problem02.jpg <http://www.spellcasterstudios.com/sphere_rect_problem03.jpg>; http://www.spellcasterstudios.com/sphere_rect_problem03.jpg This might be related to the projection part, I’ll look into it… What do you mean by: “Up and right vectors based on the camera and light positions (and the camera Up).”? I’m just accounting for camera orientation to calculate the up and right vectors… Are you suggesting something like: View=LightPosCameraPos Right=cross(CameraUp,View) Up=cross(View,Right) ? >From the more practical standpoint, from what I understand, you’re applying a scale factor to the radius to account for distance… How did you came about this formula? You didn’t happen to need something similar for spotlights/cones? Thanks, Diogo From: Benjamin Rouveyrol [mailto:pthiben77@...] Sent: sextafeira, 8 de Janeiro de 2010 15:03 To: Game Development Algorithms; drizzt.du@... Subject: [Algorithms] Re : R: Sphere to rectangle Hi, The way I solved this (but a bit math heavy): If R is the light Radius and D the distance between the camera and the light: NewR = D * tan(asin(R/D)) Then you compute Up and right vectors based on the camera and light positions (and the camera Up). You end up with 4 corners: LightCenter + Up * NewR + Right * NewR You can project them and this should give you your bounding rectangle. If someone has a simpler solution, I'd be most interested ^_^ Ben _____ De : Diogo de Andrade <diogo.andrade@...> À : drizzt.du@...; Game Development Algorithms <gdalgorithmslist@...> Envoyé le : Ven 8 Janvier 2010, 9 h 28 min 54 s Objet : Re: [Algorithms] R: Sphere to rectangle Hi! That's basically what I'm trying to do with the "wrong" solution, although I don't tell it like that... It was a good thought... I had to think about it for 2 mins before I understood that was exactly what I was trying to do... Visually, you can see the problem at http://www.spellcasterstudios.com/sphere_problem.jpg With your solution (and my initial one), I'd get the red points (and their projection, the yellow line), which is smaller than the correct solution (the purple points/projection), which has the correct size... Thanks! Diogo Original Message From: drizzt.du@... [mailto:drizzt.du@...] Sent: sextafeira, 8 de Janeiro de 2010 13:54 To: gdalgorithmslist@... Subject: [Algorithms] R: Sphere to rectangle Messaggio originale Da: diogo.andrade@... Data: 08/01/2010 13.45 > Hi all… > > I’ve been wrestling with a problem for some days now, and I > honestly can’t seem to figure an elegant solution… > > I want to find the rectangle that bounds a omni light source, > so the problem is: given a sphere with center C=(x0,y0,z0) and radius RADIUS, what is the bounding rectangle rect=(rx1,ry1,rx2,ry2) on screen? Ok, I read this ML only for educational purpose, so...well, I'm sure I will suggest the wrong solution :D Arent'you simply trying to do screenaligned billboarding? I mean...the bounding rectangle around a sphere of a given radius, on screen...is not always the same rectangle simply billboarded?  This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's bestinclass app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizondev2dev _______________________________________________ GDAlgorithmslist mailing list GDAlgorithmslist@... https://lists.sourceforge.net/lists/listinfo/gdalgorithmslist Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithmslist  This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's bestinclass app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizondev2dev _______________________________________________ GDAlgorithmslist mailing list GDAlgorithmslist@... https://lists.sourceforge.net/lists/listinfo/gdalgorithmslist Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithmslist 
From: Diogo de Andrade <diogo.andrade@ne...>  20100111 12:02:41

Hi Benjamin, I’ve looked at your explanation, and after you put it like that, I was all “doh!”… The problem is way simpler to solve in that form (extending the main line (center to red) so the projected point has the same characteristics of the purple points). After that it was pretty simple to get right… Thanks a lot for the help! Diogo From: Benjamin Rouveyrol [mailto:pthiben77@...] Sent: sextafeira, 8 de Janeiro de 2010 16:36 To: Game Development Algorithms; drizzt.du@... Subject: [Algorithms] Re : Re : R: Sphere to rectangle Hi Diogo, You pretty much spotted the problem with http://www.spellcasterstudios.com/sphere_problem.jpg What I wanted to do is to keep the old direction (ie center of the sphere towards the red dots), but change the vector's magnitude so that the point is on the line made by the camera position and the pink dot. So you compute first an angle (alpha = asin(R/D) ) on the triangle made by light center, camera position and pink dot. Then you apply Thales (tan(alpha) = x / D <=> x = D * tan(alpha) ) to get your final point outside the circle, and which is on the pink line. And yes, I computed the right/up vectors the same way you did (with a normalize for Right ;) ) When I look at my source code, I see that the 2D bounding rectangle checks all the xy coordinates of all the points to get the left/right/top/bottom. I can't remember why I did that, but I believe this was to solve the problem you're showing. Ben _____ De : Diogo de Andrade <diogo.andrade@...> À : Game Development Algorithms <gdalgorithmslist@...>; drizzt.du@... Envoyé le : Ven 8 Janvier 2010, 10 h 51 min 22 s Objet : Re: [Algorithms] Re : R: Sphere to rectangle Hi Benjamin, Your solution almost works for me… It works when the camera is head on to the center of the sphere: <http://www.spellcasterstudios.com/sphere_rect_problem01.jpg>; http://www.spellcasterstudios.com/sphere_rect_problem01.jpg But when I turn left or right, I get: <http://www.spellcasterstudios.com/sphere_rect_problem02.jpg>; http://www.spellcasterstudios.com/sphere_rect_problem02.jpg <http://www.spellcasterstudios.com/sphere_rect_problem03.jpg>; http://www.spellcasterstudios.com/sphere_rect_problem03.jpg This might be related to the projection part, I’ll look into it… What do you mean by: “Up and right vectors based on the camera and light positions (and the camera Up).”? I’m just accounting for camera orientation to calculate the up and right vectors… Are you suggesting something like: View=LightPosCameraPos Right=cross(CameraUp,View) Up=cross(View,Right) ? >From the more practical standpoint, from what I understand, you’re applying a scale factor to the radius to account for distance… How did you came about this formula? You didn’t happen to need something similar for spotlights/cones? Thanks, Diogo From: Benjamin Rouveyrol [mailto:pthiben77@...] Sent: sextafeira, 8 de Janeiro de 2010 15:03 To: Game Development Algorithms; drizzt.du@... Subject: [Algorithms] Re : R: Sphere to rectangle Hi, The way I solved this (but a bit math heavy): If R is the light Radius and D the distance between the camera and the light: NewR = D * tan(asin(R/D)) Then you compute Up and right vectors based on the camera and light positions (and the camera Up). You end up with 4 corners: LightCenter + Up * NewR + Right * NewR You can project them and this should give you your bounding rectangle. If someone has a simpler solution, I'd be most interested ^_^ Ben _____ De : Diogo de Andrade <diogo.andrade@...> À : drizzt.du@...; Game Development Algorithms <gdalgorithmslist@...> Envoyé le : Ven 8 Janvier 2010, 9 h 28 min 54 s Objet : Re: [Algorithms] R: Sphere to rectangle Hi! That's basically what I'm trying to do with the "wrong" solution, although I don't tell it like that... It was a good thought... I had to think about it for 2 mins before I understood that was exactly what I was trying to do... Visually, you can see the problem at http://www.spellcasterstudios.com/sphere_problem.jpg With your solution (and my initial one), I'd get the red points (and their projection, the yellow line), which is smaller than the correct solution (the purple points/projection), which has the correct size... Thanks! Diogo Original Message From: drizzt.du@... [mailto:drizzt.du@...] Sent: sextafeira, 8 de Janeiro de 2010 13:54 To: gdalgorithmslist@... Subject: [Algorithms] R: Sphere to rectangle Messaggio originale Da: diogo.andrade@... Data: 08/01/2010 13.45 > Hi all… > > I’ve been wrestling with a problem for some days now, and I > honestly can’t seem to figure an elegant solution… > > I want to find the rectangle that bounds a omni light source, > so the problem is: given a sphere with center C=(x0,y0,z0) and radius RADIUS, what is the bounding rectangle rect=(rx1,ry1,rx2,ry2) on screen? Ok, I read this ML only for educational purpose, so...well, I'm sure I will suggest the wrong solution :D Arent'you simply trying to do screenaligned billboarding? I mean...the bounding rectangle around a sphere of a given radius, on screen...is not always the same rectangle simply billboarded?  This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's bestinclass app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizondev2dev _______________________________________________ GDAlgorithmslist mailing list GDAlgorithmslist@... https://lists.sourceforge.net/lists/listinfo/gdalgorithmslist Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithmslist  This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's bestinclass app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizondev2dev _______________________________________________ GDAlgorithmslist mailing list GDAlgorithmslist@... https://lists.sourceforge.net/lists/listinfo/gdalgorithmslist Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithmslist 