Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (306)
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  
  Fake 3d effect?  (Read 2001 times)
0 Members and 2 Guests are viewing this topic.
Offline baenor

Senior Newbie





« Posted 2013-03-13 16:12:39 »

Hi guys...
After i made a multiplayer 2d shooter watched from above, i want to make another game that is far better than the first.
Essentially i want to make something like shown on the video below:
http://www.youtube.com/watch?v=yT6lGRfXBWQ

how to archieve that fake 3d effect?
And which library is the best to work on a simil-isometric view like that one on the video or like GTA2?
Offline heezel

Junior Member


Medals: 7
Projects: 1



« Reply #1 - Posted 2013-03-13 16:21:44 »

bad news for you... only thing that's fake (or trying to look like 3d) are billboards on trees, and probably the ground and shadows
Offline baenor

Senior Newbie





« Reply #2 - Posted 2013-03-13 16:25:24 »

so that game shown on the video is 3d?
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline heezel

Junior Member


Medals: 7
Projects: 1



« Reply #3 - Posted 2013-03-13 16:33:44 »

to create an real looking fake 3d effect like that in that video you would need tousands of prerendered sprites for each object at different camera angles, which would probably overload memory if these sprites had to be at medium resolution, and I don't think Java2D is that great at managing memory. Most of old games like Diablo I and II, Age of Empires I and II used fake 3d effects, they created 3D models animated them and rendered their frames into 2D sprites which were used in game.
Offline StonePickaxes

JGO Coder


Medals: 4
Projects: 2


Nathan Kramber


« Reply #4 - Posted 2013-03-13 16:35:00 »

so that game shown on the video is 3d?

It's pretty impractical to try to do 3D rendering in Java2D (hence the name). If you want to do a top-down style 3D game (like GTA 1 and 2) then I would recommend using LibGDX. It sounds like you are looking for a library that will do that style of rendering work for you, but you won't find one. You will still have to program your own model loader, your own renderer, your own collision, etc, etc. A library like LibGDX is your best bet.

However, unless you are really experienced in 2D rendering and collision, I would recommend sticking with 2D for the time being. Try and see if you can get the game you are thinking of working in 2 dimensions first, then worry about the third. Trying to dive in and do 3D right off the bat is just asking for failure.

Hope this helps.

Check out my website!
Offline baenor

Senior Newbie





« Reply #5 - Posted 2013-03-13 16:39:34 »

thanks for the replies...
I already was looking on LibGDX and it looks also pretty simple to use.
But why do i have to make my own methods? Doesn't libGdx have it? I've seen for example that there is already a orthographic camera coded...



and what about MonkeyEngine? I'm not alone and i could use the help of my brother that is really good on drawing...
Offline StonePickaxes

JGO Coder


Medals: 4
Projects: 2


Nathan Kramber


« Reply #6 - Posted 2013-03-13 16:41:13 »

thanks for the replies...
I already was looking on LibGDX and it looks also pretty simple to use.
But why do i have to make my own methods? Doesn't libGdx have it? I've seen for example that there is already a orthographic camera coded...



and what about MonkeyEngine? I'm not alone and i could use the help of my brother that is really good on drawing...

I've never used JME, but if that's what you want to try, go for it. There is no perfect solution, no definitive answer to your question. Just try different things and see what works for you.

Check out my website!
Offline baenor

Senior Newbie





« Reply #7 - Posted 2013-03-13 16:47:04 »

i have to understand...




A game like command and conquer tiberian sun is 2d or 3d?

Offline StonePickaxes

JGO Coder


Medals: 4
Projects: 2


Nathan Kramber


« Reply #8 - Posted 2013-03-13 16:50:07 »

A game like command and conquer tiberian sun is 2d or 3d?

I would say 2D.

Check out my website!
Offline baenor

Senior Newbie





« Reply #9 - Posted 2013-03-13 16:51:31 »

nice!
So if i want to make a game with that perspective...i should stick with libgdx and using the orthographic camera?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Oskuro

JGO Coder


Medals: 21


Coding in Style


« Reply #10 - Posted 2013-03-13 18:46:29 »

Defining what is a "3D" or "2D" game is a complex issue that has been discussed many times.

What will really help you is to determine what you need each individual component to be.

Do you need 3d graphics?
Do you need 3d gameplay?

You can mix and match both, having a purely 2d gameplay (like super mario) with fully 3d graphics (like in, for example, Super Smash Brothers Brawl).

You could have 3d gameplay with 2d sprites and effects, like in the original GTA games.

Find out what you want to do to determine what you need to do it.

Offline baenor

Senior Newbie





« Reply #11 - Posted 2013-03-13 19:14:20 »

Defining what is a "3D" or "2D" game is a complex issue that has been discussed many times.

What will really help you is to determine what you need each individual component to be.

Do you need 3d graphics?
Do you need 3d gameplay?

You can mix and match both, having a purely 2d gameplay (like super mario) with fully 3d graphics (like in, for example, Super Smash Brothers Brawl).

You could have 3d gameplay with 2d sprites and effects, like in the original GTA games.

Find out what you want to do to determine what you need to do it.


that's it
i want 3d gameplay with 2d sprites and effects....how to archieve it? i'm TOTALLY new to it
Offline opiop65

Senior Member


Medals: 6


Nishu Studios Dev


« Reply #12 - Posted 2013-03-13 21:08:24 »

