It seems my problem was with "temp2 = temp1". I got it to work, finally. And I seem to think it's XNA's fault, because it has some weird error when loading two of the same models (which is why I used...
Type: Posts; User: Mavix
It seems my problem was with "temp2 = temp1". I got it to work, finally. And I seem to think it's XNA's fault, because it has some weird error when loading two of the same models (which is why I used...
Well, somewhere in my code I did have temp2=temp1, but even without this it still modifies both. I'll some more code tomorrow, because I am away from my computer now.
Its a really odd problem. I've...
No, I've got no static variables or classes anywhere. My dad says there is a specific name for what is happening, and that there is a way to disable it, but he doesnt know how.
I recently started writing a game in XNA, and I have run into a problem. I have a class called baseObject which I am using for all the objects in my game. But the problem is, if I create two...
I have a problem in C# that I have faced a few times before, but I have always managed to work around it. Basically, I need to, from one class, access another class that has not been created in the...
Thanks, that worked. It took me a while to figure out that I need absolute values, but I got it working. Once again, thanks!
I found the solution. In the MoveCamera() method above I removed the movement on the Y axis.
Lets say, for example, the two numbers, X and Y, are 0.6 and 0.9. If added together they equal 1.5. Now how would I go about lowering both numbers, while keeping their ratio, till they are both equal...
I have two numbers, that I have got from angle, using Cos and Sin. If I add the numbers together, they generally range from about 0.6 to about 1.6. How can I write a method that makes the numbers...
This is the code that I am using for moving the camera:
public static void SetCamera(Vector3 cPosition, float h, float v)
{
cameraPosition = cPosition;
cameraTarget = new Vector3();...
How would I do that? This is the first time I'm working with DirectX, so I don't exactly understand how to do that.
Thanks for the reply. I found a page on gamedev.net that shows how to rotate the camera. It involves a lot of trig. But now I have another problem. When it moves the camera, it moves it in the...
To post on Game Programming forum:
I'm starting work on my first game, and I'm doing all the programming from scratch in C# using DirectX. But I've picked up a small problem.
I use the following...
Now I understand. Thanks!
What is the diference between ref and out? They both seem to do the same thing.
Also, I have a book that I'm learning from, and it user try, and then finally. I know what try does, but what does...
Woah, I have no clue what you just said, so I'll go with what Bubba said. I'm also going to be buying a book on directx in c#, which was written by the development lead for managed directx. BTW, how...
I'm using Direct3D in C#, and I was wondering how I can get the position of the mouse cursor in the 3d space. For example, the camera is looking straight down on a map. Its position is 0,0,30, which...
Awesome, it works! Thanks!
I did that but it still shows small icons. Maybe thats its proper size, but it looks very small to me, and its the same size as the small images in the listview. Isn't there another control I can...
I tried that but it doesnt make the icons any larger. I tried making the image itself bigger, but it still displays them very small, about 10x15 pixels.
I am looking for a listview control similar to C# 2005 Express's built-in one, but that displays larger icons. I need it to display the icons about the same size as on the windows desktop.
Does...
Thats why I have decided to do it in c# instead. I have a basic understanding of c++, but for now I'l focus on c#. I'l learn c++ when I go collage, which is still quite far away.
Also, I always...
Ok thanks for the tips. I dont really like pointers, but I need to learn how to use them properly.
BTW I was using SDL_FreeSurface() and FreeFont(), but I wasnt freeing anything else.
I never have used and have no idea how to use malloc. Never really needed it. But I've decided to ditch sdl in C for directx in c#. I wanted to go the directx route in the beggining, but having...
I'm talking about my main system ram. I have about 1200 lines of messy code, so I think thats a bit too much to post. The problem is with my code, not with sdl. I do free resources, but not memory....