Solved

Horizontally flipped sprite

Posted on 2004-09-13
5
666 Views
Last Modified: 2013-12-08
How do i blit a horizontally flipped sprite in managed directX?  An answer in unmanaged directx would help too.
0
Comment
Question by:davidastle
  • 2
5 Comments
 
LVL 3

Expert Comment

by:str_ek
ID: 12052779
http://blogs.msdn.com/tmiller/archive/2004/02/05/68347.aspx

and find "flip"

and i agree. as far as i know there is no eazy way to simply blit a flipped sprite ... the way is by haveing it as a poly you texture and swap texture coords.. (like a billborad), but it takes some extra brain damage to make it that way ( hey.. wher is that old cool ddraw7 ;))
0
 
LVL 2

Author Comment

by:davidastle
ID: 12059400
Yah, i wrote my own flip fnction that returns a flipped texture.  Bah!  There is no better way?  grr!
0
 
LVL 3

Accepted Solution

by:
str_ek earned 500 total points
ID: 12065361
afak no....  but once again i anvocate to forget blitting, and simply draw a textured poly :) it's eazier to maintain(well sometimes, with not muchobjects to trace alfa nad hence not wide deapth differences between layers, so there wont be glithes) and if you take planing in your own hands it works just fine... the only prob is to find/calulate te exact correct projection matrix, so it look flat;)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now