Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Vbo meshes and array of multiple images

$
0
0

Hi oF community! This may be a rather stupid question but I'm having some trouble with a project I am doing. Just a quick overview, I am attempting to create an interactive piece where a vboMesh cycles through an array of images based on a blob tracker. Essentially the effect that I want to create is when someone steps on location A, a mesh will appear. When he/she steps on location B, another image will appear. The reason why I am using a mesh is because i want to apply shaders afterwards to play around with how the image looks.

I am currently at the stage where I am simply trying to apply multiple images to the vboMesh. I am able to link one image to the mesh. However when I try linking the array to the mesh, i get an error saying "img declared as array of references of type 'ofImage & (aka ofImage &')

I am basing my code off of the vbo example hence that is why my code is like that right now. I may possibly be approaching this problem in an incorrect way, but any help will be much appreciated right now!


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>