discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Any way to visualise scad files in android

SP
Sanjeev Prabhakar
Mon, Feb 6, 2023 1:52 AM

Is there any way to visualise the openscad file on an android phone or
tablet?
Scorch cad is not workable and doesn't work for complex long codes

Is there any way to visualise the openscad file on an android phone or tablet? Scorch cad is not workable and doesn't work for complex long codes
JS
Jesse Schobben
Mon, Feb 6, 2023 8:51 AM

On 6-2-2023 02:52, Sanjeev Prabhakar wrote:

Is there any way to visualise the openscad file on an android phone or
tablet?
Scorch cad is not workable and doesn't work for complex long codes

It's possible to install the "real" openscad in the Termux app (pkg
install openscad), although that version's currently only 2019.05.
Latest version can be built from source though (but it takes quite a
while to build).

Either setup some X server and run the GUI, or (what I normally do) run
in headless mode and output preview to a .png / render a model, and view
those separately.

Note that the Termux app on the Play store is outdated, because it needs
to target an older Android API version (API > 28 disallows running
executables from data folder, which Termux requires), and the Play store
does not allow uploading such old-target apps anymore.
It's fine to install it via F-Droid though.

  • Jesse
On 6-2-2023 02:52, Sanjeev Prabhakar wrote: > Is there any way to visualise the openscad file on an android phone or > tablet? > Scorch cad is not workable and doesn't work for complex long codes > It's possible to install the "real" openscad in the Termux app (pkg install openscad), although that version's currently only 2019.05. Latest version can be built from source though (but it takes quite a while to build). Either setup some X server and run the GUI, or (what I normally do) run in headless mode and output preview to a .png / render a model, and view those separately. Note that the Termux app on the Play store is outdated, because it needs to target an older Android API version (API > 28 disallows running executables from data folder, which Termux requires), and the Play store does not allow uploading such old-target apps anymore. It's fine to install it via F-Droid though. - Jesse
SP
Sanjeev Prabhakar
Mon, Feb 6, 2023 9:25 AM

Thanks Jesse
Can get some more details as to where to download termux and how to install
openscad

On Mon, 6 Feb, 2023, 2:23 pm Jesse Schobben, openscad@js3.nl wrote:

On 6-2-2023 02:52, Sanjeev Prabhakar wrote:

Is there any way to visualise the openscad file on an android phone or
tablet?
Scorch cad is not workable and doesn't work for complex long codes

It's possible to install the "real" openscad in the Termux app (pkg
install openscad), although that version's currently only 2019.05.
Latest version can be built from source though (but it takes quite a
while to build).

Either setup some X server and run the GUI, or (what I normally do) run
in headless mode and output preview to a .png / render a model, and view
those separately.

Note that the Termux app on the Play store is outdated, because it needs
to target an older Android API version (API > 28 disallows running
executables from data folder, which Termux requires), and the Play store
does not allow uploading such old-target apps anymore.
It's fine to install it via F-Droid though.

  • Jesse

OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks Jesse Can get some more details as to where to download termux and how to install openscad On Mon, 6 Feb, 2023, 2:23 pm Jesse Schobben, <openscad@js3.nl> wrote: > On 6-2-2023 02:52, Sanjeev Prabhakar wrote: > > Is there any way to visualise the openscad file on an android phone or > > tablet? > > Scorch cad is not workable and doesn't work for complex long codes > > > > It's possible to install the "real" openscad in the Termux app (pkg > install openscad), although that version's currently only 2019.05. > Latest version can be built from source though (but it takes quite a > while to build). > > Either setup some X server and run the GUI, or (what I normally do) run > in headless mode and output preview to a .png / render a model, and view > those separately. > > Note that the Termux app on the Play store is outdated, because it needs > to target an older Android API version (API > 28 disallows running > executables from data folder, which Termux requires), and the Play store > does not allow uploading such old-target apps anymore. > It's fine to install it via F-Droid though. > > - Jesse > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JS
Jesse Schobben
Mon, Feb 6, 2023 10:02 AM

On 6-2-2023 10:25, Sanjeev Prabhakar wrote:

Thanks Jesse
Can get some more details as to where to download termux and how to
install openscad

Termux can be downloaded directly from the F-Droid site, or it can be
installed using the F-Droid app (I'd recommend the latter, so you get
updates).

See here for Termux info: https://wiki.termux.com/wiki/Main_Page

Open Termux; it will do a first-time setup. Then you should be good to go:
pkg install openscad
openscad --version

outputs 2023.01.11, looks like it's not outdated after all!

To create a model:
openscad model.scad -o model.stl

The binary openscad in termux unfortunately does not support .png output
(OpenCSG) or .3mf output. To get that, you'd need to build openscad (can
be done in termux too).

For Termux comfort, you may want to install a keyboard with arrow keys
and such. I like Hacker's keyboard:
https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard
https://f-droid.org/packages/org.pocketworkstation.pckeyboard/

  • Jesse

--

  • Jesse
