yeah texture splatting was what i was searching for. i already found
some code snippet and was half through putting this beast into my
code: http://phpfi.com/352238 when i found out that if i create a png
with half-transparency in itn then pyglet will handle all this stuff
on its own :D :D :D
well as for the palette switching: i can compensate this by pre-
processing the images and just loading more files into memory if it is
too hard or gpu hungry to do this.
do i gain any advantage by storing my tiles and map object as 256
color images or are they converted to rgb data in video memory anyway?

On Sep 11, 1:11 am, 3TATUK <[EMAIL PROTECTED]> wrote:
> 1. 'Texture splatting'
> 2. I'm not really sure as far as dynamic palette swithching ..
> although this is something I've been planning on looking into myself.
>
> On Sep 10, 4:17 pm, josch <[EMAIL PROTECTED]> wrote:
>
> > now that i got my tiles up and running with scrolling and animations
> > going at fast 240fps with a lot of help by alex and the other
> > mailinglinst members here - again: many thx, i learned a lot the past
> > days! - i have an additional question:
> > what i want is basically two things:
> > first i have some map object sprites that apart from having normal
> > fully transparent areas also have areas where pixels should be
> > rendered as some kind of "shadow": half transparent black over the
> > background. there are two kinds of shadows that just have different
> > transparency.
> > second i have some terrain tiles that animate by switching their color
> > palette. the palette color is just shifted up in a loop to create an
> > animation.
> > for those two things there probably is a way to do them in opengl -
> > what i need is to know how all of this (half transparent pixels and
> > switching palettes) is called to google it up. as i didnt see any way
> > to do this in pyglet i would probably have to write some opengl ctypes
> > here right?
>
> > as a side note all my images are 256 indexed color images. i dont know
> > if there is any way that info can speed up my batch drawings?
>
> > again: thank you for your help! at most i need a few pointers that
> > will get me to some documentation or code examples how to do this.
>
> > cheers
>
> > josch
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to