Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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:~$
On my Thinkpad X220:
koppi@x220:~$ time bash -c 'echo "cube([2,3,4]);" > /tmp/bpp.scad && openscad -o /tmp/bpp.stl /tmp/bpp.scad'

real    0m0.014s
user    0m0.012s
sys    0m0.000s
koppi@x220:~$ openscad -v
OpenSCAD version 2015.03-1
koppi@x220:~$ uname -a
Linux x220 4.4.0-17-generic #33-Ubuntu SMP Tue Mar 29 17:17:28 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
koppi@x220:~$
Jaime Vives Piqueres
@jaimevives
Linux phenomx6 3.16.0-60-generic #80~14.04.1-Ubuntu SMP Wed Jan 20 13:37:48 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

time bash -c 'echo "cube([2,3,4]);" > /tmp/bpp.scad && openscad -o /tmp/bpp.stl /tmp/bpp.scad'
CGAL Cache insert: cube(size=[2,3,4],center=false); (10872 bytes)
CGAL Cache insert: group(){cube(size=[2,3,4],center=false); (10872 bytes)

real 0m0.164s
user 0m0.112s
sys 0m0.048s

Obviously, there is something wrong with openscad on ubuntu 14.04, my system shouldn't be that slow.
Jaime Vives Piqueres
@jaimevives

OpenSCAD version 2015.03-1

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

real 0m0.061s
user 0m0.049s
sys 0m0.010s

Much better! :)

01-openscad-spirals.lua was taking 45 seconds before, now under 1 sec. ;)
Jakob Flierl
@koppi
nice :smile:
Jaime Vives Piqueres
@jaimevives
But still seems slow compared to your x220... what processor it has? i7?
Jakob Flierl
@koppi
koppi@x220:~$ sudo lshw -short
H/W path         Device           Class          Description
============================================================
                                  system         Computer
/0                                bus            Motherboard
/0/0                              memory         7734MiB System memory
/0/1                              processor      Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
/0/100                            bridge         2nd Generation Core Processor Family DRAM Controller
/0/100/2                          display        2nd Generation Core Processor Family Integrated Graphics Control
/0/100/16                         communication  6 Series/C200 Series Chipset Family MEI Controller #1
/0/100/16.3                       communication  6 Series/C200 Series Chipset Family KT Controller
/0/100/19        eth0             network        82579LM Gigabit Network Connection
/0/100/1a                         bus            6 Series/C200 Series Chipset Family USB Enhanced Host Controller
/0/100/1a/1      usb1             bus            EHCI Host Controller
/0/100/1a/1/1                     bus            Integrated Rate Matching Hub
/0/100/1a/1/1/6                   multimedia     Integrated Camera
/0/100/1b                         multimedia     6 Series/C200 Series Chipset Family High Definition Audio Contro
/0/100/1c                         bridge         6 Series/C200 Series Chipset Family PCI Express Root Port 1
/0/100/1c.1                       bridge         6 Series/C200 Series Chipset Family PCI Express Root Port 2
/0/100/1c.1/0    wlan0            network        Centrino Advanced-N 6205 [Taylor Peak]
/0/100/1c.3                       bridge         6 Series/C200 Series Chipset Family PCI Express Root Port 4
/0/100/1c.3/0                     bus            ASM1042 SuperSpeed USB Host Controller
/0/100/1c.4                       bridge         6 Series/C200 Series Chipset Family PCI Express Root Port 5
/0/100/1c.4/0                     generic        MMC/SD Host Controller
/0/100/1d                         bus            6 Series/C200 Series Chipset Family USB Enhanced Host Controller
/0/100/1d/1      usb2             bus            EHCI Host Controller
/0/100/1d/1/1                     bus            Integrated Rate Matching Hub
/0/100/1d/1/1/4                   communication  F5521gw
/0/100/1d/1/1/5                   input          ISD-V4
/0/100/1f                         bridge         QM67 Express Chipset Family LPC Controller
/0/100/1f.2                       storage        6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
/0/100/1f.3                       bus            6 Series/C200 Series Chipset Family SMBus Controller
/0/2             scsi0            storage        
/0/2/0.0.0       /dev/sda         disk           160GB INTEL SSDSA2BW16
/0/2/0.0.0/1     /dev/sda1        volume         449MiB Windows NTFS volume
/0/2/0.0.0/2     /dev/sda2        volume         99MiB Windows FAT volume
/0/2/0.0.0/3     /dev/sda3        volume         15MiB reserved partition
/0/2/0.0.0/4     /dev/sda4        volume         72GiB Windows NTFS volume
/0/2/0.0.0/5     /dev/sda5        volume         67GiB EXT4 volume
/0/2/0.0.0/6     /dev/sda6        volume         8070MiB Linux swap volume
/1               virbr0-nic       network        Ethernet interface
/2               wwx028037ec0200  network        Ethernet interface
Yes i7
just rendered this quickly
but just noticed, that the base of the red holder is not at the floor. needs more investigation.
Jaime Vives Piqueres
@jaimevives
Looking at some CPU benchmarks, my AMD FX-6300 should be faster than your i7-2640M, so something is still wrong here... don't know if just with openscad or maybe my system isn't running at full speed.
Jaime Vives Piqueres
@jaimevives
Can you run povray -benchmark when you have the time and tell me how much it took?
Jakob Flierl
@koppi
just a moment
Jakob Flierl
@koppi
Jaime Vives Piqueres
@jaimevives
Ok, as I expected, the FX-6300 is much faster (3'46''), so it must be something to do with openscad on Ubuntu 14.04. Next step is to try to compile it myself from sources...
Jaime Vives Piqueres
@jaimevives
Just compiled openscad from latest sources, but it doesn't makes any difference. Still the same times.
Jakob Flierl
@koppi

I have replaced the "save png screenshot" tool button, with a "take picture with povray" tool button.

Here's my texture experiments: unfortunately my pov skills are not very well developed.

https://www.youtube.com/watch?v=Vhkk9kgTqds

Jakob Flierl
@koppi

Here's a demo of the "Take picture with POV-Ray" button:

https://www.youtube.com/watch?v=3LzBzupDDyk

Jaime Vives Piqueres
@jaimevives
That could be handy for some quick tests, to see if you wrote correctly the sdl commands.
Jaime Vives Piqueres
@jaimevives
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?
Sorry, bpp is the only 3d program I ever looked into the sources. The only one I can think of is POV-Ray itself. I wonder... doesn't have the bullet library support for this?
Jakob Flierl
@koppi
I'm currently playing with http://slowmovideo.granjow.net/videos.html
Jaime Vives Piqueres
@jaimevives
I found what happens with the oranges box image_map: the camera is flipped on x, so that's why the image gets reversed:
right -image_width/image_height*x
I know it should be that way to match the camera on bpp, so maybe it's better to keep the <-1,1,1> scaling on the image map, and take it into account for future demo scenes.
Jakob Flierl
@koppi
the camera export to pov is still somewhat broken – do we need to add a sky vector to the pov camera? Here's two cases I came across recently:
Screenshot from 2016-05-08 21-39-24.png
Screenshot from 2016-05-08 21-38-17.png
(If you double-click in the opengl view, the camera position gets set to the closest axis)
In that case, pov sometimes flips the image upside down – I don't know where to fix this.
Is it possible to add a matrix transform inside the pov camera statement?