Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Sep 2012
Offline Last Active Feb 17 2015 08:46 AM

Posts I've Made

In Topic: 3D Line Equation?

14 August 2014 - 08:36 AM

I've come across some books that are really detailed and go through how they solve something and I prefer. I hate books that just give you an answer without any meaning behind it and expect you to figure out for yourself if you don't have a clue what some symbols might even mean or why nothing is actually showing up on the internet because they have written it down differently.


Anyway, I got passed that and onto the next set of exercises which is about finding the slope, y-intercept for each equation and the number of solutions. Well, I thought that a system of equations had to consist of more than one equation, if they don't, then I am completely lost because not even my previous books showed a system of equations with just one equation...


Anyway, the equation is:


x + y = 7


So the slope would be -1. The y-intercept would be: y = -x + 7.


Earlier in the book it tells you that to find out how many solutions a system of equations has by checking to see if the slopes of both equations are the same. If they are NOT the same, it has one solution, if it does, you then need to find the y-intercept and check to see if b1 and b2 are the same. b1 in this question would be 7.


So I have m1 = -1, and b1 = 7. The answer gives me that, but with m2 = 1/3 and b2 = 2/3, with only one solution.


I know you mentioned that I should focus on the theory and I guess understanding how it works, but I just wish someone could shed some light on this one so I can move on. If all of the exercises are like this, where they are giving me false answers or not explaining how they got the answer, I just don't see the point in the exercises...

In Topic: 3D Line Equation?

14 August 2014 - 06:28 AM

For 2D, the book gives you this formula to get the equation:


(y - y1) = m(x - x1)


y1 and x1 being the first coordinates. m being the slope.


So, one of the questions in the book is to find the equation of 2D points as well, like:


(0, 10) and (5, 0)


(y - 10) = m(x - 0)


m = (0 - 10)/(5 - 0) = (-10)/5 = -2


y - 10 = 2x


y = 2x + 10



Anyway, there is only a little bit of info in the book, the answer isn't even an equation, but it's a vector...


You have:


Δx = x2 - x1

Δy = y2 - y1

Δz = z2 - z1


So with the coordinates, (2, 0, -1) and (3, 4, 5), it would be:


Δx = 3 - 2 = 1

Δy = 4 - 0 = 4

Δz = 5 - (-1) = 6


This is why I was confused because it was asking for an equation, not a vector... The answers were a bit further on. So I got them right, but it wasn't really worded very well because I was trying to find an equation...


Thanks anyway.

In Topic: Books & Libraries

22 July 2014 - 10:46 AM

Thanks for the info, will definitely pursue into using ASIO in the near future as well as reading those books.


It's something I should consider doing at some point due to how heavily online gaming has become or even social networking involved in games. Very simple things like being able to share high scores across social networking sites, adding friends on mobile games or just general interacting with another players world.


With programs like an instant messenger, it's mainly for learning purposes, but you wouldn't need a server for that would you, or would you have one person lets say, open some sort of lobby that everyone can join, or be invited to.

In Topic: Books & Libraries

22 July 2014 - 03:50 AM

Cheers, I had heard about ASIO, but wasn't too sure if it was still widely used. I haven't heard of RakNet.


I have heard people mention WinSock, is that used still, does it accomplish the same things that ASIO or RakNet do?


About the books, are they more practical learning or are they mainly just for reading purposes and not participating in exercises?


I would also like to ask, would be a good idea to learn about servers and setting up a server if I were to start learning about networking?


Another thing I want to mention is that I am currently learning how to use the SFML library, it has a built in Network Module, just wondering if that is also something I should look into. I am using an SFML book at the moment and I am pretty sure it includes network programming in that.

In Topic: What library to choose to write games in C + +

08 August 2013 - 11:57 AM

I'm only in my early 20's and I started programming at like 17. I had no experience with any languages and was going into it blind. Didn't really have any idea which forums to go on, I did a bit of research and decided on using C++.


I have to say, it was difficult. I was having trouble with the most basic of programs. I also wasn't committed enough and wasn't studying enough each day.


I've been through a couple of books, some weren't very detailed and didn't really explain some of the basic stuff, so when I moved onto advanced projects, it was tough. I'm actually learning C+11, decided I needed a good book and to have a go at the new standard and I'm doing way better than I did when I first went into programming.


I tried out SDL, got through several lessons, but it just felt messy. A lot of the times my code wasn't working properly. The libraries weren't linking properly. It put me off it to be honest. I've just been learning C++ and dabbled in DirectX which I really enjoyed. Jumped into SFML last week, took a bit to get it up and running, was trying to get it running on Visual Studio 2012, but it just wasn't cooperating, so I went back into the 2010 version and got it up and running. It's so much easier to use. You will get windows and shapes up in minutes of programming. The names of classes, functions, etc. are very easy to understand. They have the documentation on the website.


I would recommend SFML for someone just beginning.