You are not logged in.

#1 2005-03-24 00:13:15

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

[new] GTKstereograph (for making stereograms)

Here's a clunky PKGBUILD for the program I used to create my stereograph in an OT thread.  It needs some fine tuning, but this is the quick and dirty one I used:

pkgname=GTKstereograph
pkgver=0.18b
pkgrel=1
pkgdesc="GTK stereograph generator"
url="http://stereograph.sourceforge.net/index.html"
depends=('gtk')
source=(http://download.sourceforge.net/stereograph/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  # Rerun autoconf <- using old versions
  aclocal && autoconf && automake
  # Patch file
  patch -Rp0 < $startdir/gedialogs.patch
  mkdir -p $startdir/pkg/usr/{bin,man/man1,share}
  ./configure --prefix=$startdir/pkg/usr
  make || return 1
  make install
 # make DESTDIR=$startdir/pkg install
}
md5sums=('e908e51f16a510275fca656047031130')

Also, you'll need this patch I made ('gedialog.patch'):

*** GTKstereograph/gtkedit/gedialogs.c  2005-03-22 14:35:19.000000000 -0600
--- GTKstereograph/gtkedit/gedialogs.c~ 2005-03-22 14:35:05.000000000 -0600
***************
*** 23,31 ****
  extern gint from_beginning;

  void help_about_menu (GtkWidget *widget)
  {
!   display_dialog("About ...",NAME " - gtk editornge comes with ABSOLUTELY NO WARRANTY - see GPL.");
  }

  void message ()
  {
--- 23,32 ----
  extern gint from_beginning;

  void help_about_menu (GtkWidget *widget)
  {
!   display_dialog("About ...",NAME " - gtk editorn
! ge comes with ABSOLUTELY NO WARRANTY - see GPL.");
  }

  void message ()
  {

In case of formatting issues when using this patch, just go to the `src/GTKstereograph-0.18b/GTKstereograph/gtkedit` directory, fix lines 27-28 in `gedialog.c` and make your own.

* Use gimp and/or blender to make (in essence) a heightmap.  That's how you make your images stand out before you drop a texture over it.  There are some good online articles on how to do it.  If you need help, just post back and I'll give you some tricks while overlapping your textures.  Use the 'stereograph' backend (not the GTK) client for more flexibility once you get the hang of it.  The '-p' switch is your friend.  Settings of .5-.20 work best.

Offline

Board footer

Powered by FluxBB