NicoVB Posted March 31, 2004 Posted March 31, 2004 How do you make a difference image between two frames... i have one frame: an empty tennis court another frame: a tennis court with a player I want to get the difference ==> so the player should be visible alone now in fact (all the pixels value from frame 2) - (all the pixels value from frame 1) but how to do this?? thanks in advance nico Quote Visit http://www.nico.gotdns.com Now ONLINE!
*Gurus* divil Posted April 1, 2004 *Gurus* Posted April 1, 2004 I think you'll have to go through the pixels checking. If you do this with pointers in C# it should be lightning fast. Check out the BitmapData class if you haven't already. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
NicoVB Posted April 1, 2004 Author Posted April 1, 2004 How do you make up then the new DIFFERENCE image?? (if you have all the values) Quote Visit http://www.nico.gotdns.com Now ONLINE!
ThePentiumGuy Posted April 21, 2004 Posted April 21, 2004 hey dude, im not too sure whether you can do this in VB/C#, but on my TI-89 graphing calculator you can: if you can somehow "Xor" 2 bitmaps/images (Xor is like an And or an Or) maybe it'll do it for you, but i highly doubt you can do this in .net something like this: playerstandingallaloneImage = tenniscourtImage Xor tenniscourtwithplayerImage dont quote me on this(by the way if this method *does* work but it doesnt acheive theright results, try And or Or... but dude im really not sure, Pent Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.