|
I think gamedev.net is probably the place to look. Pixel perfect 2D collision detection is easy enough, but I have no idea about 3D, beyond a vague idea of the maths involved.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks for the response. Should I google Pixel perfect 2D collision detection? And would I be able to use that with C#?
I love to program!
|
|
|
|
|
Sure you can use that in C#
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Depends what you mean by use it. You can implement the alogrithm in c#, actaully you could write the algorithm in COBOL if you wanted.
You might not be able to find a prewritten c# implementation though. 3d gfx is an area where every last percent of performance is more likely to matter so most of the work in it is still done with c++.
|
|
|
|
|
Eh, you can uaually eek significant performance out of C#. Its just a different process that requires understanding how managed code works, same as you would have to know how to efficiently allocate and free memory manually with C++.
As for collision detection in 3D, its quite a bit more complicated than it is in 2D. There are numerous ways you can do it, and depending on your target gaming platform's base performance, and how precise you want the collision detection to be, it can be fairly strait forward or very complex.
Since you have never done 3D collision detection before, I would search for bounding box collision detection algorithms. These are pretty simple, and use basic face intersection algorithms to check if an objects bounding box is intersecting with any other object or wall. More advanced techniques can do per-vertex comparisons to check each point on the surface of an object for collisions. You can do this either on the CPU (slow), or with vertex shaders on the GPU (fast), but its advanced either way. I'd start with the bounding box.
|
|
|
|
|
If you search this site for collision detection, you should find a game I wrote in three parts, and one article is all about collision detection. I think the game I wrote was probably slower than it needed to be, but it sure works.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
What's wrong with the file they offer you ? I can't check, I don't have an account.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You can login with -
username - user
password - user
|
|
|
|
|
I've emailed you a project that compiles and runs, but some observations
1. There is no meaningful article with this code
2. As a result, I don't see how you're likely to learn much from it
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian,
Thanks for doing that, but I have an older version and it wont run
Can you PLEASE give me step-by-step instructions on how to do it?
I know there is no article thats why I wanted to get the code running to learn directly from the code.
Thanks mate,
-Dan
|
|
|
|
|
I created a new console application, but in hindsight a windows forms app may have been better. Then I deleted all the code in the wizard generated app, and use add existing to add the two classes, which I had copied to the folder. With the console app, I needed to add references to system.drawing and system.windows.forms, then it worked.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian,
I've done that, and the program runs without errors, but the interface doesn't appear, the form is blank ???
Thanks again,
-Dan
|
|
|
|
|
Is there anyway you can save the project so it will open with version - 7.0.9466 ?
|
|
|
|
|
afaik there's no way to get UI items created in source (which is what you get when copy/pasting the code) to appear in the designer.
VS2002 will not open VS2003 or 2005 projects, nor can the newer versions save in the old format. Unfortunately this means you generally won't be able to directly open sample projects from the web. Fortunately the code changes between the 02 and 03 are fairly modest so most will still work.
|
|
|
|
|
maybe you save the project on desktop.you should save it in wwwroot folder in c#.After that open .net and go to the menu file->open and give the path of the .sln file of the project.It will show you the source code.
now you can run it using F5 ,can compile using ctrl+shft+B.
|
|
|
|
|
amit55650,
Thats not working for me?
If ANYONE can help me that would be much appreciated, my MSN email is kerton@iprimus.com.au
Thanks in advance,
-Dan
|
|
|
|
|
If someone could help me with this is would be much appreciated.
Thanks in advance,
-Dan
|
|
|
|
|
Can anyone point me to any websites or articles relating to accuWeather and what can be done to retrieve current weather information? It was simple to discover the details for Weather.com but I have only found bits and pieces of information pertaining to accuWeather, some of which is fairly incomplete. Any input anyone can provide would be great. Thanks!
|
|
|
|
|
Simple question really:
Has anybody seen any C# implementations of AliceBot?
If not, has anybody seen any C# based implementations of chatter bot AI?
EDIT:
Forget it, I am blind : http://www.ntoll.org/projects/aiml/[^]
|
|
|
|
|
Hey
I created an application that automatically enters a webmail account (enters automatically the username and password and enters the account).
the problem is that if one of the e-mail messages opens a new window, its being opened using IE (and thats fine by me b-u-t), when the IE window trys to show the content of that message, it can't because IE doesn't know that I already signed in with MY program so it asks the password and username again.
does anyone know how to fix it?!
I really have no clue!
|
|
|
|
|
Handle the NewWindow or NewWindow2 event. You'll need to return an implementation of the IWebBrowser (like a new instance of your AxWebBrowser control) in the first parameter and VARIANT_TRUE ((short)-1, or 0xffff) in the second). If you search for "NewWindow2" here on Code Project using the article search at the top of every page right below the logo you should find several examples.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
thanks, I'll get to work on that
|
|
|
|
|
Is there a C# method that will return me a path for a file name that I passed in? I need to remove a shortcut that place during an installation of another product. I know the name of the shortcut but not the location of the shortcut, thanks.
-- modified at 18:52 Monday 7th November, 2005
|
|
|
|
|
If you know absolutely nothing about the location of the file, then you probably need to search all the disks on the system for the thing.
But that would be a bit ridiculous. I'm guessing you know something about the location. For example, if it is somewhere on the start menu or desktop you could use System.Environment.GetFolderPath along with Environment.SpecialFolder to narrow down the search.
Or are you are you asking how to get the fully qualified path from a filename that has a relative path? If so, look at the FileInfo object.
Matt Gerrans
-- modified at 19:26 Monday 7th November, 2005
|
|
|
|