Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 03 Jul 2012
Offline Last Active Today, 03:40 AM

Posts I've Made

In Topic: Disk Area Light

28 June 2015 - 11:42 PM

I'm not sure about the last minus lightPos. If I'm not mistaken, pos - dot(dir, _LightNormal) * _LightNormal should already be the point on the plane. Minus lightPos makes it a vector pointing from the center of the light to the point on the plane closest to pos (which is actually what you need in the end, but the name planeIntersect is a bit misleading here).

In Topic: Disk Area Light

28 June 2015 - 11:15 PM

Here's what I would do: First project your point onto the plane of the disk. Then check if the distance from the projected point to the center of the disk is less than the disk's radius. If if is, voila, closest point. If it is not, scale this distance to the radius of the disk, which will give you the point on it's perimeter that is closest to your original point.


Actually, I think this should be pretty close to what you have do with your rectangle light.

In Topic: I would like some help

23 June 2015 - 02:45 AM

As Ashaman73 already said, in the beginning any language that does not cause too much frustration will do. If you want something that can give you quick results (which is really good for staying motivated), you might want to check out Löve2D (http://love2d.org), which is a cross-platform framework which you program in Lua. Lua is relatively easy to learn, as is Löve.


Python is a nice beginner language too, but I have not found any easy to use game framework for it yet. Others might have had better experiences with it though.

In Topic: Do you comment Above or Below your code?

23 June 2015 - 02:17 AM

Commenting around your code? ok!



Thanks to syntax highlighting this is still pretty readable :D

In Topic: I get distracted with my other hobbies when watching video tutorials. [Read M...

09 June 2015 - 09:34 AM

I never understood why people would prefer video tutorials for something like programming. Whenever I search for some information, I can skip through a written text with ease and find what I've been looking for and read it in my own tempo. Watching video tutorials is so much more work. You have to watch the whole video to know if your actual question was answered, you have to listen to the guy making it the whole time, watching him getting sidetracked and going off on a tangent every few minutes.


I really don't think video tutorials are any good for learning programming. I can see the use for them for more dynamic tasks like drawing, 3d modeling or music composition, but for programming?


If it's so hard for you to focus on one thing, practice that. If you think you can't work as efficiently with a written tutorial as with a video tutorial, ask yourself if you're just too lazy to read the text (or improve your reading speed!). I was similar when I was younger, getting bored really quickly with long texts, but I was able to fix that with some practice (unless you have or think you have ADHD or something, then you might want to have a doctor take a look at your situation).


Reading is a very important thing for programmers of all kinds and there will be a day when you've advanced further than any tutorial can guide you. That's the thing you should be looking forward to and working towards, because it's a very rewarding thing when you can work out and solve a complex program all on your own. You will not be able to avoid reading a lot of stuff (and learning how to skim a text efficiently) by that time. Why not prepare for it now?


As for the books problem: I think you can order books on amazon.com and have them shipped to (almost) wherever you live. It might be a bit more pricey for you, but still better than having no books at all.