POV-Ray : Newsgroups : povray.newusers : problems from example file Server Time
22 Dec 2024 11:52:48 EST (-0500)
  problems from example file (Message 1 to 4 of 4)  
From: bnrj rudra
Subject: problems from example file
Date: 20 Jan 2012 12:00:00
Message: <web.4f199cb4ab53a7e852495b7d0@news.povray.org>
Dear all,
I am very new to povray, running it in a x86_64 machine(with binary file) but I
also have glibc for i686

rpm -qa|grep glibc-2
glibc-2.14.90-24.fc16.4.i686
glibc-2.14.90-24.fc16.4.x86_64

I tried to run the first example from
http://library.thinkquest.org/3285/tutorial/simple.html (a direct copy paste of
"The first example scene" there)and the output shows:
$ povray 1.pov
povray: cannot open the user configuration file
/home/rudra/.povray/3.6/povray.conf: No such file or directory
Persistence of Vision(tm) Ray Tracer Version 3.6.1 (g++ 3.4.1 @
 i686-pc-linux-gnu)
This is an official version prepared by the POV-Ray Team. See the
 documentation on how to contact the authors or visit us on the
 internet at http://www.povray.org/.
POV-Ray is based on DKBTrace 2.12 by David K. Buck & Aaron A. Collins
Copyright 1991-2003 Persistence of Vision Team
Copyright 2003-2004 Persistence of Vision Raytracer Pty. Ltd.

Primary POV-Ray 3.5/3.6 Developers: (Alphabetically)
  Chris Cason         Thorsten Froehlich  Nathan Kopp         Ron Parker

Contributing Authors: (Alphabetically)
  Steve Anger         Eric Barish         Dieter Bayer        Steve A. Bennett
  David K. Buck       Nicolas Calimet     Aaron A. Collins    Chris Dailey
  Steve Demlow        Andreas Dilger      Alexander Enzmann   Dan Farmer
  Mark Gordon         Christoph Hormann   Mike Hough          Chris Huff
  Kari Kivisalo       Lutz Kretzschmar    Jochen Lippert      Pascal Massimino
  Jim McElhiney       Douglas Muir        Juha Nieminen       Bill Pulver
  Eduard Schwan       Wlodzimierz Skiba   Robert Skinner      Yvo Smellenbergh
  Zsolt Szalavari     Scott Taylor        Massimo Valentini   Timothy Wegner
  Drew Wells          Chris Young

Other contributors are listed in the documentation.

Support libraries used by POV-Ray:
  ZLib 1.2.1, Copyright 1995-1998 Jean-loup Gailly and Mark Adler
  LibPNG 1.2.5, Copyright 1998-2002 Glenn Randers-Pehrson
  LibJPEG 6b, Copyright 1998 Thomas G. Lane
  LibTIFF 3.6.1, Copyright 1988-1997 Sam Leffler, 1991-1997 SGI
Redirecting Options
  All Streams to console..........On
  Debug Stream to console.........On
  Fatal Stream to console.........On
  Render Stream to console........On
  Statistics Stream to console....On
  Warning Stream to console.......On
Parsing Options
  Input file: 1.pov (compatible to version 3.61)
  Remove bounds........On
  Split unions.........Off
  Library paths:
    /usr/local/share/povray-3.6
    /usr/local/share/povray-3.6/ini
    /usr/local/share/povray-3.6/include
Output Options
  Image resolution 320 by 240 (rows 1 to 240, columns 1 to 320).
  Output file: /home/rudra/povray/1.png, 24 bpp PNG
  Graphic display......On  (gamma: 2.2)
  Mosaic preview.......Off
  CPU usage histogram..Off
  Continued trace......Off
Tracing Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 3
  Light Buffer.........On
  Vista Buffer.........On   Draw Vista Buffer....Off
  Antialiasing.........Off
  Clock value:    0.000  (Animation off)

  0:00:00 Parsing
  0:00:00 Creating bounding slabs 0K tokens
Scene Statistics
  Finite objects:            1
  Infinite objects:          0
  Light sources:             1
  Total:                     2

  0:00:00 Displaying
Using 24 bit TrueColor visual
Using default window background
Mapping background image
X error: BadMatch
X error: BadGC

  0:00:00 Rendering line 1 of 240
X error: BadMatch
X error: BadGC

  0:00:00 Done Tracing
Render Statistics
Image Resolution 320 x 240
----------------------------------------------------------------------------
Pixels:            76800   Samples:           76800   Smpls/Pxl: 1.00
Rays:              76800   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Sphere                           76902           43671     56.79
----------------------------------------------------------------------------
Calls to Noise:                   0   Calls to DNoise:              10
----------------------------------------------------------------------------
Shadow Ray Tests:               102   Succeeded:                     0
----------------------------------------------------------------------------
Smallest Alloc:                   9 bytes
Largest  Alloc:              307208 bytes
Peak memory used:            463437 bytes
Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Total Time:    0 hours  0 minutes  0 seconds (0 seconds)

