Posts

Showing posts with the label jit.gl.texture

texturing and lighting stuff

If you hadn't guessed I'm just typing up notes as I watch Federico's Amazing Max Tips tutorials... You can assign a texture or movie to a gl.gridshape by plugging it straight in. Make sure it has the @output_texture set to 1, of course.  The texture will take on whatever shading and lighting that the gridshape has on it. So to achieve a flat/ambient texture with no lighting info, set your gridshape to @lighting_enable 0. Also Set the colour to white. Something handy to do is after you've loaded your jit.movie, pipe it straight into a jit.gl.texture and give it an @name attribute. This way you can specify your texture in the jit.gl.gridshape with the @texture attribute and it will always be correct. For example if you delete a jit.movie node and create a new one, with the same movie file, if you plug it's texture output into the 2nd input of a message node, you'll see the id of the texture is different. A specified name will maintain its identity! jit.gl.material...