On 6-2-2023 10:25, Sanjeev Prabhakar wrote: > Thanks Jesse > Can get some more details as to where to download termux and how to > install openscad > Termux can be downloaded directly from the F-Droid site, or it can be installed using the F-Droid app (I'd recommend the latter, so you get updates). - Get the F-Droid apk from https://f-droid.org/, and install it. Open the F-Droid app, search  for "termux", and install it. - Or alternatively, just grab the termux apk from https://f-droid.org/en/packages/com.termux/ See here for Termux info: https://wiki.termux.com/wiki/Main_Page Open Termux; it will do a first-time setup. Then you should be good to go: pkg install openscad openscad --version # outputs 2023.01.11, looks like it's not outdated after all! To create a model: openscad model.scad -o model.stl The binary openscad in termux unfortunately does not support .png output (OpenCSG) or .3mf output. To get that, you'd need to build openscad (can be done in termux too). For Termux comfort, you may want to install a keyboard with arrow keys and such. I like Hacker's keyboard: https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard https://f-droid.org/packages/org.pocketworkstation.pckeyboard/ - Jesse -- - Jesse
SP
Sanjeev Prabhakar
Mon, Feb 6, 2023 10:24 AM

Thanks very much Jesse
It is wonderfully explained
Will give it a try

On Mon, 6 Feb, 2023, 3:34 pm Jesse Schobben, openscad@js3.nl wrote:

On 6-2-2023 10:25, Sanjeev Prabhakar wrote:

Thanks Jesse
Can get some more details as to where to download termux and how to
install openscad

Termux can be downloaded directly from the F-Droid site, or it can be
installed using the F-Droid app (I'd recommend the latter, so you get
updates).

See here for Termux info: https://wiki.termux.com/wiki/Main_Page

Open Termux; it will do a first-time setup. Then you should be good to go:
pkg install openscad
openscad --version

outputs 2023.01.11, looks like it's not outdated after all!

To create a model:
openscad model.scad -o model.stl

The binary openscad in termux unfortunately does not support .png output
(OpenCSG) or .3mf output. To get that, you'd need to build openscad (can
be done in termux too).

For Termux comfort, you may want to install a keyboard with arrow keys
and such. I like Hacker's keyboard:

https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard
https://f-droid.org/packages/org.pocketworkstation.pckeyboard/

  • Jesse

--

  • Jesse

OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks very much Jesse It is wonderfully explained Will give it a try On Mon, 6 Feb, 2023, 3:34 pm Jesse Schobben, <openscad@js3.nl> wrote: > On 6-2-2023 10:25, Sanjeev Prabhakar wrote: > > Thanks Jesse > > Can get some more details as to where to download termux and how to > > install openscad > > > Termux can be downloaded directly from the F-Droid site, or it can be > installed using the F-Droid app (I'd recommend the latter, so you get > updates). > - Get the F-Droid apk from https://f-droid.org/, and install it. Open > the F-Droid app, search for "termux", and install it. > - Or alternatively, just grab the termux apk from > https://f-droid.org/en/packages/com.termux/ > > See here for Termux info: https://wiki.termux.com/wiki/Main_Page > > Open Termux; it will do a first-time setup. Then you should be good to go: > pkg install openscad > openscad --version > # outputs 2023.01.11, looks like it's not outdated after all! > > To create a model: > openscad model.scad -o model.stl > > The binary openscad in termux unfortunately does not support .png output > (OpenCSG) or .3mf output. To get that, you'd need to build openscad (can > be done in termux too). > > For Termux comfort, you may want to install a keyboard with arrow keys > and such. I like Hacker's keyboard: > > https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard > https://f-droid.org/packages/org.pocketworkstation.pckeyboard/ > > - Jesse > > -- > > - Jesse > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
TP
Torsten Paul
Mon, Feb 6, 2023 10:25 AM

On 06.02.23 02:52, Sanjeev Prabhakar wrote:

Scorch cad is not workable and doesn't work for complex long codes

I don't know if it works better (or at all) on Android, but you
could try one of the WASM versions, e.g.

https://ochafik.com/openscad/#

ciao,
Torsten.

On 06.02.23 02:52, Sanjeev Prabhakar wrote: > Scorch cad is not workable and doesn't work for complex long codes I don't know if it works better (or at all) on Android, but you could try one of the WASM versions, e.g. https://ochafik.com/openscad/# ciao, Torsten.
SP
Sanjeev Prabhakar
Mon, Feb 6, 2023 10:44 AM

Thanks will check if it works

On Mon, 6 Feb, 2023, 3:56 pm Torsten Paul, Torsten.Paul@gmx.de wrote:

On 06.02.23 02:52, Sanjeev Prabhakar wrote:

Scorch cad is not workable and doesn't work for complex long codes

I don't know if it works better (or at all) on Android, but you
could try one of the WASM versions, e.g.

https://ochafik.com/openscad/#

ciao,
Torsten.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks will check if it works On Mon, 6 Feb, 2023, 3:56 pm Torsten Paul, <Torsten.Paul@gmx.de> wrote: > On 06.02.23 02:52, Sanjeev Prabhakar wrote: > > Scorch cad is not workable and doesn't work for complex long codes > > I don't know if it works better (or at all) on Android, but you > could try one of the WASM versions, e.g. > > https://ochafik.com/openscad/# > > ciao, > Torsten. > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
SP
Sanjeev Prabhakar
Tue, Feb 7, 2023 3:21 AM

Yesterday I tried both the approaches
With f-droid although latest version of openscad was installed, but could
not be of much use as there was no gui support and I have no experience
working with command line only.

Wasm somehow did not work

Finally found an app andronix in Google playstore

This has helped converting my samsung tab to a PC like experience with
ubuntu xfce.

Till now everything is working fine.

Openscad version in this is 2019 but there is no issue as I am working
through python and even the most complex models could be rendered without
any problem

On Mon, 6 Feb, 2023, 4:14 pm Sanjeev Prabhakar, sprabhakar2006@gmail.com
wrote:

Thanks will check if it works

On Mon, 6 Feb, 2023, 3:56 pm Torsten Paul, Torsten.Paul@gmx.de wrote:

On 06.02.23 02:52, Sanjeev Prabhakar wrote:

Scorch cad is not workable and doesn't work for complex long codes

I don't know if it works better (or at all) on Android, but you
could try one of the WASM versions, e.g.

https://ochafik.com/openscad/#

ciao,
Torsten.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Yesterday I tried both the approaches With f-droid although latest version of openscad was installed, but could not be of much use as there was no gui support and I have no experience working with command line only. Wasm somehow did not work Finally found an app andronix in Google playstore This has helped converting my samsung tab to a PC like experience with ubuntu xfce. Till now everything is working fine. Openscad version in this is 2019 but there is no issue as I am working through python and even the most complex models could be rendered without any problem On Mon, 6 Feb, 2023, 4:14 pm Sanjeev Prabhakar, <sprabhakar2006@gmail.com> wrote: > Thanks will check if it works > > > > On Mon, 6 Feb, 2023, 3:56 pm Torsten Paul, <Torsten.Paul@gmx.de> wrote: > >> On 06.02.23 02:52, Sanjeev Prabhakar wrote: >> > Scorch cad is not workable and doesn't work for complex long codes >> >> I don't know if it works better (or at all) on Android, but you >> could try one of the WASM versions, e.g. >> >> https://ochafik.com/openscad/# >> >> ciao, >> Torsten. >> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >
SP
Sanjeev Prabhakar
Wed, Feb 8, 2023 2:58 AM

I did a screen recording to show how it works on an android tablet.

It works great
https://github.com/sprabhakar2006/openSCAD/blob/main/Screen%20recording.mp4

On Tue, 7 Feb, 2023, 8:51 am Sanjeev Prabhakar, sprabhakar2006@gmail.com
wrote:

Yesterday I tried both the approaches
With f-droid although latest version of openscad was installed, but could
not be of much use as there was no gui support and I have no experience
working with command line only.

Wasm somehow did not work

Finally found an app andronix in Google playstore

This has helped converting my samsung tab to a PC like experience with
ubuntu xfce.

Till now everything is working fine.

Openscad version in this is 2019 but there is no issue as I am working
through python and even the most complex models could be rendered without
any problem

On Mon, 6 Feb, 2023, 4:14 pm Sanjeev Prabhakar, sprabhakar2006@gmail.com
wrote:

Thanks will check if it works

On Mon, 6 Feb, 2023, 3:56 pm Torsten Paul, Torsten.Paul@gmx.de wrote:

On 06.02.23 02:52, Sanjeev Prabhakar wrote:

Scorch cad is not workable and doesn't work for complex long codes

I don't know if it works better (or at all) on Android, but you
could try one of the WASM versions, e.g.

https://ochafik.com/openscad/#

ciao,
Torsten.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I did a screen recording to show how it works on an android tablet. It works great https://github.com/sprabhakar2006/openSCAD/blob/main/Screen%20recording.mp4 On Tue, 7 Feb, 2023, 8:51 am Sanjeev Prabhakar, <sprabhakar2006@gmail.com> wrote: > Yesterday I tried both the approaches > With f-droid although latest version of openscad was installed, but could > not be of much use as there was no gui support and I have no experience > working with command line only. > > Wasm somehow did not work > > Finally found an app andronix in Google playstore > > This has helped converting my samsung tab to a PC like experience with > ubuntu xfce. > > Till now everything is working fine. > > Openscad version in this is 2019 but there is no issue as I am working > through python and even the most complex models could be rendered without > any problem > > > > > > > > On Mon, 6 Feb, 2023, 4:14 pm Sanjeev Prabhakar, <sprabhakar2006@gmail.com> > wrote: > >> Thanks will check if it works >> >> >> >> On Mon, 6 Feb, 2023, 3:56 pm Torsten Paul, <Torsten.Paul@gmx.de> wrote: >> >>> On 06.02.23 02:52, Sanjeev Prabhakar wrote: >>> > Scorch cad is not workable and doesn't work for complex long codes >>> >>> I don't know if it works better (or at all) on Android, but you >>> could try one of the WASM versions, e.g. >>> >>> https://ochafik.com/openscad/# >>> >>> ciao, >>> Torsten. >>> >>> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>