Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Elliott Lee Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: bright sprite, I dont want a fight, not tonight, I just want to get it right, can someone shed some light ? Date: Mon, 23 Mar 1998 15:46:31 -0800 Organization: Cisco Systems Lines: 28 Message-ID: <3516F457.59F2FCEE@netmagic.net> References: <6f159h$f1o4@chuka.playstation.co.uk> <6f15rp$f1o5@chuka.playstation.co.uk> <6f16i5$f1o6@chuka.playstation.co.uk> <6f16u7$f1o7@chuka.playstation.co.uk> <6f1r5u$f1o8@chuka.playstation.co.uk> <6f2u0m$f1o11@chuka.playstation.co.uk> <6f31qs$f1o12@chuka.playstation.co.uk> <6f3avr$f1o13@chuka.playstation.co.uk> <6f3fi4$f1o14@chuka.playstation.co.uk> <351653FB.BDF51E2F@intelligent-group.com> Reply-To: tenchi@cisco.com NNTP-Posting-Host: dhcp-e-39-237.cisco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; U) Craig Graham wrote: [...] > A "Sprite" isn't a sprite in the way you're thinking of it at all. > When you call GsSortSprite() it puts the equivalent of MoveImage() > instruction into the GPU packet buffer (and a ref to it in the OT). > Once the instruction is generated > anything you do the the GsSPRITE struture will have no impact on > the "sprite" that gets displayed - because it's not really a sprite > (a true sprite is an independant entity overlayed on the video plane > by the hardware, which is what's confusing you here). [...] > Craig. [...] Yup, that's right on the spot. The GsSPRITE structure is like a template for the data and the GsSort*() routines allocate a copy of that structure in your ordering table. If you plan to change RGB values a lot, what you might want to do is create a function wrapper around GsSortSprite()/GsSortFastSprite() e.g. AddMySprite(ordertbl,sprite,r,g,b)) to add a thin layer of abstraction. That way you just call AddMySprite() with your RGB values and it will adjust the GsSPRITE members and add the sprite to the proper ordering table... - e! tenchi@netmagic.net http://www.netmagic.net/~tenchi/yaroze/