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
yes
But it is an experimental feature only available in hgpovray, so I'll do some experiments later or put it on the TODO list, maybe this gets merged into pov someday, then re-investigate this integration idea.
Jaime Vives Piqueres
@jaimevives
Ok.
Jakob Flierl
@koppi
bullet-physics-playground/bpp#5
Jaime Vives Piqueres
@jaimevives
I've just tweaked the oranges box scene: stills uses image maps, but I've reduced their sizes and now it's 450k zipped. The images are from mayang, which I've purchased and have permission to redistribute (no more than 30 at once).
Jakob Flierl
@koppi
Can you send me the files via Mail? – I'm currently re-structuring the demo/ directory. This will be a good test for the new tool button "Quick-render current View with POV-Ray"
Jaime Vives Piqueres
@jaimevives
Ok, sent, but see the comments about the lua script...
Jakob Flierl
@koppi

Ok, I just added the files to demo/jaimevives/box-of-oranges, see: bullet-physics-playground/bpp@7fb1b98

And moved demo/08-box-w-oranges.lua to demo/jaimevives/box-of-oranges/box-w-oranges.lua:
bullet-physics-playground/bpp@c1bc003

uhm – I think it would be better to have the pov related files in export/jaimevives/box-of-oranges/ . Need to re-think this.
Jakob Flierl
@koppi
Ok. I think, I've got it: move the contents of box-of-oranges.pov to export/jaimevives/box-of-oranges/settings.inc (without the camera). Will give a try at it, but need to do other real world things first. Cu!
Jakob Flierl
@koppi
Screenshot from 2016-05-03 21-26-14.png

