Shadows on OBJ Jitter Models

Connor Taumoepeau's icon

Hi guys,

I quite new to Max and am trying to become familiar using jitter. Currently I'm using OBJ files through jitter and I'm wanting to cast shadows of a 3D model by a light source. Any ideas?

LSka's icon

Hi Connor,
here's a starter:

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


Connor Taumoepeau's icon

Fantastic! I'll implement this now! Let you know how it goes.

Connor Taumoepeau's icon

Choice, Patch works great. However I get a crash. Im using jit.gl.render instead of jit.world. So whenever I enable a light with "@shadows 1" it crashes the patch. My Max log consists of stack underflow.

Any ideas?

Rob Ramirez's icon

please post your patch

Connor Taumoepeau's icon

Take a look, let me know what you think. I think this is partly because I'm using a matrix output to affect the triangle polygons. This could be the issue?

Rob Ramirez's icon

don't use jit.gl.render for drawing, instead use jit.gl.mesh (i know our material is outdated in this regard)

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

Connor Taumoepeau's icon

Wooo! Cheers Rob you have fixed my problem!

Nodanoma's icon

is there a way to maintain the shadow rendition on a surface materialized with manual heightmap_modes? A jit.gl.mesh seems to only support shadows on its surface when operating @auto_normals 1, using manual heightmaps and normalmaps on an attached jit.gl.material makes the shadows disappear. Any flag I can tick perhaps? Appreciated!

Rob Ramirez's icon

not currently but there is an open feature request for this functionality and I hope to look into it soonish

Nodanoma's icon

Thank you Rob, looking forward to it