I have one image like 256x256 pixels and I have multiple little images in there. They are little textures that I will apply on a surface.
What I would like to know if it’s possible with openFramework and VS2010 to work like that? If a texture is 16x16 pixels I would like to take that part of the image from a ressource file in VS2010 and apply it on my Object.
I don’t really know how the ressource files works in VS2010 if anyone know where I could use the info because when I add an ressource I can’t compile anymore.
in this case there is no limitation in OF i think . You need specify the tex coord of every little tex inside the big one to the model textured. I think you could use the ofxAssimpModelLoader addon but i never done this with Openframeworks ( it’s used most in the cg game, i used it with ogre engine and neoaxis) .
I don’t really know how the ressource files works in VS2010 if anyone know where I could use the info because when I add an ressource I can’t compile anymore.
as jvcleave says you need put in th bin/data folder of the application your resources files. And you need to change in the code the “name” of the file that you want to load in the application. But i’m not sure to understand why you can’t compile anymore if you add a resource (maybe you are refering to something else?)
yes of course . Download the addon. Open it, you will see two folders: addons and apps. You have to put the addons/ofxTiledTexture folder in your addons OpenFrameworks folder. Then with ProjectGenerator you can start a new project or update an existing one, choose you type of Project, you can select your addons in the Gui and then start to code.
In the downloaded folder from github go to -> /ofxTiledTexture-master/addons/…copy the ofxTiledTexture folder and paste on the openframeworks addons folder. Open projectgenerator and click to select addons and you will see ofxTiledTexture addon in list,select and generate the new project. See ofxTiledTexture apps addons examples how addon work…