Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (602)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (650)
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 2446 times)
0 Members and 1 Guest are viewing this topic.
Offline Kova

Senior Devvie

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

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 Devvie

Medals: 1

« Reply #1 - Posted 2007-07-18 17: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 Devvie

« Reply #2 - Posted 2007-07-19 09: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 Devvie

Medals: 1

« Reply #3 - Posted 2007-07-19 09: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.

 - 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 Devvie

Medals: 1

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

Ohh, sweet link:

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Jesse (16 views)
2015-07-29 04:35:27

Riven (37 views)
2015-07-27 16:38:00

Riven (19 views)
2015-07-27 15:35:20

Riven (22 views)
2015-07-27 12:26:13

Riven (12 views)
2015-07-27 12:23:39

BurntPizza (30 views)
2015-07-25 00:14:37

BurntPizza (42 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (31 views)
2015-07-22 22:16:53

NoxInc (20 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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!