jit.gl.model and jit.gl.multiple

Apr 15, 2012 at 8:13pm

jit.gl.model and jit.gl.multiple

I am using jit.gl.model for the first time and have run into a couple of frustrating problems.

What I am doing is drawing a vine randomly, using the jit.phys engine to create the path for jit.gl.path. To make it look more like a vine, I am using jit.gl.model and jit.gl.multiple to add foliage. Everything is working great except that the initial model is full size and in the center of the scene. If I change its scale or position, that affects all of its duplicates, which are scaled and positioned to adhere to the vine.

I have two questions related to .obj models and gl.multiple:

1. I don’t know how to show only the models referenced by gl.multiple. How can I hide the original?

2. Do all models show up with a scale of 1. 1. 1. ? Is there no way of creating a model with a specific scale to begin with?

Thanks in advance for any help!

– Pasted Max Patch, click to expand. –
  1. vineshoot11.obj
Apr 15, 2012 at 9:33pm

1 – @automatic 0

2 – @normalize 0 – the model will be rendered at whatever scale and position you exported it at.

both these attributes are for the jit.gl.model object

Apr 15, 2012 at 9:49pm

@Robert Ramirez:
Thank you for this and also for many other posts I have seen, you are invaluable!


You must be logged in to reply to this topic.