whats 'w' in uvw?

Blitz3D Forums/Blitz3D Programming/whats 'w' in uvw?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Writepixelfast not working with alpha? I think it's working. You have to handle it, of course. Not sure if you ca ReadPixel the alpha channel correctly. Writing works.
a=127
r=$44
g=$55
b=$66

argb=(a shl 24) or (r shl 16) or (g shl 8) or b
writepixelfast x,y,argb

when reading a pixel you should mask the slpha channel if it's not an alpha texture:
rgb=readpixelfast(x,y) and $ffffff
otherwise there may be random values in the alpha channel.

Not sure if you can read the alpha channel, maybe like this:

argb=readpixelfast(x,y)
a=(argb shr 24)


And the second thing, the W would be a 3rd dimension to define the vertex location. Imagine you could use the xyz right as UVW. These requires of course a 3D texture or material. Not supported by Blitz and by most other realtime rendering things AFAIK.