Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: "Tilting" a 2D view...  (Read 2355 times)

0 Members and 1 Guest are viewing this topic.

Beernutts

  • Newbie
  • *
  • Posts: 17
    • View Profile
"Tilting" a 2D view...
« on: December 21, 2011, 09:34:38 pm »
Hi,

I'm wondering if it's possible to "tilt" a 2D view.

What I mean is, consider a top-down view.  Now, I want to be able to "tilt" the camera up, so the view seems wider at base, but elongated at the top, and it stretches further in the game worlds view.

I'm basically trying to make a 2D racing game, where I have a track laid-out on a 2D map.  I could do it with a top-own view, but I'd rather have the player be able to see further in front of him.

Is there a fairly easy way to do with with SFML and 2D graphics?

Thanks!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
"Tilting" a 2D view...
« Reply #1 on: December 21, 2011, 10:14:17 pm »
No, sorry. Not even a complicated way (except by modifying SFML itself).
Laurent Gomila - SFML developer

diegonolan

  • Newbie
  • *
  • Posts: 26
    • View Profile
"Tilting" a 2D view...
« Reply #2 on: December 22, 2011, 05:21:40 pm »
Correct me if I'm wrong but couldn't you skew the objects in a certain direction to get the required effect?

 

anything