Does anyone have a patch that displays the inputs of jit.gl.mesh and how to effect the parameters.. does not seem to be clear info on the subject on forum or anywhere.
still no response?.. amazing.. I have researched forum and rest.. found lots of patches using jit.gl.mesh and have used it myself with ease. However usually only the first (vertex array) inlet is used.. one or two of the other inlets are sometimes used but there is no effective documentation describing
why the 9 inlets are there and how to make use of them. I have been able to work with shaders( that come with max) on the mesh.. very nice .. geometry shaders would not work however. got error that could not bind to vertex..I am working with models.. could that be issue?
you will probably get a better response if you ask a more specific question.
in the meantime, here is a patch which shows how to unpack the matrixoutput of jit.gl.model, into the postion, texcoord, and normal inputs to jit.gl.mesh
btw, geometry shaders are not yet supported by jitter.
----------begin_max5_patcher---------- 1312.3oc0ZssbihCD8YmuBUT6iItP2vvT6Cd+I1W1ZpTxFYaR.IVjXSlcp4e eAD1AmfsALVl8EnjLWN8o69zsD9mOLyYk7ctxA7MveAlM6mOLaV0TkSLqd7L mD16qiYppKyQveSt5EmGM+jl+ttZZMXEHd+rh7jHQLWWcGv5ISY506hDaeNi uVadiXe24tOBfKpNQLCBl6B99GOHYtd+SBUOqYJ8OR4lGiyJlXqyi.GmC2XT XEpJP5SPu8vZiTnErjp6x4O4YgLAq4uoh92peCV.jxY+0COTd3wqiYhkrPC. 6G4PbavJTuKvMvyxMsxKjtvKoYbEWnY5Ho3Hvg9.Vt0GN7VFAxbsLIo389E1 72e5IfPlkvhU8kP8fU.EYh1ft3KPotekyn1JV5blewf0RYVXuI.pIcCQtBBf NAHfToJpLdD7OCHJfRMjfIXHfL.Nf7+SAkZ+dskeCTTv9VhXzxsai48VPMng fJ5vw9Z9QEQksZ8DmAXJIbkhsk+EmbBSmE8dwKOMWC9MXq1J5h1pmIHGYpx1 eascCEZI27pbsVJ5cXNtoJ2v8ymLLGELlN5LNKDndMRLWGsoutYDsost.Np9 Yzh6qN2KQ54aimWNNOiC1Hk8NTfdbE+A2fYATdda7y0P4jsZhH2eFKks9U.D rTtYihqATvxWxSRA3dqVRNh67tJtynlcZdCM43MbM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cher-----------
Thanks for answering Rob , That solves the geometry shader issue.. I thought it might be possible to effect the geometry of a model drawn to a mesh by triggering the inputs of the mesh object individually but maybe that’s not possible..( I am finding other avenues ) I have been able able to manipulate the mesh color coordinates as well as send my textures to the mesh so they can mix with shaders which is great…(would be better if I could write my own but that’s down the line.. there does seem to be a few to borrow though) another issue I have is I am sending more than one model to the mesh .. The first model is textured correctly and I can switch it although I can’t adjust the coordinates…. The second model’s texture is mixed and seems sort of a feedback thing.. but don’t seem to be able direct the models textures as can’t seem to name the textures independently to the mesh..