• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 458
  • Last Modified:

rotation in x axis

i am drawing streets and areas represented by a set of 2d points(x,y), i want to give the 3d feeling by rotate the points around x-axis (tilting effect).

Any one can help in the needed equation.

attached are sample images:
 - image 1 is normal drawing
 - image 2 is the effect i am trying to achieve
1.jpg
2.jpg
0
zhkhan
Asked:
zhkhan
  • 3
  • 2
1 Solution
 
George TokasCommented:
Is there C++ Builder involved in the developing??
If yes what is the operating system??
If it is WindowsCE or WindowsEmbedded then have the hardware any capability of Direct3D?
If the answer to all of them is yes then consider a wrapper like TCDX9 around Direct3D I have developed and it is free at http://www.gtokas.com.
Modifications will be needed but it can work.

George Tokas.
0
 
zhkhanAuthor Commented:
The operating system is wince, and the development tool is VS.NET 2005 and programming language is c++.
But unfortunately the device is not supporting for ur suggestion.
0
 
zhkhanAuthor Commented:
Any ideas?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
George TokasCommented:
Trying to think...
Age got to me. A few years back I could provided you an answer...
Because I'm working with Direct3D I'm trying to find a way in plain GUI this time...

George Tokas.
0
 
Jaime OlivaresSoftware ArchitectCommented:
solution is quiet easy. you need a few transformation formulas, like:

x = (screenWidth / 2) +  (x - screenWidth / 2) * [ (screenHeight - y) / 2 / screenHeight ]
y = remains unchanged

Please check and tell me
0
 
zhkhanAuthor Commented:
The equation itself is true about the concept. But it doesn't give me the result i need exactly.
what i did is the following:
i have one big source map, and i take one screen from the map and compress it in my screen.
i noticed that to show the 3d effect, i need to add more data from left top, right top and top edge to my screen. In this way I'll get the same equation effect with more data from each side(top_left, top_right, top).

please if any more details needed i'll explain more.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now