bgoll001@xxxxxxxxxxxxxxx wrote:
Hi all, Is there a way to use moving gratings as if they were textures? I would like to create the effect of flow either at or away from the viewer, so the grating bars closer to the viewer should be bigger than the ones farther away. I thought an easy way to do this might be to apply them to a cylindrical or spherical map as is done with an image in the demos, but I don't know if a grating can be used like a texture.
Hi Benny,I think what you're looking for -- but I'm not 100% sure I understand your question -- is the SinGrating3D class. It lets you specify the corners of a quad in full 3D space. You then move the grating on that 3D quad. Obviously, you have to set up the projection such that it appears correct to the viewer. I recently got a copy of "Spatial Augmented Reality" by Bimber and Raskar and I think it goes over all these issues in good detail. In fact, I'd like to make VE demos outlining these techniques. In the meantime, see the script demo/project_linear_grating_on_cylinder.py, which does do some of this.
-Andrew -- Andrew D. Straw, Ph.D. California Institute of Technology http://www.its.caltech.edu/~astraw/ ====================================== The Vision Egg mailing list Archives: //www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html