How to create a particle videoplane?
I’m trying to create a particle videoplane so that I could interactive generate a new videoplane. Is there any working patch for reference? Thanks.
Check out my attachment.
This one was fun. Basically, I took the help file from jit.phys.multiple. I then replaced the 64 spheres with 64 video planes. I then added a video to those planes.
Just click "1" and "2" to get started. Note that the "read" message can be replaced with a message like "read example.mov" or "read example.png".
Hope this helps!
When it comes to interactively generating a new video plane based on a player action, I am not sure.
Normally what I’d do in that case is hide the max number of objects off screen until the user "pops" the object into their view with an action.
However, truly "creating" a 3d object like a videoplane based on an action is something I have yet to figure out. Perhaps lua would be useful for this?
you can use jit.gl.videoplane with jit.gl.multiple and the p.shiva/vishnu particle objects.
controlling the number of instances is simply a matter of changing the dim attribute of the source matrix.
----------begin_max5_patcher---------- 974.3oc0Y1saaCBEG+5jmBj0tLKBvejjcUeJ1MSSUjXRBY1XOLtMaU8ceXvt IsMwg3QbckhhkALb7O9ygyA+z3QdKy1SK7.eC7CvnQOMdzHcQUELp99Qdoj8 qRHE5l4woOlsbm2DSUR5dot3jLR7RBeSSEqy3RNIkpq76TQLgSZpiWllUJSn RcOhpK0Tj7O4Ti43o6NvOOpCKX+UWIBOEdnuX721U4D4psL9l6EzURSuED.U OCv2bAA0WvnovWF.Vr1VUubeEOyqprmGOt5uI1RlxzkTw0C.7KVsP0dIUbOk SVlneR34fCiK8l3ZFMSSEy+gsSnntPnTZQAYC8chmXVJ3KH.1ghmqCJ3KBED ReIJPeyhyPkfNoaN8JpcL4TdFqfBB.q1RDJQq5W2kWuCQpA39ThTv1Wojb9J sZtEF1lNBE4PhU4CpRhAfSQeXRoVHCdtgLHq7AAcrVxLUC7AqUbR5iAnguVp gX0ds8iZkXHGSrMISefESyxSHb5vGVHCrB7MvJpU4EZt6gUZYhjkm3RTc8.B eQ.U6YZApU9Lyw7Imr5W.D3tr0qKnR.Fb2txzbfeSiSXb5prRt9I7G9qLqWR t3XeYUwLbRXF5PXJ.NNNyqiIvKxDy5uv1kWtLRghNRDni76fq8Nay6s+sYWs b00OC6mEbruYDbQqrx06mkq1NqXKu7yCm7sIRo42PIEH7P3RPXWxP4CBcypQ Vqjy24BrhsrGHedzWPqhD2ko5Jnpc+Gh441jf6QI+etzbQX2G63VBO9CNxQz Egy7YVHWPcJwMY1lMGd+O8j+Ue.QuXdVutv7l4eHLF+yDR2BGJAjfk.pfT3x oeSDQ.OS+5L+FlLGN5nfNmJvkoO7a0jtHCD9gd1p3KQEiminVSQOxwNNdjwi ydDb25BBwommQi7wwJmlzkvsdnXAt28pfxi+eNa5dCPVEwWmBLlHkhRV2WCU 875VqCHjcHgqqeO4pYm6ejEK2VUQz7tBqHaf0qx8V2.8YM7lO5idPpJ+0DrH qTrp48p9SiLAbXbhoEJTnvQF+nFghdUi1xhio7i2sJlUTsAl1HgmbtzV64MC 0Yrm48l8fswdvA8m8DXg832eSWyFVSWKrvb5Ow7bafCp2LGqlq7GVlSuZMnA i0XiWmY8l0DZg0zet.8swib+4PFYiL90pqap8.sAO8mRFag4ze6OfBsc1pmr mA1141Lagf8m8X0hqv9ydf2v8rLwxSxyefJJp6Rsknx6YWlNWknI5aYbys5L J7DzGXMs2z.hPkfgTkcQovjPz94UYpqFmmG+OT6YT6J -----------end_max5_patcher-----------
Hi Rob, thanks a lot for the patch. I can figure out emitting basic video sprites with alpha channel. But when I set init_var value in z position. Different sprites would not sort depth based on their z value, i.e. sprites that are far back would display in front of sprites at front. If I turn depth_buffer enabled for videoplane. The alpha channel will have problems, it has a strange kind of mask frame blocking some of the sprites behind it. I set the blend as alphablend and blendmode as 6 7 by default.
Also, for camera perspective, is it possible to let the elements accept main camera perspectives while each sprite ignores the rotation. For instance, if I setup a camera to look down toward a group of videoplane sprites, since they are also flat surface, they will look tile based on perspective, can I make them still look orthographic while keep sizes changed according to z-depth?
The other thing is that how can I fadeout a sprite when its life ends. Also is there a way to emit the videoplane(with a quicktime video attached) that playback from a different time and rate.
In short, can Max create a particle system similar to the trapcode Particular particle plugin for aftereffects if you know it. A particle system that can easily set each sprite’s color, opacity alone the life span and also allow each sprite get a different frame from a video or choose a different start time.
Thanks Nadan10 for the patch.
The most annoying thing is this alpha problem, see attached image. Part of the horse at back are masked by the frame of the front one. But the front one does has its transparency actually. Is it a common depth issue?
The problematic alpha sample is here.
Hi again Yan Da!
Is it a common depth issue? Unfortunately yes.
If opengl opacity stuff made ANY sense in Max, it would just automatically assign layers based on distance to the camera.
But opengl opacity stuff doesn’t make any sense in Max, so (as far as I know) you have to manually assign a "layer" to each 3d object if you want normal opacity stuff to work. And the "layer" has to be higher if it is closer to the camera. So the horse in the back should be @layer 2 and the horse in the front should be @layer 3. That’s how it is for normal opengl objects in Max…not sure if jit.phys.multiple makes that process harder. I would set up an example patch, but I’m not sure how to assign layers to specific objects in jit.phys.multiple…
Someone should make an object that automatically assigns layers based on the distance of that object to the camera. That would be cool.
Your project looks awesome! Horsies!
Forums > Jitter