Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 746 times)
0 Members and 1 Guest are viewing this topic.
Offline Kinaces

Junior Newbie




Wokka Wokka Wokka


« Posted 2012-06-05 21: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: 106
Projects: 3


You think about my Avatar right now!


« Reply #1 - Posted 2012-06-05 21: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: 201



« Reply #2 - Posted 2012-06-05 22: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
« Reply #3 - Posted 2012-06-07 10: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.
     done
 done
Offline Kinaces

Junior Newbie




Wokka Wokka Wokka


« Reply #4 - Posted 2012-06-08 05: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  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

ctomni231 (33 views)
2014-07-18 06:55:21

Zero Volt (29 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (26 views)
2014-07-16 23:30:00

Cero (41 views)
2014-07-16 00:42:17

Riven (43 views)
2014-07-14 18:02:53

OpenGLShaders (31 views)
2014-07-14 16:23:47

Riven (30 views)
2014-07-14 11:51:35

quew8 (29 views)
2014-07-13 13:57:52

SHC (65 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!