Jump to content
  • Advertisement
Sign in to follow this  
OwenGameDev

FirstPersonCamera View in C#

This topic is 3445 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've been searching many many many! posts and forums and the whole Google nearly to make a First Person shooting game. So I thought if I could make a first person camera view then so I can look around with mouse then it would give me an head start. Can anybody ink me to any tutorials on how to do this? and plus if it needs to be in direct X in C#, Can anybody link be to any tutorials so i can set it up in C# and install it in C#? thanks, Regards, Owen.

Share this post


Link to post
Share on other sites
Advertisement
ok. i dont really want it in XNa, because i didnt quite like it. ( i never got an answer on my topics i made.)

But thanks anyway dpoon!

Share this post


Link to post
Share on other sites
Quote:
Original post by OwenGameDev
ok. i dont really want it in XNa, because i didnt quite like it. ( i never got an answer on my topics i made.)

But thanks anyway dpoon!


The logic and mathematics will be the same either way, it'd be a good idea to check it out.

Share this post


Link to post
Share on other sites
Ok, i've checked it out and spent hours and all i managed to compile is:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Game
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_KeyDown(object sender, KeyEventArgs e)
{
int camera;

if (e.KeyCode == Keys.Add)
{
//camera += 1;

//if (camera > 1.0f)
camera = 1;
}

if (e.KeyCode == Keys.Subtract)
{
//camera -= 1;

//if (camera <= 0.0f)
camera = 1;
}
}
}
}

Does anyone have it in plain C#?

Share this post


Link to post
Share on other sites
You don't need to compile it to read the code and see how it is implemented. If you are unable to do that, I would suggest doing some reading on matrix math and how matrices are used in graphics, and that sort of thing.

Share this post


Link to post
Share on other sites
Quote:
Original post by OwenGameDev
I would rather get a game working with matrix and camera view not with a gun first. you found on that?
I'm sorry, but I don't understand what you are asking.

Share this post


Link to post
Share on other sites
Quote:
Original post by smitty1276
Quote:
Original post by OwenGameDev
I would rather get a game working with matrix and camera view not with a gun first. you found on that?
I'm sorry, but I don't understand what you are asking.


well... do you know day-of-defeat: source? if you dont then google image it there will be an image what will be first person shooter. Thats what i want . A basic firstperson camerea view with an image as the floor in plain C#. or if you cant get it in plain C#], a basic easy engine not XNA.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!