I am trying to “map” or “skin” a 3D object, a cube.obj, with an OGV video. I have used the code below given as an example in the Z.VideoTexture documentation. I changed the first variable to the name of my OGV video, and no problems there. But the problem comes in the second line, var myplane = Z.Object(“plane.aro”); I change “plane” to “cube” (the name of my 3D object, my .obj file, and I get an error message “expected 0 arguments and found 1”
below is the complete code from documentation:
I am not a “coder” and am really bad at the scripting stuff…I don’t even know what an argument is (I looked it up and got the definition, but am no closer to understanding). And honestly, I have tried to learn this stuff, but it seems my brain is just not wired for it.
I have looked at the Z.Object documentation to try to understand the .aro convention in the “plane.aro” variable. From the documentation I see that a Z.Object node is just an instance of any renderable 3D object, which would make my .obj cube an “instance” or a Z.Object. At least that’s how I took it. And the documentation goes on to say that ARO Simple (Zappar’s simple proprietary format).
Okay, so from that I assumed that my cube will then need that .aro at the end, such as cube.aro. Of course that didn’t work, so I tried cube.obj and tried just cube and nothing seems to work. Still get the “expected 0 arguments and found 1”
—So, can anyone tell me what the secret sauce is that I need to “skin” my 3D cube with my very very tiny 128px by 128px .ogv video?
—Also, by using the example code above appended with my object and video names, will the video play/start on “show?”
—Or does that need to be set up in the “Show” script, which I have already done and amazingly it worked! Of course I just had audio and ogv video play upon “show” on a flat plane, not on a 3D object or in conjunction with a “trained” image, neither of which works for me. I can’t even get past the scripting problems with the 3D object to see if the video will even play if I did get it mapped to the cube.
Thanks for reading all this and any help you may offer,
Lonnie