Creating OCS texture mapping and controlling it

Hi. How do you do it? WCS/OCS (Box) ?

Set projection mode on render texture, then create an OCS mapping:

2 Likes
                   case 5:
                    renderTexture.SetProjectionMode(TextureProjectionMode.Wcs, RenderContent.ChangeContexts.Ignore);
                    map = TextureMapping.CreateOcsMapping(plane);

                         break;
                   case 6:
                    renderTexture.SetProjectionMode(TextureProjectionMode.WcsBox, RenderContent.ChangeContexts.Ignore);
                    map = TextureMapping.CreateOcsMapping(plane);
                    break;

Thanks, I see a good result. but the texture is very small. is there any way to enlarge it?

I assume that is coming from the Path parameter. Make sure you use a larger resolution image.

I’m not talking about the quality of the mesh, but about the number of textures on the object. is there any way to minimize ?

2 posts were split to a new topic: Displacement on quad mesh failing

Moving this to new discussion topic.

You’ll have to change the repeat settings to change how many times a texture is repeated in a WCS/OCS mapping.