The problem is, as it tells, no .povray directory  is generated. so no question
of povray.conf. my 1.png is just a dark red circle.
please suggest where I went wrong.


Post a reply to this message

From: Le Forgeron
Subject: Re: problems from example file
Date: 20 Jan 2012 13:37:29
Message: <4f19b469$1@news.povray.org>
Le 20/01/2012 17:56, bnrj.rudra nous fit lire :
> Dear all,
> I am very new to povray, running it in a x86_64 machine(with binary file) but I
> also have glibc for i686

You might enjoy better experience by compiling it locally, as you seems
to be using linux.


> 
> rpm -qa|grep glibc-2
> glibc-2.14.90-24.fc16.4.i686
> glibc-2.14.90-24.fc16.4.x86_64
> 
> I tried to run the first example from
> http://library.thinkquest.org/3285/tutorial/simple.html

> $ povray 1.pov
> povray: cannot open the user configuration file
> /home/rudra/.povray/3.6/povray.conf: No such file or directory

Not a problem, just a warning: you do not have a personal configuration,
so you will be using the system one instead.
(would you have one, the system one would be overloaded with your
setting when used by you).

You can create the missing directories & files if you want:

 $ mkdir -p $HOME/.povray/3.6
 $ touch $HOME/.povray/3.6/povray.conf



> Parsing Options
>   Input file: 1.pov (compatible to version 3.61)

>   Library paths:
>     /usr/local/share/povray-3.6
>     /usr/local/share/povray-3.6/ini
>     /usr/local/share/povray-3.6/include
> Output Options
>   Image resolution 320 by 240 (rows 1 to 240, columns 1 to 320).
>   Output file: /home/rudra/povray/1.png, 24 bpp PNG

> Using 24 bit TrueColor visual
> Using default window background
> Mapping background image
> X error: BadMatch
> X error: BadGC

You need the 32 bit libraries for X11... in shared version.

 $ type povray
 $ ldd ......./povray
might give you the list of needed libraries.


> 
>   0:00:00 Rendering line 1 of 240
> X error: BadMatch
> X error: BadGC
> 

> The problem is, as it tells, no .povray directory  is generated. so no question
> of povray.conf. my 1.png is just a dark red circle.
> please suggest where I went wrong.
> 

Nothing wrong, the sphere is red and dark, at the center of the image,
it looks like a disc. (a circle is the boundary of a disc... )


Post a reply to this message

From: bnrj rudra
Subject: Re: problems from example file
Date: 21 Jan 2012 08:45:01
Message: <web.4f1ac0611fa284559971f8480@news.povray.org>
Thanks for your reply! I am slowly getting the points in povray.


Post a reply to this message

From: Frank Haverkort
Subject: Re: problems from example file
Date: 8 Jan 2013 10:30:01
Message: <web.50ec3aa11fa284552241130c0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 20/01/2012 17:56, bnrj.rudra nous fit lire :
> > Dear all,
> > I am very new to povray, running it in a x86_64 machine(with binary file) but I
> > also have glibc for i686
>
> You might enjoy better experience by compiling it locally, as you seems
> to be using linux.
>
>
> >
> > rpm -qa|grep glibc-2
> > glibc-2.14.90-24.fc16.4.i686
> > glibc-2.14.90-24.fc16.4.x86_64
> >
> > I tried to run the first example from
> > http://library.thinkquest.org/3285/tutorial/simple.html
>
> > $ povray 1.pov
> > povray: cannot open the user configuration file
> > /home/rudra/.povray/3.6/povray.conf: No such file or directory
>
> Not a problem, just a warning: you do not have a personal configuration,
> so you will be using the system one instead.
> (would you have one, the system one would be overloaded with your
> setting when used by you).
>
> You can create the missing directories & files if you want:
>
>  $ mkdir -p $HOME/.povray/3.6
>  $ touch $HOME/.povray/3.6/povray.conf
>
>
>
> > Parsing Options
> >   Input file: 1.pov (compatible to version 3.61)
>
> >   Library paths:
> >     /usr/local/share/povray-3.6
> >     /usr/local/share/povray-3.6/ini
> >     /usr/local/share/povray-3.6/include
> > Output Options
> >   Image resolution 320 by 240 (rows 1 to 240, columns 1 to 320).
> >   Output file: /home/rudra/povray/1.png, 24 bpp PNG
>
> > Using 24 bit TrueColor visual
> > Using default window background
> > Mapping background image
> > X error: BadMatch
> > X error: BadGC
>
> You need the 32 bit libraries for X11... in shared version.
>
>  $ type povray
>  $ ldd ......./povray
> might give you the list of needed libraries.
>

Thank you for this explanation, but maybe someone could elaborate a bit more on
the last point? I'm having exactly the same problem as the original poster,
namely the error:
X error: BadMatch
X error: BadGC

I tried finding the libraries povray depends on, as explained by the previous
poster:
  frank@werk:~/downloads/povray-3.6$ ldd /usr/local/bin/povray,
but this failed:
  not a dynamically executable file

Does anyone know how to solve this? By the way, I'm running Ubuntu 12.10.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.