I am very new to Cinder. I decided to try it after reading the very good documentation available here. I downloaded the repo and compiled the solution with vs2022 using the vs2019 project.I just needed to add a const for operator== of CRect
The first test i made is a small project that generates a surface, fills it with a perlin noise and the writes the image as png. My problems start in the writeImage command.
if i create the output path using
getDocumentsDirectory() / “output.png"
everything works fine.
if the path is constructed without using that function, non matter the path ( I tried many existing path in my computer, and the same given by getDocumentsDirectory) the error Could not create target for image with extension: png appears.
Where are you calling ::run from? getHomeDirectory()calls into Platform::get, which on windows, initialises WIC which is used for writing and reading image file formats, so uninitialised WIC would account for the error you’re seeing. However, as long as you’re calling your run function from anywhere within a derived cinder app class, PlatformMsw should always be correctly initialised. Is your project/app set up similarly to how cinder expects, or are you just trying to use cinder functions from your own main or something?
Yep, that makes sense. I would suggest making a regular cinder app and calling these functions from your overridden ::setup and everything should be fine from there.