Author Topic: what is a Cloak texture in blockland and how do i use them?  (Read 1285 times)

here is a link to where i saw the function
http://bldocs.nullable.se/html/class_server_1_1_item_data.html#a923c618c9c5afab1433ffa6813158eb8

i did a little research on the garage games forums and found a bit, but none of it applies to blockland of course, could someone tell me what they are and how to use them please :)

id imagine you could use it to modify what texture a weapon uses through code, could be pretty useful for weapon skins and such.

Cloaking is a feature that's been in Torque since Tribes 2. Setting a texture would cause a texture to overlay the shape of a model when the function to set it as cloaked made it transparent. However its existence has been almost completely ignored in Blockland, and like many features of Torque that have been ignored for a while tend to do, it's broken down. You can call setCloaked on your player, but all it does these days is forget up the rendering. Your player model won't be hidden, it'll just have all its parts drawn in the wrong order. The texture will be overlayed on the model, and will shift around at a speed proportional to your framerate. I used to use that for a cool teleport effect, but then the shadows and shaders update came out and anyone with shader settings on won't be able to see it moving at all. I can't think of anything worth doing with it anymore.

You can't cloak individual weapons when players hold them either. You have to cloak the whole player. There may be some hope of changing textures on mounted images through other means, but I'd have to dig through blockland alpha, as all I'm going on with this was a shield item held in the off-hand that I recall having multiple textures that could show on it.
« Last Edit: November 06, 2014, 06:35:47 PM by -Jetz- »

oh, huh, i somewhat figured it was one of those neglected features, but thanks for the fast response :)

Jetz: Look into the skinTag argument to mountImage.

Jetz: Look into the skinTag argument to mountImage.
Well, retexturing images was the just interest he expressed in the OP. Personally I'd rather have my teleport effect working like it used to. Still, nice to know where to look if I ever wanted to do something with that.