Hadik

Sprite disoration, fake 3d

Recommended Posts

Hello is there any option how sprite or bitmapdata disorate like this ?

http://prnt.sc/cbta2h (Original image: http://prntscr.com/cbtabn)

 

I know how to make skew, with few hours hacking pixi :) http://prntscr.com/cbtahj

 

But its not still what I want :)

 

I want to create fake 3D like in the GTA1/2

Move this sprite I cane done with paralax, but I still need some method how transform sprite to first image :) I know that there is some options :)

200607291248_gta1_1.jpg

Share this post


Link to post
Share on other sites

I once attempted to replicate this and failed. I still have the tilemaps from it but no longer have the code that I had written. 

I recently found this game http://codeincomplete.com/games/racer/v4-final that gives a bit of a hint on how to do it, But I still can't get my head around the math for it.

I did read at some point that it was complemented by an actual 3d engine to achieve that result but I never got around to it. 

My guess would be that you could achieve this easier in http://www.html5gamedevs.com/forum/16-babylonjs/ rather then phaser. 

 

The streets and everything else is doable in phaser, but I have no idea how to do those buildings except in a 3d perspective.

 

The best view you could get in 2d from my point of view is something like gangsters 2 in isometric view.

 

Share this post


Link to post
Share on other sites
59 minutes ago, lewster32 said:

The 'fake 3D' in the original GTA was actually real 3D - it used a 3D engine to render the perspective correctly.

Thanks both for post

lewster32: Very interesting information, Where you find it ? I trust you, but I want more information, if is possible :)

So, I will use three.js or try hack pixi to make what I want, but I could be very hard to solve it.

Share this post


Link to post
Share on other sites

I can't find it now, but there was a game example that mixed 3d and phaser, it was top down with buildings (just like you have) with zombies running around and you controlled a car to smash them.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.