Recent content by NoteMe

  1. N

    FPS Camera

    I kind of managed to get it working in the end. Took me some time to get back to this thread because the HDD with all my code for the last 12 years died on me..:(...used a few days to gatter pieces..:(.. But I must admitt that I didn't manage to use rotations. I used trig, something that I...
  2. N

    Please offer criticism of my C++ code

    You are right, there is a ton. Like me...I would have written it like this: void main(){ int small=10, large=0, tempa, tempb; //Gets value of large number while( large <= small){ cout << "Enter the large number: "; cin >>large; //Insert insult here...
  3. N

    FPS Camera

    Are you sure...what did I do wrong..:)...I have been sitting with the stupid thing since I posted, and figgured it had to be more to it, and then you say that is it...grrr...:)....must read over my code again then. Thanks for at least telling me that I should be in the right direction..:) -...
  4. N

    FPS Camera

    I have seldom gotten as good help as I have done here. So I will try once more (thank you to everyone in the past that have helped me). I want to make a FPS camera for my game. This is for DX (so right handed coordinate system), but I don't think that matters at al. I have the movement and...
  5. N

    World coordinates to screen coordinates.

    Thanks thanks thanks thanks. I got it working now. It was REALLY easy to debug when I saw the answer..:)..it was my DotProduct that made the wrong result. Sloppy code..:( I am so greatfull for your patiense. Really admire that. Wish I could help you back, but I guess you are in an other...
  6. N

    World coordinates to screen coordinates.

    BTW if anyone has the time and energy, here is my code at least the importent stuff (coded in C#..sorry). public float this[int Row, int Col] { get{return this.m_matrix[Row, Col];} set{this.m_matrix[Row,Col] = value;} } public static Vector operator *(Matrix m1, Vector v1){...
  7. N

    World coordinates to screen coordinates.

    Hmm...that looks so easy...but I must be doing something wrong here. Lets say that we have a scenario like this: All these coordinates is in world coordinates. The dot with the arrow is the camera, pointing in the direction you can see the arrow points. The X is the point that I want to...
  8. N

    World coordinates to screen coordinates.

    I am not getting you here. How can I look at what it does to unit vectors when I don't have the projection matrix all ready? And yeah, I know I can multipy matrices. But speaking of that. I woke up this night and had an idea. Is what I am looking for actualy just a rotation and then a...
  9. N

    World coordinates to screen coordinates.

    That sounds simple enough. Hmmm..well to asume that I use row vectors, is more like telling me to use row vectors at this point..:)..as it says in the first post...:) So I will invert this matrix and then multiply it with the coordinates of the objects or? (object coordinates in world space I...
  10. N

    World coordinates to screen coordinates.

    Wow...so that is it?...sounds to good to be true...but could you please add some parentheses there....? I asume that * has a higher "priority"/precedence then / but there is still chaos in there..:) And just to be sure. when you say h_fov. That means the angle in radians in the "view" point...
  11. N

    World coordinates to screen coordinates.

    This is more of a pure math question, so please move it or toast it if it is not suited here..:) I am trying to draw some 3D objects from scratch here. Not using OpenGL or DirectX. But I have forgot most of my math books back in Norway, and I can't remember exactly how to go about this...
  12. N

    Paris Hilton's phonebook hacked

    It doesn't look like it was her phone that got hacked after all, but the net page where she had a backup of her stuff: http://www.macdevcenter.com/pub/a/mac/2005/01/01/paris.html :D Øyvind Østlund
  13. N

    Paris Hilton's phonebook hacked

    Wow, her personal e-mail is in there too...:eek:..who dares to send her a happy birth day mail.....just kidding ØØ
  14. N

    POP QUIZ: Find the bug in the following code... (semi-OT)

    Hehe...I sooo agree...:D...maybe they will kick me out as a teacher at our high school now..:D..I am a Java and a Algorithms in Java teacher..:D.."poo on my shoe" Øyvind Østlund
  15. N

    Oct Trees

    I am pretty new to 3D programming so you should probably not listen to me. I have only used oct trees or extended quad trees. And it looks like a very nice approach to use for out door terrain engines. SInce I have never used BSP trees I can't say anything about the advantages or disadvantages...
Back
Top