Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 10 Jul 2012
Offline Last Active Apr 17 2013 06:42 AM

#5029049 Trouble with very slow rendering with nvidia under Linux

Posted by on 05 February 2013 - 09:43 AM

As others have said, my guess is the driver. Check this out https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

#5004146 Stuck on newbie project

Posted by on 26 November 2012 - 02:23 AM

Great work so far. I would encourage you to continue with this project. I am kind of envious that you got this far. I have been a professional game programmer for about 7 years, and done a lot of hobby projects. One thing I regret though is that I never finished any of them.

Add enemies, and change the sprites and you can release your game.

#5002684 Polygon count

Posted by on 20 November 2012 - 09:57 AM

I don't know how OpenGL handles lines, if we assume each line is 2 triangles:

Make a counter, numTriangles and set to 0 before rendering the tree (or generating it).

Every time you draw a line segment, increase numTriangles by 2. Every time you draw a leaf, increase numTriangles by 8.

#5002664 Remaking an old game - Ethical?

Posted by on 20 November 2012 - 08:09 AM

I don't know the details but I would not consider this unethical or stealing. My most important tip is to not hide it. Say you were inspired by X.

It's almost impossible to make a new game/movie today with a new theme and premise.

My experience is also that 90% of the PBBGs is the same game reskinned.

#5002644 Polygon count

Posted by on 20 November 2012 - 06:11 AM

How do you draw the tree? And don't you already know how many polygons there are in the tree when generating it?

#5002632 Traversal & Deletion in an STL List

Posted by on 20 November 2012 - 04:29 AM

It's worth noting that some std containers don't implement a return of an iterator form erase. For example although std::map on Microsoft's implementation does, std::map doesn't return an iterator in the standard implementation.

A way around this problem in those circumstances is store the iterator in another variable, and then increment the iterator prior to erasing the stored iterator.

[source lang="cpp"]hordeIt toEraseIt = zIt;++zIt;horde.erase( toEraseIt );[/source]

You can also postincrement it when calling erase.

[source lang="cpp"]if (wantToDelete) horde.erase(zIt++);else ++zIt;[/source]

#5002609 open gl game

Posted by on 20 November 2012 - 01:47 AM

As others said, Pong is an excellent first game to make. You can make it with just boxes, and go from there.

I would say DirectX is easier. OpenGL's fixed function pipeline might be easier than DirectX but that is deprecated. Anyway, just choose one and stick to it.