Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Jaime Vives Piqueres
@jaimevives
After the "apt-get source libqglviewer-dev" step, I get lost... it creates a folder and other files:
libqglviewer-2.5.0+dfsg (folder)
libqglviewer_2.5.0+dfsg-1.debian.tar.xz
libqglviewer_2.5.0+dfsg-1.dsc
libqglviewer_2.5.0+dfsg.orig.tar.xz
Jaime Vives Piqueres
@jaimevives
Ok, I compiled and installed the one at libqglviewer-2.5.0+dfsg/QGLViewer ...let's see if bpp works now.
Seems to work now... at least it starts. I'm going for dinner and will start playing later.
Jakob Flierl
@koppi
Screenshot from 2016-05-06 04-51-17.png
Jakob Flierl
@koppi
A marble race with Duplo:
Screenshot from 2016-05-06 16-17-34.png
Jakob Flierl
@koppi
Screenshot from 2016-05-06 16-31-30.png
Jaime Vives Piqueres
@jaimevives
Very nice... seems you're having a lot of fun with openscad.
I only had time to play a bit with the new bpp, and just toyed a bit with the old samples: everything seems to work fine except for my car simulations, which are behaving very different and badly.
Jakob Flierl
@koppi
Screenshot from 2016-05-07 17-01-03.png
I'm currently fixing the POV-Ray mesh2 export..
Jaime Vives Piqueres
@jaimevives
Neat, this can save some external conversions.
BTW, openscad seems to not be working for me... when I load your demos I only get the plane. Should I install something for the openscad support?
Jakob Flierl
@koppi
There was a request on news.povray.org to export only one instance of the mesh2 if multiple Mesh() object instances have the same mesh data. But I did not yet figure out howto implement this.
http://www.openscad.org/ - a "$ sudo apt-get -y install openscad" should fix this.
it's a runtime dependency in BPP.
Jaime Vives Piqueres
@jaimevives
Thanks, I was just trying that...
Jakob Flierl
@koppi
did it work?
Jaime Vives Piqueres
@jaimevives
Hmmm... now loading the scene just makes bpp hang on the open script window.
About the mesh instancing, yes, it should be done that way. But I guess this could be done only if bpp allowed mesh instancing itself (it does? I don't remember).
Jakob Flierl
@koppi
when the gui freezes, wait a bit - openscad is running in the background
mesh instancing is not implemented yet. I need to think a bit howto do this in a correct way.
can you point me to the source code of other programs, that do mesh instancing?
Jaime Vives Piqueres
@jaimevives
I force closed the window... it was running for a few minutes already, so I thought it wasn't working.
Jakob Flierl
@koppi
openscad rendering should be creating the mesh within fractions of seconds.
the gui should not freeze, if you open 00-hello.lua (the version I updated a few minutes ago.)
Jaime Vives Piqueres
@jaimevives
I did try with 01-openscad-template and it worked, but it took a few seconds, and any change to the openscad code freezes bpp for a few seconds too. Looks like it's workig very slow on my system...
Jakob Flierl
@koppi
I could fix the gui freezes by introducing some multithreaded concepts, but I leave this part for now. The openscad package on Ubuntu 16.04 comes in the version 2015.03-1+df.
they have a google summer of code project, where they are trying to do the cgal calculations in a multithreaded manner.
in bpp, once the openscad stl is calculated it gets cached in ~/.cache/*.stl ..
Jakob Flierl
@koppi
in openscad there's the $fn variable that controls the number of facetes that get calculated: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language#.24fa.2C_.24fs_and_.24fn try reduce these and the openscad calculations get quicker.
Jaime Vives Piqueres
@jaimevives
The version in 14.04 is 2014.01.29, so seems a bit old. But the openscad gui works fine and loads the examples very fast.
Jakob Flierl
@koppi
hmm

$ time bash -c 'echo "cube([2,3,4]);" > /tmp/bpp.scad && openscad -o /tmp/bpp.stl /tmp/bpp.scad'

real 0m0.036s
user 0m0.016s
sys 0m0.004s

Jaime Vives Piqueres
@jaimevives
here:
real 0m0.176s
user 0m0.118s
sys 0m0.054s
Jakob Flierl
@koppi
$ openscad -v
OpenSCAD version 2015.03-1
(On Thinkpad x220)
Jaime Vives Piqueres
@jaimevives
OpenSCAD version 2014.01.29
This is an AMD PhenomX6
Jakob Flierl
@koppi
On my Thinkpad X200:
koppi@x200:~$ time bash -c 'echo "cube([2,3,4]);" > /tmp/bpp.scad && openscad -o /tmp/bpp.stl /tmp/bpp.scad'

real    0m0.067s
user    0m0.028s
sys    0m0.000s
koppi@x200:~$ openscad -v
OpenSCAD version 2014.03

koppi@x200:~$ uname -a
Linux x200 3.8-1-xenomai.x86-amd64 #1 SMP Debian 3.8.13-12~1jessie~1da x86_64 GNU/Linux
koppi@x200:~$