I just moved demo/jaimevives/box-of-oranges/* to export/box-w-oranges, see: bullet-physics-playground/bpp@1ad4219

$ cd export/box-w-oranges
$ povray +d box-w-oranges.ini

But the box-w-oranges.lua needs some tweaking to export the pov sdl for the oranges.. hm

Is there a POV option to make the cubes invisible?
Jakob Flierl
@koppi
Screenshot from 2016-05-03 21-49-39.png
Jakob Flierl
@koppi
bullet-physics-playground/bpp@a13cc58 "no_image no_shadow no_reflection" result:
Screenshot from 2016-05-03 22-07-10.png
Jaime Vives Piqueres
@jaimevives
Very nice... only two problems: somehow the image map on the box got reversed, and the flickering of POV-Ray radiosity is annoying (the only solution would be to use insanely high settings).
I've seen the other one about the rendering and upload from amazon EC2: you are amazingly efficient.
Oh... and I still cannot succesfully compile bpp... tried a lot of things, but I didn't get any clue.
Jakob Flierl
@koppi
@jaimevives I realized too late that the image map got inverted – https://github.com/bullet-physics-playground/bpp/tree/master/export/box-w-oranges – but where to fix this?
Sorry for the segfault, I still dont know why this happens on my other Debian / Jessie Laptop, too.
Here's a quick experiment with spur gears: https://www.youtube.com/watch?v=xy7qDgStMXk
Jaime Vives Piqueres
@jaimevives
That's strange... it's the same exact code I've here and it renders ok. Maybe something to do with the PNG library? In any case, try adding scale <-1,1,1> on that pigment.
Hmmm ...love the gears experiment, and I never thought about it as an application of bpp. I already did some gears scenes in the past, there is something beautiful about them, and would love to make a cyclic animation with lots of them and good rusty metal textures.
Jakob Flierl
@koppi
Screenshot from 2016-05-05 19-12-00.png
Jakob Flierl
@koppi

When I add the scale like so:

texture{
pigment{
image_map{png "logo" interpolate 2}
scale <-1,1,1>
}
}

the image looks like so: ..

Screenshot from 2016-05-05 19-31-37.png
For the segfault – try with installed qt5 debug "apt-get install qtbase5-dbg"
Jaime Vives Piqueres
@jaimevives
Ah, yes... it's not as simple as that, as the text is not centered on the image. Try scale <-1,1,1> translate -.5*x
If do that I get it reversed, so it must work the other way for you.
Lol! I get it now... you have the camera on the opposite side, so you're exposing a flaw on the box uv_mapping by my side. I never checked that the mapping was correct on the other side! :)
Jakob Flierl
@koppi
bullet-physics-playground/bpp@22b88e4 works for now :+1:
Jaime Vives Piqueres
@jaimevives
But will not work if the user rotates the camera around. Will fix it latter and submit a new cajon_POV_geom.inc file.
Jakob Flierl
@koppi

When I run bpp (built with make -f Makefile.Debug) in gdb on Debian / Jessie, I see this:

(gdb) r
Starting program: /home/koppi/tmp/bpp/bpp 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1d7ecdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt
#0  0x00007ffff1d7ecdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1  0x00007ffff7dea9ba in call_init (l=<optimized out>, argc=argc@entry=1, 
    argv=argv@entry=0x7fffffffebd8, env=env@entry=0x7fffffffebe8)
    at dl-init.c:78
#2  0x00007ffff7deaaa3 in call_init (env=0x7fffffffebe8, argv=0x7fffffffebd8, 
    argc=1, l=<optimized out>) at dl-init.c:36
#3  _dl_init (main_map=0x7ffff7ffe1a8, argc=1, argv=0x7fffffffebd8, 
    env=0x7fffffffebe8) at dl-init.c:126
#4  0x00007ffff7ddd1ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x00007fffffffede7 in ?? ()
#7  0x0000000000000000 in ?? ()
(gdb)

Is this similar to your backtrace?

Jakob Flierl
@koppi
can you send me the output of "ldd bpp"?
Jaime Vives Piqueres
@jaimevives

`Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2b5bdfc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt

#0 0x00007ffff2b5bdfc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

#1 0x00007ffff7dea13a in call_init (l=<optimized out>, argc=argc@entry=1,

argv=argv@entry=0x7fffffffdfb8, env=env@entry=0x7fffffffdfc8)
at dl-init.c:78

#2 0x00007ffff7dea223 in call_init (env=<optimized out>,

argv=<optimized out>, argc=<optimized out>, l=<optimized out>)
at dl-init.c:36

#3 _dl_init (main_map=0x7ffff7ffe1c8, argc=1, argv=0x7fffffffdfb8,

env=0x7fffffffdfc8) at dl-init.c:126

#4 0x00007ffff7ddb30a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2

#5 0x0000000000000001 in ?? ()

#6 0x00007fffffffe31c in ?? ()

#7 0x0000000000000000 in ?? ()

Jakob Flierl
@koppi
can you send me the output of "ldd bpp"?
On my Debian/Jessie installation this looks suspicious:
```
$ ldd bpp
    linux-vdso.so.1 (0x00007fff25d1f000)
    libQGLViewer.so.2 => /usr/lib/x86_64-linux-gnu/libQGLViewer.so.2 (0x00007fd3db8d8000)
    libGLEW.so.1.10 => /usr/lib/x86_64-linux-gnu/libGLEW.so.1.10 (0x00007fd3db64c000)
    libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fd3db3dd000)
    libglut.so.3 => /usr/lib/x86_64-linux-gnu/libglut.so.3 (0x00007fd3db192000)
    libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fd3daef8000)
    libBulletSoftBody.so.2.82 => /usr/lib/x86_64-linux-gnu/libBulletSoftBody.so.2.82 (0x00007fd3dacb1000)
    libBulletDynamics.so.2.82 => /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.82 (0x00007fd3daa1f000)
    libBulletCollision.so.2.82 => /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.82 (0x00007fd3da72e000)
    libLinearMath.so.2.82 => /usr/lib/x86_64-linux-gnu/libLinearMath.so.2.82 (0x00007fd3da50e000)
    liblua5.2.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.2.so.0 (0x00007fd3da2db000)
    libluabind.so.0.9.1 => /usr/lib/libluabind.so.0.9.1 (0x00007fd3da0bd000)
    libassimp.so.3 => /usr/lib/libassimp.so.3 (0x00007fd3d9845000)
    libQt5OpenGL.so.5 => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x00007fd3d95ea000)
    libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fd3d8d95000)
    libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fd3d8a37000)
    libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007fd3d87fa000)
    libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fd3d80c4000)
    libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fd3d7987000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd3d776a000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd3d745f000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd3d715d000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd3d6f47000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd3d6b9c000)
    libQtXml.so.4 => /usr/lib/x86_64-linux-gnu/libQtXml.so.4 (0x00007fd3d6954000)
    libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007fd3d6652000)
    libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007fd3d5962000)
    libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007fd3d5472000)
    libXmu.so.6 => /usr/lib/x86_64-linux-gnu/libXmu.so.6 (0x00007fd3d5259000)
    libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007fd3d5049000)
    libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fd3d4e36000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fd3d4af3000)
    libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fd3d48ed000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fd3d46c3000)
    libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fd3d4499000)
    libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fd3d4296000)
    libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fd3d408f000)
    libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fd3d3e8d000)
    libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fd3d3c74000)
    libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fd3d3a6e000)
    libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007fd3d386b000)
    libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007fd3d3668000)
    libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fd3d3460000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fd3d323e000)
    libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007fd3d303c000)
    libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fd3d2e2e000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd3d2c2a000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd3d2a0e000)
    libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fd3d27bb000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fd3d24ac000)
    libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0
Jaime Vives Piqueres
@jaimevives
linux-vdso.so.1 =>  (0x00007ffd08720000)
libQGLViewer.so.2 => /usr/lib/x86_64-linux-gnu/libQGLViewer.so.2 (0x00007f232f7b8000)
libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f232f548000)
libglut.so.3 => /usr/lib/x86_64-linux-gnu/libglut.so.3 (0x00007f232f2f8000)
libGL.so.1 => /usr/lib/nvidia-340/libGL.so.1 (0x00007f232efa8000)
liblua5.2.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.2.so.0 (0x00007f232ed70000)
libBulletDynamics.so.2.81 => /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.81 (0x00007f232eb10000)
libBulletCollision.so.2.81 => /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.81 (0x00007f232e828000)
libLinearMath.so.2.81 => /usr/lib/x86_64-linux-gnu/libLinearMath.so.2.81 (0x00007f232e608000)
libassimp.so.3 => /usr/lib/libassimp.so.3 (0x00007f232dd90000)
libQt5OpenGL.so.5 => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x00007f232db28000)
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f232d2f8000)
libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f232d0b8000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f232ca68000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f232c3c0000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f232c0b8000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f232bdb0000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f232bb98000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f232b7d0000)
libQtXml.so.4 => /usr/lib/x86_64-linux-gnu/libQtXml.so.4 (0x00007f232b588000)
libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007f232b288000)
libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f232a5d0000)
libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f232a0e8000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2329db0000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f2329ba0000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f2329998000)
libnvidia-tls.so.340.96 => /usr/lib/nvidia-340/tls/libnvidia-tls.so.340.96 (0x00007f2329790000)
libnvidia-glcore.so.340.96 => /usr/lib/nvidia-340/libnvidia-glcore.so.340.96 (0x00007f2326b78000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f2326960000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2326758000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2326538000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2326318000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f23260c0000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2325db8000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f2325b90000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f2325938000)
libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f2325530000)
libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f23251b0000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2324fa8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f232fa50000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f2324d00000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f2324af0000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f23248b0000)
libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f2324698000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f2324490000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f2324270000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2324050000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f2323e48000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2323c08000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f23239e8000)
libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f2322178000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.s
Jakob Flierl
@koppi
I see it is linked against libQtGui.so.4 and libQt5Gui.so.5
my guess is, that the package libqglviewer-dev is the cause for this (on Debian/Jessie there's no version for Qt5 only a version for Qt4).
Jaime Vives Piqueres
@jaimevives
That seems to be the case also on ubuntu 14.04... the package description says "This package contains the files needed to develop and compile programs using QGLViewer linked with Qt version 4."
Jakob Flierl
@koppi
I've updated the info at https://github.com/bullet-physics-playground/bpp/wiki/Build-on-Linux – currently testing this on Debian/Jessie..
Jakob Flierl
@koppi
I got it running now on Debian/Jessie with a workaround, see above link with updated info:
In case you have a version of the Debian package libqglviewer installed linked against Qt4 remove as a workaround: sudo apt remove --purge libqglviewer* # this will break other Debian / apps that require libqglviewer linked against Qt4 however.
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