Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
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   
Pages: [1]
  ignore  |  Print  
  Handling re-size in a voxel engine  (Read 1218 times)
0 Members and 1 Guest are viewing this topic.
Offline Spacebeans
« Posted 2014-03-28 19:52:18 »

I want to make my display resizable, so I made a simple re-size method that sets the glOrtho to the resolution of the new window.

It works flawlessly, and all. But there is too much being shown, you can see the bottom of the world and I don't like it. It takes the player away from the game.

So I thought of a few ways to handle this:
 1. Leave it how it is and fade the bottom to black, making it look bottomless
 2. Making a new block that is unbreakable (Like bedrock in minecraft)
 3. Extending it EXTREAMLY far down so it is really hard to get there *Performance killer
 4. Resizing all the objects on the screen, so whenever you resize, the player sees everything as before
     but in a higher resolution. *Made a topic earlier, found out it was more complicated than I
     thought it ever would be.

If you have any other ways I can handle this, that would be awesome!
Offline The Lion King
« Reply #1 - Posted 2014-03-28 19:58:06 »

if its a voxel engine how can you extend down to see the bottom of the world, its 3D.

Anyway, some games have an option menu that includes a resize drop down list. It gives you different possible resize values that maintain the same width:height ratio

"You have to want it more than you want to breath, then you will be successful"
Offline Spacebeans
« Reply #2 - Posted 2014-03-28 19:59:50 »

if its a voxel engine how can you extend down to see the bottom of the world, its 3D.

Anyway, some games have an option menu that includes a resize drop down list. It gives you different possible resize values that maintain the same width:height ratio

Thanks for the reply, but its 2D, and I meant the blocks only render down to a certain point. I was wondering how to handle that certain point when the display is re-sized enough.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Phibedy

Senior Member


Medals: 8



« Reply #3 - Posted 2014-03-28 20:52:19 »

Thanks for the reply, but its 2D, and I meant the blocks only render down to a certain point. I was wondering how to handle that certain point when the display is re-sized enough.
You use that point just the way you used the first one?
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #4 - Posted 2014-03-29 03:34:26 »

Your question really makes no sense... and voxel is a term for a "3D" pixel. Not to be interchanged with say "tile" in 2D.

Offline Spacebeans
« Reply #5 - Posted 2014-04-07 04:53:16 »

voxel is a term for a "3D" pixel. Not to be interchanged with say "tile" in 2D.

Oh, sorry. I just thought it meant destructible terrain through a block system.
Offline Drenius
« Reply #6 - Posted 2014-04-07 17:02:05 »

Well, the title or at least the explanation should have contained '2D' anyway.
Pages: [1]
  ignore  |  Print  
 
 

 

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 (13 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 (61 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 (37 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!