Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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  
  display approach, fake 3d with 2d?  (Read 2197 times)
0 Members and 1 Guest are viewing this topic.
Offline Kova

Senior Member





« Posted 2007-07-18 19:35:28 »

Hello.
I'm planning a game that will have huge world, but not much in detail. World would be viewed from above, like tile based games. It should have ability to zoom in/out very much. Similar to GTA2 or Shogun when in the battle view. Lots of small things in large area (but not necessary 3d).
So, I'm wondering how to display all that. To go full 3d with small models, or to go 2d with tiles and images, or some mixture of both. I think 2d only would be enough if I could somehow solve the height problem, as there would be mountains and valleys and if you zoom out you should see height difference. So how to make a hill look higher then a valley if they are in same screen?
I was thinking of scaling pictures so pictures of high places would be bigger and pictures of not so high places smaller, that would give some illusion of height, but I don't know is it worth it or will it work at all (will it look good).
My second thought is going full 3d, using 3d for surface, so I can give height to all surfaces and such but for objects just to draw images (textures) on surfaces, nothing more.

So anyone has some good ideas? Could I pull it of with Kev's Slick 2d engine? Is going full 3d more complicated then it's worth? How about performance also? Smiley ... lot's of questions and I do not know the answers Smiley

I'm also wondering how did they do it in GTA2, everything looks 2d drawn, but as you get close to high objects like buildings they give illusion of 3d, very nice.
Offline keldon85

Senior Member


Medals: 1



« Reply #1 - Posted 2007-07-18 19:51:24 »

GTA1 and GTA2 most probably use ray casting for the buildings and sloping floors! Ray casting isn't the hardest thing to do once you learn it, and it would be great fun trying it out. Mario Kart's and Duke Nukem 3d's Ray Tracing methods are much more clever and allow for tilt, which in the case of Duke Nukem 3d is frickin amazing

Offline Kova

Senior Member





« Reply #2 - Posted 2007-07-19 11:09:33 »

I googled a bit for ray casting... it seems it's obsolete, nobody uses it anymore and it works only in specific situations like when walls are perpendicular to ground
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline keldon85

Senior Member


Medals: 1



« Reply #3 - Posted 2007-07-19 11:35:15 »

Mario Kart, FZero, PilotWings  and the like all use ray casting. And you might not notice it but GTA1 and GTA2 can be ray traced! It's all about having a constant vertical or horizontal distance from the camera, and to be honest if you're view is top down it will look exactly the same if you ray casted.

Having said that there may be no need since modelling it in 3d won't kill you.

EDIT:
 - creates a list of "30 things to code before you die"
 - adds top down GTA1 engine (with ray casting) to list of "30 things to code before you die"

Offline keldon85

Senior Member


Medals: 1



« Reply #4 - Posted 2007-07-19 11:46:29 »

Ohh, sweet link: http://www.mikedailly.com/programming.htm

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.

Riven (12 views)
2014-07-29 18:09:19

Riven (8 views)
2014-07-29 18:08:52

Dwinin (9 views)
2014-07-29 10:59:34

E.R. Fleming (25 views)
2014-07-29 03:07:13

E.R. Fleming (10 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (27 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
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!