Display sprites with palettes

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Fou-Lu
Enthusiast
Enthusiast
Posts: 201
Joined: Tue Jul 12, 2005 8:30 am
Location: I'm pretty sure this is all a nightmare
Contact:

Display sprites with palettes

Post by Fou-Lu »

I want to load 8bit sprites in high/true color modes, but keeping them as 8 bit sprites. That would be used with a new sprite command:

DisplayPaletteSprite(#sprite,x,y,#palette)

The sprite would be displayed using the colors of the palette (which could be a normal palette, created with the palette commands)

I've discussing about that here.
Is this possible?

~Fou-Lu (aka Lørd Cinneris (actually Elias Sant'Ana))

Image Image
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

4-bit sprites are also very useful and would be a nice extra... :)

I think they are drawable using direct-x???

But then would also be useful to have a way of the palette library being able to generate 2, 4 or 8 bit palettes.

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Fou-Lu
Enthusiast
Enthusiast
Posts: 201
Joined: Tue Jul 12, 2005 8:30 am
Location: I'm pretty sure this is all a nightmare
Contact:

Post by Fou-Lu »

I agree, 4bit sprites would also be great. 2bit is kind of useless... anyway I want to hear Fred's opinion too! :? Where is he!?

~Fou-Lu (aka Lørd Cinneris (actually Elias Sant'Ana))

Image Image
Blade
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Aug 06, 2003 2:49 pm
Location: Venice - Italy, Japan when possible.
Contact:

Post by Blade »

Fou-Lu wrote:Where is he!?
2 Options:

- On holiday.

- Improving PB as usual :)
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I used to use 2-bit all the time for 3 colour (+ transparency) fonts. :)

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Fou-Lu
Enthusiast
Enthusiast
Posts: 201
Joined: Tue Jul 12, 2005 8:30 am
Location: I'm pretty sure this is all a nightmare
Contact:

Post by Fou-Lu »

Oh.. alright sorry, 2 bit sprites are also useful. :wink:
Wait a minute, when did you use 2 bit sprites? Is there another language which use them? :?

~Fou-Lu (aka Lørd Cinneris (actually Elias Sant'Ana))

Image Image
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

They were on the Amiga, also on other consoles :D

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Fou-Lu
Enthusiast
Enthusiast
Posts: 201
Joined: Tue Jul 12, 2005 8:30 am
Location: I'm pretty sure this is all a nightmare
Contact:

Post by Fou-Lu »

Where is everybody? I was hopping there was more people interested in that... :(

~Fou-Lu (aka Lørd Cinneris (actually Elias Sant'Ana))

Image Image
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Could be nice
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Could?

dont you mean:

Would be nice?

:)

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Fou-Lu
Enthusiast
Enthusiast
Posts: 201
Joined: Tue Jul 12, 2005 8:30 am
Location: I'm pretty sure this is all a nightmare
Contact:

Post by Fou-Lu »

It WILL be nice. If Fred give us some attention of course... :roll:

~Fou-Lu (aka Lørd Cinneris (actually Elias Sant'Ana))

Image Image
User avatar
Fou-Lu
Enthusiast
Enthusiast
Posts: 201
Joined: Tue Jul 12, 2005 8:30 am
Location: I'm pretty sure this is all a nightmare
Contact:

Post by Fou-Lu »

C'mon people! Give your opinion. This is the feature I most want to see in PB, I'm sure I'm not alone!

~Fou-Lu (aka Lørd Cinneris (actually Elias Sant'Ana))

Image Image
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I don't know why people haven't replied to this post! This would be one of the best additions to the sprite library that I can think of...

I guess they don't understand what it is ;)

Fred: Is this "feature" possible/likely?

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

DoubleDutch wrote:I don't know why people haven't replied to this post! This would be one of the best additions to the sprite library that I can think of...

I guess they don't understand what it is ;)

Fred: Is this "feature" possible/likely?

-Anthony
i think people understand what you mean! and the feature isnt bad! but you can still code your own procedure for doing this ;-)

By the way, today 32 bit are nearly a standard. So i dont know why we should discuse about 256 color stuff ;-)

By the way i am coding on a new user lib and maybe i will try to add your wished feature! (but it will take time before the lib will be released)
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

Fou-Lu wrote:I agree, 4bit sprites would also be great...
i dont need 2 or 4 bit sprites! maybe you mean 16/24/32 bit sprites with colors like a 4bit image (also 16 colors?) !! You can still save your image as 4 bit BMP and load it with PB (PB supports loading 4 bit sprites!) :-)
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Post Reply