Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 27 May 2009
Offline Last Active Oct 15 2016 09:05 PM

#5233296 What should I do now that I implemented a game mechanic that is not popular a...

Posted by on 07 June 2015 - 12:04 AM

I agree with friendly-fire being toggleable.

#5226139 Why Does Everyone Tell Newbies To Make Games?

Posted by on 28 April 2015 - 01:44 PM

Dividing a problem into smaller subproblems is actually a really good exercise

It's not a "really good exercise". It IS programming itself.

That's what beginners should and should be able to understand. Making a game is a pretty good way to get that feeling, that there is no "paddle", no "ball", no "collision", just sub-problems that can be solved with the same "few" solutions to choose from. The higher level the language, the more specific and numerous high-level problems you have to get down to, but getting down to any lower level is just more work, not really fundamentally harder (maybe you just have to read through more documentation).


I have to add that finding elegant solutions and to architecture nice programs is a very different beast, but you can get your own games with any ugly code that does the job. You and your code will evolve with the programs you make (very important: NOT just games!) up to a point when elegant architecture will not be a dream but a reachable goal.

#5150389 Screenshot of your biggest success/ tech demo

Posted by on 29 April 2014 - 12:21 PM

I won an international contest with these:


I won a Gamedev.net mini-contest with this:





ON: This is the only tech-demo I made long ago. The curiosity of the demo is that's it's OpenGL fixed pipeline...

#5062356 Need advice

Posted by on 16 May 2013 - 01:35 PM

I'm not in the same situation, but I graduated as a mechanical engineer and did (do) game programming as a hobby. If you are not sure about a career and that you'd enjoy coding >40 hours per week then maybe mechanical engineering is a better choice, since it's easier to get various (easy or more demanding, creative or non creative etc) jobs in that field. And definitely easier than getting a game programming job.

Working as a mechanical engineer can also be a good base for some own little game programmer studio, since it's pretty good paying.


This path works pretty good for me, though I only started programming after starting college.

#4975643 Kind of stuck in learning.

Posted by on 02 September 2012 - 01:04 AM

Maybe it's a stupid suggestion, but computers, especially 1-2 year old models are not expensive (you don't even have to buy a new monitor if you already have one). It's even affordable with saved lunch-money.
So maybe you could update your machine.

#4973225 Like Snake movement

Posted by on 25 August 2012 - 02:59 AM

Maybe you have to use capital letters (A,D,W,S) in glut Key... functions? It was long ago, but I'd try that.

And another thing: you have to use some kind of timing. Or at least put a sleep(whatever milliseconds you want to wait before the snake head goes to another place) at the end of the IdleFunc's body.

Other then these, your logic seems to be fine now, I hope I'm not missing something.

#4973204 Help! I'm trying to make a game.

Posted by on 24 August 2012 - 11:41 PM

Don't lament on your reputation. Dive into programming. Now.

#4972682 Realistic Encouragement vs Trolling Tear-down

Posted by on 23 August 2012 - 11:50 AM

First is extremely laziness. The number of questions I see that could be answered with six seconds of Googling is astounding, but generally even those are treated far more civilly than they probably deserve. There are also the "I got C++, how make game?" questions, which take lazy to a whole new level. Again I am still shocked at the treatment such a lazy question ellicits in these parts... I have seen pages of answer to a question someone took 2 seconds to write and often didn't bother with spelling or grammar checking in the least. On a near daily basis, I see two or three near identical threads on the same page! Yet, people still take the time and effort to respond to each of them.

That was my first thought. It is quite hard to be polite, when the exactly same question is asked, and there are 5-8 threads on the SAME FREAKIN PAGE on the For Beginners topic list. They seem not only lazy for some googling, but lazy to open their eyes. More, they are not lazy to put the total rampage-bait-for-me-words "YET ANOTHER" in front sometimes. The poster even knows that he is farking lazy.

And I don't know, maybe I was always a thinker, but seeing the sentence "I have no idea where to start" just gets me down. Maybe we are just too spoiled by the internet and this "information society".

Sorry, maybe it's a sensitive spot for me.

#4956922 What *is* game programming?

Posted by on 08 July 2012 - 07:19 AM

I don't think games are more complex than other applications. It's just the emphasises are elsewhere.

If a game crashes, the user is pissed then she restarts. If a company's main management system crashes, catastrophe.
Applications can have quite complex user interfaces, much more complex than games of game (content) making tools.
Parametric 3D design software is one of the very few programming areas where I donn't have the slightest idea how the hell they work.