*achieve* not archieve. And to answer your question, you just have to research and do it. You will probably fail the first time, it happens to the best of us. Just re-write the game and try to do things different. I don't have any experience with the kind of game you want to program, but I would imagine its either a bunch of 2D sprites that are textured to look 3D, or its actually 3D with 2D sprites. If its 3D, I imagine you would want to lock the rotation of the game so you can't rotate the tiles around the 'y' axis. Then you would want to translate the tiles along a vertical line to achieve the 3D effect. However, you still will use 2D tiles. Unless you go 3D with the tiles, which might be a bit much; you would have to load the tiles as models and I imagine it wouldn't be very efficient.
I may be completely wrong, I've never created a game like that, but that's how I would start!

No one ever fully understands coding
Offline baenor

Senior Newbie





« Reply #13 - Posted 2013-03-13 21:12:28 »

*achieve* not archieve. And to answer your question, you just have to research and do it. You will probably fail the first time, it happens to the best of us. Just re-write the game and try to do things different. I don't have any experience with the kind of game you want to program, but I would imagine its either a bunch of 2D sprites that are textured to look 3D, or its actually 3D with 2D sprites. If its 3D, I imagine you would want to lock the rotation of the game so you can't rotate the tiles around the 'y' axis. Then you would want to translate the tiles along a vertical line to achieve the 3D effect. However, you still will use 2D tiles. Unless you go 3D with the tiles, which might be a bit much; you would have to load the tiles as models and I imagine it wouldn't be very efficient.
I may be completely wrong, I've never created a game like that, but that's how I would start!

sorry not english Smiley...thanks for the correction. I appreciate your advice!
I dont like doing things by tentatives...i like studyng the theory first and then applyng to reduce time

so i'm looking for someone that can give me a solid advice or tutorial to start with!
Offline opiop65

Senior Member


Medals: 6


Nishu Studios Dev


« Reply #14 - Posted 2013-03-13 21:15:27 »

Ah I see. I work completely opposite of you! I hate research... but I would really recommend just getting into it. There's no real special way to create the effect you want, everyone does it different. Programming is all about problem solving and creating your own solutions, and I think this is the perfect example. Try a google search or two, gather some info and then just try to make your own. Otherwise, you'll end up researching forever and never starting. Good luck!

No one ever fully understands coding
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 53
Projects: 15


★★★★★


« Reply #15 - Posted 2013-03-13 21:46:56 »

i have to understand...

A game like command and conquer tiberian sun is 2d or 3d?
Tiberian Sun used voxels for its 3d, so the engine is a bit of a hybrid between 2d and 3d.
Offline Oskuro

JGO Coder


Medals: 21


Coding in Style


« Reply #16 - Posted 2013-03-14 12:31:16 »

i want 3d gameplay with 2d sprites and effects....how to archieve it?

Just think of how you'd represent every game object on a piece of graph paper. In fact, get some graph paper and start drawing different scenes from your game.

If a single sheet of paper is enough, then the game's data model is 2D. If you need more sheets of paper for different heights (and think hard if you *need* them or can fake it in the same sheet) then you have a 3D data model.


Afterwards, read up on 2d and 3d Matrices, which will be the first data structure you'll probably use to represent your game world (Resulting in a tile-based map).

Finally you can jump to arbitrary coordinates within your gameworld, although that'll probably only be for moving objects, keeping static scenery in a grid is rather useful.


Read through these forums, there's plenty of information about all these topics, made by people better at explaining it all than me.  Wink

Offline opiop65

Senior Member


Medals: 6


Nishu Studios Dev


« Reply #17 - Posted 2013-03-15 21:29:28 »

Quote
If a single sheet of paper is enough, then the game's data model is 2D. If you need more sheets of paper for different heights (and think hard if you *need* them or can fake it in the same sheet) then you have a 3D data model.

Love that explanation, never thought of doing it that way, but I definitely will do it when I finally move onto another game!

No one ever fully understands coding
Offline sproket

Junior Member


Medals: 1



« Reply #18 - Posted 2013-04-08 21:44:11 »

Grab a copy of Developing games in Java. http://www.brackeen.com/javagamebook/  Or check out his sample code. He implements a full 3d toolkit under Java2d - and it performs stunningly well. Smiley

Offline matheus23

JGO Wizard


Medals: 77
Projects: 3


You think about my Avatar right now!


« Reply #19 - Posted 2013-04-08 21:47:53 »

Grab a copy of Developing games in Java. http://www.brackeen.com/javagamebook/  Or check out his sample code. He implements a full 3d toolkit under Java2d - and it performs stunningly well. Smiley

Oh thank you for that link! Awesome stuff he created :O Just looked through the 'Game scripting' example. Nice...

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Pages: [1]
  ignore  |  Print  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
NegativeZero (5 views)
2013-06-19 03:31:52

NegativeZero (8 views)
2013-06-19 03:24:09

Jesse_Attard (15 views)
2013-06-18 22:03:02

HeroesGraveDev (58 views)
2013-06-15 23:35:23

Vermeer (58 views)
2013-06-14 20:08:06

davedes (57 views)
2013-06-14 16:03:55

alaslipknot (51 views)
2013-06-13 07:56:31

Roquen (72 views)
2013-06-12 04:12:32

alaslipknot (57 views)
2013-06-10 19:30:18

HeroesGraveDev (74 views)
2013-06-09 04:36:03
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
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!