load texture using path
This is supposed to be a fast and automated way of loading textures into the jit.gl.texture...
Honestly... it would be far quicker to drag the images onto the object as mentioned in the previous post, but I guess it is worth mentioning the "this patcher" object which provides the path for where the patch has been saved (displayed using the message object). It seems like you have to pass it a "path" message for it to output the info.
Next we use sprintf to add the rock/Rock..............etc to the end of the path. I believe the %s represents the string that you pass into the sprintf object, eg the path. The symout is present to process any symbols or spaces as text.
Prepend adds the "read" message in front of the full path of the texture file, this gets piped into the jit.gl.texture and when banged the texture should be loaded in. You might find you have to click some of the upper bits of the path to trigger it all. I find this method a bit extra, but I do like the append & prepend stuff.
Comments
Post a Comment