Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (790)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
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!

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!


Pages: [1]
hadezbladez (2832 views)
2018-11-16 13:46:03

hadezbladez (1022 views)
2018-11-16 13:41:33

hadezbladez (2795 views)
2018-11-16 13:35:35

hadezbladez (548 views)
2018-11-16 13:32:03

EgonOlsen (3818 views)
2018-06-10 19:43:48

EgonOlsen (4230 views)
2018-06-10 19:43:44

EgonOlsen (2541 views)
2018-06-10 19:43:20

DesertCoockie (3352 views)
2018-05-13 18:23:11

nelsongames (3464 views)
2018-04-24 18:15:36

nelsongames (4463 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!