It's really the graphics and the audio that seems to be significantly more complex than other applications. And that applications (other than games) is a much broader field than game programming, so it's hard to realize the complexity of other applications.

#4956876 What *is* game programming?

Posted by on 08 July 2012 - 03:17 AM

It's so strange to me that people think there is fundamental difference between programming and game programming.
Why do people even with programming experience think that?
Graphics make them think that?
I have been always wondering.

#4956854 Game runs choppy even with high frame rate

Posted by on 08 July 2012 - 01:47 AM

Yup, V-sync solves that.
I believe the choppiness is due to the interference between your forced ("hard coded") 60 fps and the display's refresh rate, which is only 60 fps nominally, but actually it's not precisely 60 fps. So the solution is to enable V-sync instead of the "hard-coded" refresh rate.

I tried to solve that with different refresh rates (up to 300 fps), but there are always hiccups with the display without V-sync.

I don't know about software "V-sync". I was trying to implement one for days, but I couldn't make it work. There isn't any functions that do "wait until refresh is ready" or that queries when the refresh is ready.

What's wrong with V-sync? The input lag it introduces? It's a bit different topic, try to look into that, but as I recall, you don't have much control over that. The video card drivers queue more frames for some reason, so the actually displayed stuff is always 2-3 frames behind.

EDIT: I didn't notice this one:

So why not rely on vsync? Because some computers can force a disable on gfx card config

That's the user's problem IMHO, not yours. It's her responsibility to change the setting of her driver, not yours. You can make a comment about this in the README/Help/Requirements file, I think that would be enough.

So just use v-sync (you can force enable/disable it in your software, if that's your problem. Maybe the ability to force it in the program depends on the driver or the video card, but I think it's doable)

#4955689 Efficient GUI rendering

Posted by on 04 July 2012 - 12:47 PM

A GUI rendering can be slow, because text rendering can be slow if there's a lot of text. So you can look into text rendering optimization.

I know you didn't ask for comments on the reinventing thing, but it's pretty strange that you are really reinventing the look of the standard win32 GUI.
If you want to release stuff with this GUI, it will kick your ass. And it will kick the users' ass. A GUI that just looks like the well known Windows GUI but doesn't work like it is a major user-anti-experience.

#4953915 Looking for a friend / tutor.

Posted by on 29 June 2012 - 05:19 AM

I don't think programming is the best candidate for this tutor thing. Having/getting gamer friends is very different than getting tutoring.

I say surf a lot on this site, especially the "for Beginners" forum.

All I can imagine about tutoring is that the tutor posts you some links about tutorials and books. You can do pretty much the same on the forum, but from a lot more sources.

A tutor may not be available all the time you have specific questions. We are! Tons of helpful users with various experience, a lot of them is the same situation as you. This forum is very active. You can have answers in even a few minutes.

I say you can do far-far better with a forum than a tutor (who is probably not a teacher, and probably not an expert either).

#4953854 Self shadowing polygon seems

Posted by on 29 June 2012 - 12:48 AM

This kind of self shadowing (when the polygons are backfacing relatively to the light) shouldn't be handled with shadow mapping. This should be handled by the standard lighting, which you doesn't seem to have yet.

Simply put: even if there is no shadowing at all, this kind of self shadowing is handled by the simplest lighting models "by default".

Nevertheless, there will be this self shadowing artefact accidentally with shadow mapping. This can be handled usually in two ways: if your meshes are closed, then simply don't render backfacing triangles to the shadow map.
Adding a shadow bias value. Which you seem to do (R += 0.0005), maybe it's just not a good value. Maybe you need a negative value.
If you add this bias, you won't see the self shadowing. Because as I said earlier, you need to handle that with your lighting model.

EDIT: I say "you shouldn't" because you won't be able to solve this kind of self shadowing with shadow mapping (you'll always have this non smooth pattern) and you have to use lighting anyway.

#4953849 Binary Search Help Repost.

Posted by on 29 June 2012 - 12:36 AM

No. I didn't mean that. Just think over what I said in my first post.
"End of for loop" may be misworded. I meant "after the for loop".

The complier says not all control paths return a value. Can you figure out what path doesn't return in your code?
With your modifications the code still produces this warning message so that means you didn1t insert the return -1 where I implied.

And think about it: what control path doesn't return value? The path that doesn't find the value. Just debug it on paper. That is the exact point where you have to insert the return -1.

Maybe my English sucks, but I think this should be clear.

And please pay attention to warning messages.