b2dJson C++ - image appears as white square
Posted: Fri Oct 11, 2013 6:03 pm
I just started playing around with the RUBE editor and I'm loving it - so far everything has been really fun and intuitive - and the tutorials are great as well. However, I ran into a problem when I tried to load one of my .json files in the sample loader.
In the source code for the b2dJson C++ sample loader, I changed the "loadrube.h" test to load "C:/TestLevel.json".
The file seems to load fine - all the bodies and fixtures are visible as expected.
However, the .png image I had attached to a dynamic body appears as a white square.
I'm assuming that loaded images need to be placed somewhere specific?
In the .json file it is listed as:
"file" : "../../Pictures/My Pictures/myImage.png",
Any help is much appreciated - and of course let me know if more info would be helpful.
- Theo
In the source code for the b2dJson C++ sample loader, I changed the "loadrube.h" test to load "C:/TestLevel.json".
The file seems to load fine - all the bodies and fixtures are visible as expected.
However, the .png image I had attached to a dynamic body appears as a white square.
I'm assuming that loaded images need to be placed somewhere specific?
In the .json file it is listed as:
"file" : "../../Pictures/My Pictures/myImage.png",
Any help is much appreciated - and of course let me know if more info would be helpful.
- Theo