Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 27 Mar 2003
Offline Last Active Jun 13 2013 08:15 PM

#4990796 What makes Debug different from Release?

Posted by on 16 October 2012 - 11:01 AM

Also, keep an eye on unitialized variables. Debug mode will initialize variables that have not been explicitly initialized. Try compiling with the /RTCu flag set. See here: http://msdn.microsof...(v=vs.100).aspx for more information.

#4987103 Communicating with Programmers

Posted by on 05 October 2012 - 07:01 AM

Posted Image

NaturalNines, thank you for asking. At least you inquire about it. I wish more people would see this thread as many great points were raised.

#4985846 I need help with structuring, really bad!

Posted by on 01 October 2012 - 01:48 PM

•Books about writing cleaner code.

Take a look at this one: http://www.amazon.co...cm_cr_pr_sims_t

I found the book free online and want to assume this is a legit site? (I just Googled the book name and it was the second link). If not I am deeply sorry and appologize. You should buy the book either way as it's a great read.

#4981754 Is using a debugger lazy?

Posted by on 19 September 2012 - 11:19 AM

Today I was talking with a few professors at my university about doing some work on a couple new servers they've got set up. They asked me about my background in coding, and I mentioned that I'd written a couple games over the summer with C++/Allegro, and that I used Visual Studio 2010 as my IDE. One of the professors told me that he preferred Dev-C++, which I found quite odd considering Dev-C++ at least seems very bare-bones (I wouldn't know, I've only written a couple very simple projects in it).

Anyway, I told him I thought he'd find VS2010 to be nice because the debugger is great for catching unhandled exceptions/null pointers, and he told me that debuggers are for lazy people. Now something tells me he's out of his mind, but I'm no expert, so I can't be sure. Do you think using a debugger is lazy? I don't mean overusing it, or relying on it too much. Just the simple act of using it at all. I think a debugger is a great tool and it's a good idea to use one. What do you think?

Tell him to use VI then...

#4960080 Texturing large terrain

Posted by on 17 July 2012 - 11:39 AM

Google: Texture Mipmap Quadtree

You may find this to be a good read: http://www.realityprime.com/articles/how-google-earth-really-works

#4893239 GPU Gems code

Posted by on 12 December 2011 - 02:18 PM

GPU Gems 1: http://developer.nvidia.com/content/gpu-gems-part-i-natural-effects
GPU Gems 2: http://developer.nvidia.com/node/17
GPU Gems 3: http://developer.nvidia.com/content/gpu-gems-3

#4893233 c++ extern command

Posted by on 12 December 2011 - 02:06 PM

And I have not used extern for awhile but I *think* you need to specify extern for the variable in each cpp file that is not the one it originates from.

even if you include file that already used extern command on the same variable? Looks to me like you would use extern command two times on the same variable, since you already include the first file?

Read my post carefully; the key words being "external linkage"

Also, "The variable or function may be defined in another source file, or later in the same file." you are creating a link to the variable definitions and not actually defining them.

This will make for sloppy code once your code base starts getting large. Avoid externs and pass them via the ctor or something.

#4862426 Valve's Portal - Limited Free Release

Posted by on 16 September 2011 - 06:24 AM

I wasn't sure if there was a thread about this or not so I apologize in advance.

Valve has released their game Portal for Free until September 20, 2011. So if you already don't have it then go grab it from Steam!

Here is a link to it: http://store.steampowered.com/app/400/

#4861068 New Beginner

Posted by on 13 September 2011 - 07:38 AM

He must first learn programming and I would suggest something along the lines of C# and not C. For a 10 year old it would burn him out quick and he would give up. C and C++ are complex languages and a 10 year old might see it as gibberish right now.

Also, I would not worry about game development right now. I would worry about learning the logic, system environment, coding habits, etc. While he is learning that he can be reading about the latest game technologies and techniques just to be familiar with it and to keep up to date on them. It is important that he first learns and get's comfortable with a language though.

Once he is comfortable he could start using XNA, which is an SDK released from Microsoft that allows someone to write games for Windows, XBOX 360, etc. That would be a good SDK to learn graphics and game development.

Way down the road I would suggest C / C++ and either DirectX or OpenGL as those are the libraries used in professional studios. The C# and XNA are great for learning, but you can't do low level console development with it; only indie games. To get to this point could take a while so tell him to be patient and not to get aggravated.

Finally, I would suggest he creates an account here and get's to know the community. There are many professional game developers here and I'm sure they would be more than happy to help him regardless of his age. Also, kudos to you for not tearing his dream down and trying to help him.

#4850100 Do I need a gambling license?

Posted by on 16 August 2011 - 07:19 PM

