guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.81k stars 224 forks source link

Work for iOS? #33

Closed convolutionbbs closed 6 years ago

convolutionbbs commented 7 years ago

Has anyone compiled this sucessfully for the iPad / iOS?

Thanks!

guillaumechereau commented 7 years ago

I haven't tried yet, but this is something I keep in mind. I am actually thinking of doing a paid iOS and android version, as a way to finance the project.

convolutionbbs commented 7 years ago

I would support it. There is currently a lack of quality voxel editors on the platform. It seems like a natural fit with the apple pencil. I can volunteer to test if needed (ipad pro w/ apple pencil).

guillaumechereau commented 7 years ago

OK, that's good to know. I am quite busy recently, but the next release of goxel should be out soon, after that I might start to work on a mobile version.

guillaumechereau commented 7 years ago

I finally finished the first iPad version! Available on the app store: https://itunes.apple.com/us/app/goxel-3d-voxel-editor/id1259097826 It's free, with an in ad purchase to allow to save the models.

Please let me know if you run into bugs or problems.

YarlBoro commented 7 years ago

Great news!

convolutionbbs commented 7 years ago

I finally got a chance to download and work with this. Thank you very much! The Apple pencil works great on the iPad pro with this.

One question - is there a way to increase the size of the plane? I can draw voxels outside the plane. I found how to change the orientation of the plane, but not the size.

guillaumechereau commented 7 years ago

Thanks! For the moment we cannot change the grid size. I will try to add this feature before the next release.

meshula commented 7 years ago

Hi! It's quite fun to use on ipad pro with pencil, drawing is very responsive.

I bought the in-app save functionality, unfortunately, hitting the save to gallery button crashes immediately!

guillaumechereau commented 7 years ago

Oh that's bad! Do you have a mac by any chance that you could use to get the crash report? https://developer.apple.com/library/content/qa/qa1747/_index.html

guillaumechereau commented 7 years ago

By the way, people who want to test but don't want or cannot buy the IAP can send me an email: I have a few promo codes I can give away.

meshula commented 7 years ago

If saving an image, the relevant bit is that the app was jetsammed (killed by the Launch Daemon) because:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: TCC, This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
Triggered by Thread:  7
meshula commented 7 years ago

Also, the app seems to be in a spinning main loop:

Event:           wakeups
Wakeups:         45002 wakeups over the last 285 seconds (158 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds
Duration:        285.25s
Steps:           105

That's not related to the crash, but means it will consume a lot more battery power than it needs to.

guillaumechereau commented 7 years ago

Thanks! The export bug should be easy enough to fix. I will make a new release as soon as possible, with probably a few other merges from trunk.

For the spinning main loop, it would indeed be nice to lower the refresh rate when there is no activity. That's something that should also be implemented in the desktop version. That's for a future release.

meshula commented 7 years ago

Just updated the app on my iPad, and saving to gallery now works without crashing! I see an option to save MagicaVoxel and other formats, so huge thanks for that!

An oddity with the gallery save is that it saves the lower left quadrant of the image only. Since I'm on the giant iPad, I wonder if there is a viewport scaling factor that also needs to be taken into account before rendering the image for the gallery.

meshula commented 7 years ago

BTW, your app on iPad with Pencil is insanely good. Hands down the best voxel editor I've tried yet on the platform.

guillaumechereau commented 7 years ago

Ah yes, this might be a bug with retina screen (I only tested retina support on the emulator, I might have missed this). I will try to fix it for the next release. Thanks!

guillaumechereau commented 7 years ago

Should be fixed by now!