Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126270 - sci-libs/vtk should support Off-screen Rendering feature
Summary: sci-libs/vtk should support Off-screen Rendering feature
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 02:50 UTC by kwant
Modified: 2014-01-11 16:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kwant 2006-03-15 02:50:21 UTC
I manage to install VTK 4.2.6 (with -java on x86 and AMD64) and 5.0.0 (with -java on x86). VTK (Visualization toolkit) is able to render direct (OpenGL) or off-screen (Mesa). Direct rendering works perfect for me (both on x86 and AMD64), however I need off-screen rendering (render scene behind the screen). Linux (unix) implementation of off-screen rendering requires Mesa (see: http://www.erdc.hpc.mil/documentation/Tips_&_Tricks/vtk.htm). Unfortunately, this way of rendering has been disabled in both ebuilds.

Q1: is it possible to enable in gentoo off-screen rendering feature in VTK (see http://www.vtk.org/Wiki/VTK:How_I_mangled_Mesa)?

Q2: is it possible hardward accelerated off-screen rendering (e.g. via GeForce hardware with nvidia proprietary drivers)?

Kwant!


<~> ->emerge --info
Portage 2.1_pre6-r1 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo i686)
=================================================================
System uname: 2.6.15-gentoo i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -ffast-math -funroll-loops -pipe -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -ffast-math -funroll-loops -pipe -m3dnow"
DISTDIR="/mnt/1st/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d acl acpi alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups dba dga directfb dri dts dv dvb dvd dvdread eds emboss encode evo exif fbcon flash foomaticdb fortran gd gif gnome gpm gtk gtk2 gtkhtml imlib java jikes jpeg kde libg++ libwww lirc mad mikmod mmx motif mozilla mp3 mpeg mule mysql mythtv nas ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam patented pdflib perl png postgres python qt quicktime readline samba sdl slang spell ssl svg svga tcltk tcpd theora tiff tlen truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs wxwindows x86 xface xinerama xml xml2 xmms xosd xv xvid zlib elibc_glibc kernel_linux linguas_pl userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2006-03-15 16:46:45 UTC
Hi kwant,

Thanks for pointing this out. Would you be able to provide
a set of cmake options that enable off-screen rendering
so I could test it?

Thanks,
Markus
Comment 2 kwant 2006-03-16 02:11:55 UTC
Hi Markus!

The most comprehensive descirption of enabling off-screen rendering I have found on http://www.vtk.org/Wiki/VTK:How_I_mangled_Mesa . There is a descritpion how to build VTK, link it with Mesa (yes, it's neccesery to build Mesa library) and test off-screen rendering.

I can't say whether it works or not on recent gentoo because I didn't test it. The standard cmake setting, however, enable off-screen rendering. Among other it builds vtkMesaRenderer.h include which is necessary to off-screen rendering. I'm wonder, however, how it could build and work without Mesa library (there is no Mesa on my testing box). Eventualy, I didn't test it because of other reason.

Kwant!
Comment 3 Stefan de Konink 2009-10-14 10:07:00 UTC
Can we please make this a useflag or something?

https://mail.enthought.com/pipermail/enthought-dev/2009-March/020135.html
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2009-10-16 01:57:22 UTC
Have you tried the suggested cmake settings with the
vtk-5.4.2 ebuild and does it work as expected?

Thanks,
Markus
Comment 5 François Bissey 2011-12-29 00:53:24 UTC
Bumping this really old bug. I noticed that recent mesa ebuild have a osmesa useflag that should provide this functionality.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2014-01-11 16:56:44 UTC
*vtk-6.0.0 (11 Jan 2014)
+
+  11 Jan 2014; Justin Lecher <jlec@gentoo.org> +vtk-6.0.0.ebuild,
+  +files/vtk-6.0.0-install.patch, +files/vtk-6.0.0-netcdf.patch,
+  +files/vtk-6.0.0-system.patch, +files/vtk-6.0.0-vtkpython.patch,
+  metadata.xml:
+  Version Bump; support offscreen rendering, #126270; unbundle as many as
+  possible libs, #433481
+