Doc > Import Assets > Textures

Doc > Import Assets > Textures

From a Url

Importing textures is very similar to importing models. Let's start by creating a compositing network node, by selecting networks -> copNetwork

Create COP Network Obj Node

Once you have create this node, double click on it to go inside, and create an image node.

Create Image COP Node

Then you will see, just like for the file SOP node, a url parameter. This is where the texture is loaded from.

Image COP params

And to check that it is correctly loaded, you can middle click on the node, and that will preview the texture:

Image COP preview

Now that the texture is imported, you still need to assign it to a material. Let's do this.

First we go back to the top node.

Go to top

Let's create a Materials Network node:

Create a Mat Network Node

And inside it, let's create a mesh basic node:

Create a Mesh Basic node

For the mesh basic node's parameters, go to the texture tab, and toggle useMap on.

Activate texture

Then click on the yellow button that just appears. This will open a model window to select the texture node you imported previously.

Click on Select Node Button

Select the texture node

And once you've selected the texture node, you can see that the value of the parameter map has been updated. The texture is now assigned!

The texture is assigned

Now the last step is to assign this material to an object.

So go back to the top again:

Go to top

And go into /geo1 where you had created the file node. The create a sphere node, as well as a material node. Plug the sphere node into the material node.

Then select the material node to show up its parameters. And in the material parameter, you will see a similar yellow button to select a node. Use it to select the mesh basic you just created. And that's it! The material is now assigned, with the texture you have imported. All done!

Mat is assigned

From your local drive

And just like importing models from a url, importing textures from a remote url isn't the most convenient. This is where the local version can also help you.

As you can see, the url param of the cop/image node also has a file browse button just next to it. And it will allow you to quickly pick textures that are under the public folder.