Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Research For New Project  (Read 1692 times)
0 Members and 1 Guest are viewing this topic.
Offline Kinaces

Junior Newbie

Wokka Wokka Wokka

« Posted 2012-06-05 19:11:22 »

I needed some help with a new project of mine that for the life of me I cant figure out.  Emo

Project: A doom like engine for a school project. However I'm not quite sure where to start.

First things first... I'm not sure what to be using. I can't find many tutorials over LWJGL or OpenGL that aren't deprecated.
I'm not sure if it would be worth trying to find Slick2D tutorials, or try to just use what I already know in Java.

First Question: Which option would be the strongest and easiest? (easiest as in being able to find resources to learn from)

At the same time, This would be my first bigger project. My biggest problem is setting up the entire engine. I have a basic entity system, however I have nothing for 2.5D. I'm not even sure if I'm getting my point across. I guess my problem would be setting up the map and perspectives so make it seem like you are walking through a 3D space. I'm not able to find any code, and the code I DID find is poorly formatted and not commented.

Second Question: Are there any resources to help me get started in this, or anyone experienced willing to help?
Offline matheus23

JGO Kernel

Medals: 138
Projects: 3

You think about my Avatar right now!

« Reply #1 - Posted 2012-06-05 19:52:16 »

Oh oh oh oh!!! I love Doomy projects Cheesy

For the first question:
It depends. Either you "hack" that doomy thing with just rendering real 3D stuff, or - which is much more fun and intresting - you write it all yourself. Believe me, its harder in the beginning, than in the end. The cool thing about it is, that it's a raytracer. But in 2D. You simply raytrace the map from the top view (aka. bird's eye view), and then the height of the found walls is the distance the ray "walked".

But to get back to the question: If I were you I'd stick with standard Java, and let it render a pixel-array Smiley

For question two:

There is some nice code from Markus. He always loved making these 2.5D-Doom-like graphics engines, take a look at Prelude of Chambered (The game, The source), his last Ludum Dare game.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline sproingie

JGO Kernel

Medals: 202

« Reply #2 - Posted 2012-06-05 20:00:22 »

Err, by "Doom like engine" perhaps you simply mean "FPS engine", which is something you can do with some basic scenegraph management and some BSP culling.  That's a Far Cry altogether from writing your own raycasting renderer (yes I know, Doom's is not a raycaster), and if that's your first real project, you'll be Quaking in fear at spending a Half Life running that code Marathon...

(god i'm silly today)

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Roquen

JGO Kernel

Medals: 517

« Reply #3 - Posted 2012-06-07 08:41:51 »

I'd suggest doing the stupidest thing possible (except for all the others)...get it playable and only think about cleaning/speeding it up if you really need to have have time at the end.

Break up a level (assuming there are levels) into cells and portal.  Each cell stores individual lists of: walls, ceiling, floors, entities and portals inside of it. 

When rendering, start with any empty LIFO of cells.  Place the cell of the camera into it.  Starting rendering loop:

while not empty: pop cell.
  turn on color & depth writes
  render all walls, floors, ceiling and entities inside
  turn off color & depth writes
  for each portal
     start query
     draw portal's polys
     stop query and if any pixels would have been drawn, put the cell connected to the portal into the LIFO.
Offline Kinaces

Junior Newbie

Wokka Wokka Wokka

« Reply #4 - Posted 2012-06-08 03:31:29 »

Thank you so much for your ideas  Grin

You will probably hear more from me as I get farther into this project.
Pages: [1]
  ignore  |  Print  

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

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

nelsongames (65 views)
2018-04-24 18:14:32

ivj94 (748 views)
2018-03-24 14:47:39

ivj94 (79 views)
2018-03-24 14:46:31

ivj94 (555 views)
2018-03-24 14:43:53

Solater (94 views)
2018-03-17 05:04:08

nelsongames (168 views)
2018-03-05 17:56:34

Gornova (338 views)
2018-03-02 22:15:33

buddyBro (998 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!