Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (483)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / 4K Game Competition - 2011 / Re: 3D Engine: Any Tips? on: 2011-11-14 00:49:38
Hey folks,

Thanks for your thoughts. Based on my design, I can assume some nice things like axis-aligned polygons, so that should help with some of it. But it's good to keep in mind that it's going to be the main "feature" of the game: there won't be much room for else. So thanks for pointing this out. I should mention that this is my first J4k project, so I don't have any intuition about how much room something will take: thanks for providing some!

I'll consider polygon sorting instead of a z-buffer. Any good algorithms to suggest? If not, I can certainly work out the math myself, but if there are ones that clearly work well for 4k games, then I'd love to hear about them.

bysse, thanks for the info about functions. I'm primarily a C++ programmer, so it hurts to not have macros: that would allow for function-like operations without the overhead of passing parameters. Or even inline functions. So maybe I'll sort of take your advice: write some functions that I need, then consider hand-inlining them when it comes down to the final builds. (I already have a compression script set up, and am using Mercurial to both preserve version and also keep track of the size, which I record to a file)

moogie, generated textures should work fine for my game, so that's what I was looking at anyway. I imagine that a full raytracer would be challenging to squeeze into 4kB (while still having something interesting to play), so best of luck with that! Me, I'll keep it simpler. Smiley

Alan_W, I am using pack200, and am pleased by how well the whole compression process works. It's quite the satisfying experience, actually. Unfortunately, I'd prefer to have 3D movement in the game, so isometric isn't really an option. I'll keep it in mind, though, if I decide to change things up.

Anyway, thanks everyone for your thoughts. Please feel free to share any other considerations. I have confidence that I could work out some of these things on my own, but thought it prudent to see if others were willing to share their knowledge and save me the time and trouble. So thanks again!

--Ben
2  Games Center / 4K Game Competition - 2011 / 3D Engine: Any Tips? on: 2011-11-06 17:37:33
Hello there ladies and gents,

I've begun a 3D J4k project, and was wondering if any of you had tips or experiences you'd like to share regarding the 3D engine stuff. I've already implemented a renderer for a single cube (pic below), and I can move around it and view it from all angles and distances. But I'd like to generalize the polygon rendering for many more shapes (for some definition of "many").

There are a few approaches to 3D rendering. Right now I project the polygon vertices onto the screen plane and check which screen pixels are within the polygon. And that works plenty fine for one cube. But I'm concerned that it might not scale well. Plus there'd be the added work for a z-buffer (the calculations for the distance to the object are not performed in this implementation, so it's extra work for every pixel).

So, I was thinking of moving to ray casting, and I see that there are a few games that use this method (e.g. Wolfenstein 4k and Star Wars: The Battle for Hoth 4k -- both of which are from the same developer, I see). I'm not sure that this will scale well either, given that i'd like to draw more than just a few walls or sprites.

Anyway, please pass along your tips and suggestions. Thanks!

--Ben

Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (18 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (63 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (38 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!