• Advertisement

Archived

This topic is now archived and is closed to further replies.

need source code for 3d game

This topic is 5027 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, Anyone know where i can get the source code for a decent 3d game which can run at acceptable framerates on slow machines such as mine (700 mhz, 256 mb sdram, ati rage pro 128) yet is easy to understand (not quake!). All i can find is source code for either huge professionally-made games which i cant figure how to run or games made by amateur game developers which dont consider the framerate issue as seriously. I want to learn how to optimize my code but im low on cash to go buy a book on optimization techniques and i figured reading someone''s elses source code could give me ideas. thanx in advance.

Share this post


Link to post
Share on other sites
Advertisement
You should start with nehe.gamedev.net, that should really help you with your learning.

If that is not enough, try www.gametutorials.com. Game Tutorials 3D tutorials are easier to understand.

----------------------------------------------
"I''ve never dared handle it, but I''ve seen it. Felt its power. Christ the Man Jesus help me, I have Black Thirteen under the floorboards of my church. And it''s come alive!"

Oh and my website www.blossomsoft.com

Share this post


Link to post
Share on other sites
Check out Sourceforge, they have thousands of open source projects so you should be able to find something on there.

Share this post


Link to post
Share on other sites
@blackthirteen, i''ve been learning from nehe, gametutorials and other beginner sites for a long time now, but they''re not what i''m looking for, I''m looking for the source code of a game with all the components of a real game (most importantly performance optimization) but is not as complex as big free-source-code games like quake, hexen, heretic etc...

@spudder, tried that but maybe i need to try harder, i forgot about source-forge.net.

thanx for your replies, need more.

Share this post


Link to post
Share on other sites
Go to www.StealMy3dGameForFree.com

If you cant learn from tutorials, what makes you think you can learn from looking at code?

Share this post


Link to post
Share on other sites
tutorials do not necessarily explain practical use or integration with other components. One could spend a lot of time trying to work all of the ideas together from scratch.

Share this post


Link to post
Share on other sites
Its not that i havent learnt anything from the tutorials, i''ve learnt alot and wrote an arkanoid clone but because my pc is really slow and i have zero experience at proper optimization i thought it would be a good idea to read the code of a game that runs at a high framerate on my pc. About www.StealMy3dGameForFree.com; either the websites down or you were being sarcastic??

Share this post


Link to post
Share on other sites
quote:
Original post by WIlotek
If you cant learn from tutorials, what makes you think you can learn from looking at code?


Personally, I have yet to see a good tutorial on how to make a game engine. Most tutorials out there are graphics specific, sound specific, input specific, AI specific etc. All that''s well and good, but I haven''t seen any tutorials taking a game loop and breaking it into components and show how each component works together.

...And yes, I''ve read Enginuity. It''s ok but first and foremost handles garbage collection, smart pointers, etc (I''m using C#, so it''s not that interesting).

Share this post


Link to post
Share on other sites
Have a look at :
http://cg.cs.tu-berlin.de/~ki/engines.html
http://www.powerrender.com/


Good luck !

- Iliak -

Share this post


Link to post
Share on other sites
quote:
Original post by ahmedr
About www.StealMy3dGameForFree.com; either the websites down or you were being sarcastic??


ROFL that is probably the best thing I''ve read all morning. You''ve just made my day at work a lot better lol B-)

Share this post


Link to post
Share on other sites
Optimization isn''t some trade secret, it''s a matter of common sense and a little bit of knowhow. Like avoiding unecessary casts to/from floats in a tight loop or not calling that rendering method that takes into account alpha transluscency and image resizing if you have a faster function that doesn''t have all these bells and whistles if you don''t need them.

The guts of optimization involves applying efficient algorithms. Not some magic use of a linked binary list of pointer arrays pointing to various polymorphic objects with self-compiling auto-generated inline ASM code created using abstract neural pattern-matching methods. Although, whatever that thing is, it sounds pretty damn cool.

Share this post


Link to post
Share on other sites
To really code well, you need a solid foundation in fundamental Computer Science theory, things like data structures, algorithms, and computer architecture. You won''t get this from reading a thousand tutorials, though you probably CAN learn it on your own; just start with a textbook. And if you''ve got the time and money, Computer Science degrees at four-year universities are actually pretty good at teaching such things.

Share this post


Link to post
Share on other sites
another key to optimization - PROFILING ... getting an acurate picture of how many times various elements are called (in relations to each other), how much time is spent in each call, and how much total ...

these pieces of data are the key to spending your optimization time wisely ...

of course know-how / experience also help you know which of these cost are normal or unavoidable, but if you just start analyzing problems in a "largest time user first" strategy, you will quickly find a few simple optimizations that will have often have a significant performance impact. Learn to skip trying to optimize areas you don''t understand well, until after you''ve gone through the big spenders you do ... you might find with jut 1-2 days of analysis and a few days of optimizing, you could have all you need (for the moment). Of course, the optimization gains are inversly proportional to the efficiency of the initial code But since most of us make at least 1 or 2 major performance mistakes when initial coding our game / engine, finding those alone is worth it.

Share this post


Link to post
Share on other sites

  • Advertisement