VertexW

Blitz3D Forums/Blitz3D Programming/VertexW

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In the docs, it states this is an optional redundant attribute that was intended for future use. Did it ever get used? For what was it intended? I've an idea to make use of it to store a certain type of data I need to access.

If it turns out I can, how much could I store in it? I want to be able to store a Surface handle and a Vertex number (so up to 40000). That's presumably 4 bytes for the surface handle and 2 for the vertex number. If VertexW is a float, could I theoretically 'convert' a long word or two short words to a float? (i.e. make a function that Pokes a Float into a bank, then Peeks a Long Word) And if so, how stable are floats if I copy VertexW from one vert to another? the long words and short words I read back have to be absolutely the same or the whole system falls apart.

Weird request I know, but if it's possible it saves having to create and maintain a huge databank.