Decals has been in since the infestation got implemented iirc. At least the devs said they had implemented a form of decal system for the WIP-infestation back then.
But yes there is decals now, and you create them like this: <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->self.decal= Client.CreateRenderDecal() self.decal:SetMaterial(decalMaterialPath) self.decal:SetExtents(Vector(xSize,ySize,zSize)) self.decal:SetCoords(self:GetCoords())<!--c2--></div><!--ec2-->
They will automaticlly use their Coords negative z axis as a direction to find a surface to paint themself on. This means they ought to work on surfaces on a different angle than them as well, have not tested though. They wont work for painting without having an actual surface behind though... :(
If you want it hanging midair, like a secret passage. Or in my case grasping for brambles on how to display a texture at any position with any extents i want, witho having a model
<!--quoteo(post=2048050:date=Dec 19 2012, 03:02 PM:name=Racer1)--><div class='quotetop'>QUOTE (Racer1 @ Dec 19 2012, 03:02 PM) <a href="index.php?act=findpost&pid=2048050"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Forgive my ignorance, but why would you want to show a decal without having a surface behind it?<!--QuoteEnd--></div><!--QuoteEEnd-->
Comments
At least the devs said they had implemented a form of decal system for the WIP-infestation back then.
But yes there is decals now, and you create them like this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->self.decal= Client.CreateRenderDecal()
self.decal:SetMaterial(decalMaterialPath)
self.decal:SetExtents(Vector(xSize,ySize,zSize))
self.decal:SetCoords(self:GetCoords())<!--c2--></div><!--ec2-->
They will automaticlly use their Coords negative z axis as a direction to find a surface to paint themself on.
This means they ought to work on surfaces on a different angle than them as well, have not tested though.
They wont work for painting without having an actual surface behind though... :(
Or in my case grasping for brambles on how to display a texture at any position with any extents i want, witho having a model
Maybe for holograms or other forms of projection?