odd behavior with jit.gl.camera and Jit.gl.node to jit.gl.material

LSka's icon

Hi,

I noticed this strange behaviour when trying to use the output of jit.gl.node as diffuse texture for jit.gl.material (see simplified patch below)

Max Patch
Copy patch and select New From Clipboard in Max.

As I move the camera of the main render context, the texture doesn't cover anymore the entire gridshape, as you can see in the images below

camera at the original position

LSka's icon

mmm... the site has truncated my post!

here's how the story goes on:

this is what appears when I move the camera further

Otherwise, patch displays the expected results when I send a texture image in the diffuse inlet: the texture wraps around the shape regardless of camera position.

Rob Ramirez's icon

you need to override the camera movement in the sub-node context. simply add a [ jit.gl.camera NODE ] to your patch.

LSka's icon

Thank you Rob!