Venture as you may, but you have been warned. This is a very risky thing to do... very risky.

Let's say, for instance, that everything is going great. Your economy is going great, friends are to be had by the dozen, and the general population is overall satisfied. Because of this you start getting large investors that are building the lost city of Atlantis, Rome, what have you. Well one thing you're not thinking about is that in every economy there is a mischievous person lurking in the shadows. When your economy is at it's strongest that person is going to strike; and strike hard. He is going to know about some flaw, some security hole, some simple mistake and drain your economy dry and then bring down your servers. Then what? Where do you go from there? I can guarantee you that someone is going to be knocking on your door.

You think you're secure?

BitCoins, as many know, is a virtual currency. Well guess what: http://technolog.msn...ked-and-heisted

That is one example.

The bottom line is you are human and you are not perfect. If we were all perfect none of us would have a job because the world would be running smoothly. You are going to have bugs, holes, etc. so you need to protect yourself. Sit back and think about it for a few days. Stop seeing $ and start seeing reality. One rule that you need to remember... Protect your investments.What is man made is man broken.

#4842726 [Solved] Drawing transparentcy

Posted by on 30 July 2011 - 09:29 PM

Sorry for the double post, but I didn't want you to skip over this. According to Nick Gravelyn at AppHub he said "Texture2D.FromStream produces a non-mipmapped Color format texture without premultiplied alpha". So you can try this for your sprite batch:

sb.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied);

Source: http://forums.create...813/380463.aspx

Also, see this if that doesn't work: http://jakepoz.com/j...ing_up_xna.html

#4840034 Free Aerial Reference Photos (Ohio/Arizona)

Posted by on 25 July 2011 - 10:21 AM

Two weeks ago I had to go on a business trip and I figured I would snap some Aerial photos so you can use them as references. There are about ~250 photos and most of them are pretty high resolution (around 3,000 x 2,000) so the download is a little large.

Please note that I did not touch any of these up or modify them in any way. So there may be a few out of focus and what not.

There are three folders:
Ohio to Phoenix - Ohio (CLE) to Phoenix (PHX) at 5:00 P.M. (EST) to 6:08 P.M. (MDT) (kind of cloudy)
Phoenix to Ohio - Phoenix (PHX) to Ohio (CLE) at 7:00 A.M. (MDT) to 1:30 P.M. (EST) (mostly clear)
Misc - A couple of misc. photos of various things

Attached are a few samples. Enjoy.

Here is the download link: http://www.arielprod...PhoenixTrip.zip

Attached Thumbnails

  • MountainsSample.jpg
  • MountainsSample02.jpg
  • MountainsSample03.jpg

#4838858 Functions and Variables (C++)

Posted by on 22 July 2011 - 05:43 AM

initpop never changes because you don't assign it a value anywhere other than the initial value.

I don't see a "initpop = 1234" anywhere?

#4829227 Languages

Posted by on 29 June 2011 - 02:01 PM

Assembly is apparently the most basic language, and I'd gladly learn it if I could figure out how to run it.

ASM is the most basic language in the sense that a CPU can understand and execute it. The actual programming of ASM is not so basic.

For future reference, you can run ASM inside of Visual Studio. See here for more information.

#4826957 2D tile map loading from file

Posted by on 23 June 2011 - 01:44 PM

Also, make sure your textures array is correct too. Load all of the necessary tiles for your map.

If you have tiles 0 and 1 then GLuint texture[2]; will work
If you have tiles 0, 1, and 6 then you will need GLuint texture[7]; to make it work.

So make sure all of the textures are created.

Did you initialize your map array? It would be wise to have a base texture (say ID 0) and initialize your map array to this. This way if you only use 50x50 then the other 50x50 will just default to your base texture and you won't get an error.

Do something like this in your constructor/initialize code
for(y = 0, y < MAP_SIZEY, y++)
  for(x = 0, x < MAP_SIZEX, x++)

In the link I provided was a utility function to set the tile. You may want to do this that way you can call something like this:

SetTile(x, y, id);

and the SetTile function will ensure you stay within bounds.

For instance, this is an example in pseudo:

void SetTile(int x, int y, int tileID)
	if x < 0 then x = 0
	if x >= map_sizeX then x = map_sizeX - 1
	if y < 0 then y = 0
	if y >= map_sizeY then y = map_sizeY - 1

	map[y][x] = tileID;

Now it will make sure you will stay within boundary like I mentioned.

You can use it like this:
for(y = 0, y < MAP_SIZEY, y++)
  for(x = 0, x < MAP_SIZEX, x++)
    	SetTile(x, y, 0);

As always... Don't forget to run the debugger. It is your best friend and will save you a lot of time and headache :)