The current addon I'm working on relies on render drawing to make it work as all the entities are what I call 'dynamic entites'. Which can be created programatically and on the fly such as walls and obstacles, platforms etc.
The problem I'm having is that render.SetMaterial used in conjunction with render.DrawBox doesn't allow for tiling as far as I can tell. Here is an example:
https://files.facepunch.com/forum/upload/302324/0b34407f-6202-4efd-998e-89809c368c9a/Screenshot_2.png
This is the material used on a prop ^^
https://files.facepunch.com/forum/upload/302324/9088102c-1fad-401b-92e2-49714fd698e9/Screenshot_1.png
and here is the same material used on render.DrawBox. As you can see there is no tiling which is rather annoying especially when the obstacles get large. I have tried Material("squad/orangebox", "noclamp") to no avail. Anyone here dealt with this before and have a fix? maybe I don't know enough about the render library and I'm being an idiot, but please help! Thanks in advanced.
No way around this with render.DrawBox. You will want to generate a custom mesh with proper UV coordinates and render that.
Could you point me in the right direction for this? If this is possible to do programatically. I already generate physics meshes for the entities so I can use those as a base atleast.
Sorry, you need to Log In to post a reply to this thread.