[SOLVED]Fake isometric on 3D

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RespectIsEverything
Posts: 30
Joined: Fri Feb 01, 2013 12:06 pm

[SOLVED]Fake isometric on 3D

Post by RespectIsEverything »

While i searching google, i found this game : http://www.celunet.net/isometricgame.html .You can download . It is 3D on real.But it draws 2d sprites on the screen layer.I can't implement this algorithm.I made these so far:
-Create a custom quad scene node (Tutorial 3).
-I found this article : http://www.pixelpilot.dk/isometric.htm
-I created camera like this:

Code: Select all

 
float x=-20;
smgr->addCameraSceneNode(0, core::vector3df(x/2,x/2,(x/2)*(sqrt(2.0f)/sqrt(3.0f))), core::vector3df(0,0,0) );
 
Because :
Image
But result is =
Image

What's wrong?

Thanks.


EDIT: I found the solution without changing camera:

Image
Last edited by RespectIsEverything on Tue Feb 19, 2013 4:47 pm, edited 2 times in total.
polylux
Posts: 267
Joined: Thu Aug 27, 2009 12:39 pm
Location: EU

Re: Fake isometric on 3D

Post by polylux »

This is for sure only a partly solution to your issue but you'll need an orthogonal projection for creating an isometric view. Your camera seems to provide a perspective one though.
beer->setMotivationCallback(this);
RespectIsEverything
Posts: 30
Joined: Fri Feb 01, 2013 12:06 pm

Re: Fake isometric on 3D

Post by RespectIsEverything »

thanks polylux.How can i create a orthogonal projection for the camera?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [SOLVED]Fake isometric on 3D

Post by CuteAlien »

Come on - take a look at the documentation before asking. There's only one function in ICameraSceneNode which even has parameter named "orthogonal". You have to set the matrix yourself - but the matrix class has helper functions to create such a matrix.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply