Currently, I am working on a project involving the creation of an ePub3 eBook.
One of the exciting features I have successfully integrated is three.js to showcase some models. My next goal is to develop 'hotspot' elements (small cubes that users can interact with to access details about specific positions on the model) by loading a JSON file in the specified format:
{
"detail0" :
{
"id": 0,
"size" : [5, 5, 5],
"coords": [-10 , 4 , -10],
"text" : "first interactive object"
},
// ...
}
When viewing the ebook in Safari, everything functions as expected - the obj file loads and renders properly, and the JSON parsing works seamlessly. The same positive experience is seen when viewing in iBooks for Mac.
However, the issue arises when attempting to view the ebook on my iPad in iBooks - the functionality does not work as intended.
Have any of you had experience working with JSON in ePub3 files and could offer any advice?
Furthermore, I am interested in learning if there are specific methods for debugging ebooks aside from testing in a browser and crossing my fingers for smooth operation?