And here we go... After more extensive searching I found the problem. I use spritebatch to draw in GUI (for now debug coords and angle values)
It turns DepthBuffer off. And DepthBuffer is the part...
Type: Posts; User: Shingetsu Kurai
And here we go... After more extensive searching I found the problem. I use spritebatch to draw in GUI (for now debug coords and angle values)
It turns DepthBuffer off. And DepthBuffer is the part...
Done both, simply add a field to Triangle<T> with a float value containing the distance, this way I don't have to calculate it in IsTriangleVisible and during the sorting -> it's calced during...
This is the code for IsTriangleVisible:
private static bool IsTriangleVisible(Triangle<Vertex> check, SharpCamera camera = null)
{
if (camera != null)
Camera...
Thanks both of you. Now my answer.
1. Nope, XNA only passes the vertices and indices to the shader, and IDK how to make HLSL calculate obscurity yet (I don't think it can since it processes one...
Hello all, as a mod hinted me, the Game Programming forum is mainly for C/C++, so I'll post here from now on.
I'm making a game library in C#.NET for XNA, and I've encountered the problem that in...
C is mainly for OS these days, game programming is usually done with C++ or C# (C# mainly for XNA efficiency, so mainly C++).
I never heard of game programming done with C, so I suggest you try...
Hello again all!
Right now I'm making a library for XNA on C#.NET (if I ever finish it it will be made accessible, I got boss camera class which is worth it alone :D). And I ran into this problem......
Hey all.
I'm wondering if it's possible to have a class return a field of it's by default when it's used on the right hand side.
for example:
namespace NAME_SPACE
{
class MyClass
{
Ok all, I managed to find the answer myself!
Seems that quaternion multiplications work differently then Matrix ones. So I did the combining in matrices then retransformed it. Here is the final...
Hey all, I'm working on a static camera class (for my own use, if I ever complete it and have it working ill post here) in XNA.
I made a working version using absolute vextors being rotated by...
Thanks all. For docs it actually isn't messy, but I see your point on that. I'll probably use the Eclipse team sync and get organized XD.
Hey all. Right now I got to a point where I start doing things in team XD, lotsa work. (in fact made a group in which the team is etc...) so my question is, is there an IDE that allows people to work...
Hum, thanks. What I was thinking of was to make the page Javascript and save it in the directory of the program...
(and name it something else)... then use JavaScript to write to a file in the same...
Just a note about the "clear a screen".
On windows, this can be easily done:
#define NOCOMM //this makes sure you don't load all the fat from the next header
#include <windows.h>//contains the...
It would be more worthwhile to check if it's an operator, and if not, assume it's a number.
//I'll assume you have a vector<string> named origin that contians all your strings.
for(int i=0;...
The rules are as follows
type variable = condition ? a : b
a will return if the condition returns true
b will return if it is false
example:
int never_true = 5>6 ? 999 : 10;
Thanks! Adding a <T> before the star fixed it.
Now to give you a +1...
Hey all.
Right now I'm working on algorithms, and so I wanted to make my own Linked List class (I do realize I'm reinventing the wheel, doesn't make it less fun :P).
I've also started using...
Hello all!
I'm in the process of making my own browser (for education's purpose, as well as using it for myself later on).
I'm using C#.NET (with VS2010), mostly cause I'm lazy to do all the GUI...
Ah, seem to have missed that when looking for C# resources! Thanks for the link. (I've been missing the learncpp.com style tutorials XD)
thanks. so I just use \...
That will work on an ftp server as well. Correct?
Ok hi all.
I'm still working on that launcher/patcher, and I need a bit of heads up in a few formatting things.
So the question is: between web and local paths... Does using '/' or '\\' matter?
...
So far, I've thought of something similar to the #2 Cat described:
Have a resource.up file, that contains on each line a string in the format of
file_path|file_version
and another one that is...
You can always have the car as an attribute. I'll make an example with cars.
class Car
{
/*put either public attributes and only have mechanic touch them, or make them private and make Mechanic...
Ok, after thoroughly looking in VC#.NET update features, I decided to make it somewhat different:
-The way I want this to work
-What I know of this already
-What I need to know
The way i want...