Reputation
1,729
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
14 31
Impact
~83k people reached

Apr
18
awarded  Nice Question
Apr
7
awarded  Taxonomist
Mar
25
awarded  Favorite Question
Nov
12
awarded  Popular Question
Aug
30
awarded  Notable Question
Jul
20
awarded  Yearling
Apr
10
awarded  Popular Question
Feb
4
awarded  Notable Question
Dec
13
awarded  Popular Question
Jul
31
awarded  Notable Question
Jul
20
awarded  Yearling
Jul
2
awarded  Curious
May
31
comment What are the pros and cons of HLSL vs GLSL vs cg?
@NicolBolas That part was added but I'm not the author. I couldn't find any link at the time but there is apparently an effective lack of update of CG so I guess it was true. Also it looks like APIs will change again soon, so...
Feb
11
awarded  Nice Question
Feb
7
awarded  Popular Question
Jan
26
comment Spherical coordinate from cartesian coordinate
Thanks. I'll not to never again try to do maths at 2am in the morning...
Jan
26
comment Spherical coordinate from cartesian coordinate
After having use this code, I found that there is an issue: when I ask for from_cartesian( UNIT_X ) I get a phi which is negative (-90degree) while I should have a positive value (270degree). This I believe makes my unit tests get very wrong. I have no idea how to fix this.
Dec
12
accepted Spherical coordinate from cartesian coordinate
Dec
6
comment Spherical coordinate from cartesian coordinate
It my mistake again, I did atan2( y, hypot(x,z)) instead of atan2( hypot(x,z), y). Now it seems to work almost perfectly. The problem I see is positions around negative Z being avoided (I'm using a moving cursor using the spherical coordinates to check visually). I think the issue might be related to a chain of transformations I'm doing, I'm checking that right now.
Dec
6
comment Spherical coordinate from cartesian coordinate
Howver, my problem don't seem to be really fixed yet.