Hi. I am experimenting with different projections, and I am trying to make an isometric view of a house.

I want to do this again by supplying my own matrices, but I am having a little trouble figurring out how I should rotate my objects.
I was thinking about rotating the objects 45 degrees around the z-axis, but this seems to be a bit off.
And then I need something more.

I was hoping to get a little advise in here.

The following are the 2 abjects (the house and profile) that i need to make an isometric view of.

you need orthogonal projection and more likely rotate the scene by 45 degrees about the Y axis and the X axis.

cheers
John

TheBlackAdder

10-18-2005, 10:23 PM

Hello John.
Thank you for your answer :)

I tried to rotate with 45 degrees around x and z axis, but it didnt really give me the isometric view. I must be doing something wrong.

I know its a lot to ask, but I have posted my program code and was hoping that you could maybe take a small look and see if you can find out what I am doing wrong. The code is most likely very basic to you.

What I really wanted to do was to set up the projection matrix myself, but hmm its a bit difficult.

ok, so I compiled it and tweaked it. the above code fragment is from your draw method. Make the changes and see that now the X and Z axis form a 'V' and the Y points vertically up in the common or garden-variety isometric mode. Incidentially, your house model uses the Y axis as its length, which... is... probably counter intuitive ;-) (it looks strange in THIS configuration since it's on its end, right?).

incidentially, your original code used lookat (bad!) and rotated about the X and *Z* axis---not the X and Y axis.

cheers
John

TheBlackAdder

10-19-2005, 05:17 AM

Ahhh yes okay i see...

I made the changes to my code, and now i have
:
http://www.student.dtu.dk/~s030102/house.JPG

btw. I also changed all
glBegin(GL_LINES); to glBegin(GL_POLYGON);
down in the house(); function, thus filling it up.

It looks rather strange i find. Is this really an isometric view?

john

10-19-2005, 04:44 PM

why yes... yes, it is.,

but since you know what you want, the question really is: is this what you want?

as i said in my post, your house is aligned with the y axis==depth, which is probably not what you want