How to determine a brushes Alpha

Blitz3D Forums/Blitz3D Programming/How to determine a brushes Alpha

jfk EO-11110(Posted 2005) [#1]
I am currently working on a new VIS compiler for custerized maps. If the map contains Alpha transparent parts, it takes 2 passes to scan the VIS data, one time with the semitransparent parts fully opaque, and a second time fully transparent (because of the ICU method). However, for this reason I need to replace all brushes that are semitransparent. It's no problem to replace a certain brush, but how do I determine the Alpha-ness of an existing brush that was loaded with the map mesh? I see the BrushAlpha Command to set this Alpha value, but how to read it?

(I already tried halos LoadB3D Code he posted one upon a time in the code archive and then deleted again :) (you see, it's always a good idea to save things locally) but the code seems to fail to load a giles exported B3D map for some reason)


Tom(Posted 2005) [#2]
http://www.tomspeed.com/memorylib/

Copy to blitz3d\userlibs\

GetBrushAlpha#(brush)

There's a bunch of other commands in there, if any of them intefere with existing userlib commands you may have then simply rem the offending lines out in the .decls

Let me know if it works ok with your loaded meshes.

Cheers
Tom


jfk EO-11110(Posted 2005) [#3]
Wow, seems to be a very useful library. thanks a lot! I'll try this asap.