Need help with texturing an editable mesh

I’ve made an editable mesh ocean and I’m having a little trouble with texturing it.

I’ve tried setting the texture ID, using surface appearence (for all of the map properties it has) and yet I am not able to apply any texture, let alone evenly apply it on to the whole ocean.

How would I be able to achieve this?

2 Likes

Was actually doing the exact same ocean with editablemesh project a while back. I eventually gave up on it because I could get the ocean to work, but some surfaceappearance maps (such as normal maps) didn’t seem to work. Would’ve posted a bug report but I dont have the perms yet :sad:


Anyways for the actual solution you just need to add a surface appearance to the actual object (before run-time i believe, but other material methods should work) and then, for every vertex, use:

editablemesh:SetUV(vertexid,uv)

tbh this is more of a scripting issue but gl. and reply if u want clarification or smth
:wink:

Yeah I would need some clarification regarding UV, firstly what is it, secondly do I need a UV map image, and if so where would I be able to apply it