[Radiance-general] rayinit.cal problem

Brajesh Lal brajeshlal at yahoo.com
Tue Jan 20 05:32:17 PST 2009


Thanks Lars and Thomas,

It is working !!
I copied the rayinit.cal and skybright.cal into project folder. Now "rpict: command is working. Image is rendered and i am able to see in HDR shop.

Well i am not a expert unix guy.... just started with cygwin..... to install radiance ....i refered " install.txt" 
Radiance 3R9 for Cygwin 2005-08-03
HOW TO INSTALL IT QUICKLY ...
1. Launch the Cygwin console (double-click on the Cygwin desktop icon)  2. Change to root directory (don't type the dollar sign):    $ cd /
3. Create the "opt" directory:     $ mkdir /opt   4. Create the "radiance" directory inside /opt:     $ cd /opt ,   $ mkdir radiance
5. Copy the radiance_cygwin_3R9.tar.gz inside C:\cygwin\opt\radiance 6. Extract the archive: $ cd radiance .....   used win rar instead of  ..$ tar zxvf radiance_cygwin_3R9.tar.gz  7. Copy the bash_profile file to your home directory:     $ cp bash_profile >> ~/.bash_profile  ( Instead i did copy paste in windows)  8. Close the Cygwin console.  9. Re-launch the Cygwin console. 10. Enjoy!

Now i really want to fix the problem of PATH for future. Therefore i am explaining my directory structure.
Under cygwin\home\abc directory  ..... i have folder  "opt" and files .bashrc , .inputrc, bash_profile, BASH_HISTORY

bash_profile changed content is given below 

# System-wide .bashrc file
# change the directories if necessary
PATH=.:/opt/radiance/cygwin-radiance_dist-3R9/bin:$PATH
RAYPATH=.:/opt/radiance/cygwin-radiance_dist-3R9/lib:$RAYPATH
MANPATH=/opt/radiance/cygwin-radiance_dist-3R9/doc/man:$MANPATH
export PATH RAYPATH MANPATH

then under   cygwin\home\abc\opt\radiance\cygwin-radiance_dist-3R9
 i have "bin", "doc", "lib" and "obj" folders. and my source files ( now it includes rayinit.cal and skybright.cal) are also into   - "cygwin\home\abc\opt\radiance\cygwin-radiance_dist-3R9"

When i relaunch the cygwin console and  execute $PATH .... i get the following info on the console
bash: usr/local/bin: /usr/bin: /bin : /usr/X11R6/bin : /cygdrive/c/Program: No such file or directory.

and when i do $RAYPATH then no message or info comes on the console.

for execution of source file - once i am inside the "cygwin\home\abc\opt\radiance\cygwin-radiance_dist-3R9" ditectory
I do
1. export PATH=$HOME/opt/radiance/cygwin-radiance_dist-3R9/bin/:$PATH ( Without this command i am "oconv" commoand is not executed)
2. oconv command......... 
3. rpict command ............

I suppose my path is set to bin  and it does not point on lib folder? How i can set the path(s) such that i do not use export command

Best Regards, 
Brajesh Lal




________________________________
From: Thomas Bleicher <tbleicher at arcor.de>
To: Radiance general discussion <radiance-general at radiance-online.org>
Sent: Tuesday, January 20, 2009 1:15:15 PM
Subject: Re: [Radiance-general] rayinit.cal problem



On 20 Jan 2009, at 10:47, Brajesh Lal wrote:

# System-wide .bashrc file
# change the directories if necessary
PATH=.:/opt/radiance/bin:$PATH
#RAYPATH=.:/opt/radiance/lib
RAYPATH=.:/opt/radiance/cygwin-radiance_dist-3R9/lib
MANPATH=/opt/radiance/doc/man:$MANPATH
export PATH RAYPATH MANPATH 
still i am getting the same error. How do i fix it to view the rendered image ?
Did you reload ('.' aka 'source') the config file after
you made the changes?

As an immediate help copy the rayinit.cal file into your
project directory (where you execute the rpict command).

Long term fix: As Lars wrote, there is something unclear with
your PATH. First you need to find out whether your settings
take effect or if they are taken from somewhere else. I'm
always puzzled by the variety of bash configuration files
and need to consult the man page to work out what .bash_profile
.bash_login and .bashrc are doing exactly.

To find out if your settings are effective, you should 'log off'
from the cygwin environment and start a new session. This will
reinitialise your environment. Then type

echo $PATH
echo $RAYPATH

at the command prompt and see if the output is what you expect.

If you don't get your settings read the bash man page regarding
the startup sequence and the Cygwin documentation about the
location of configuration files and the environment paths.

That should give you an idea how the path should look like
and where it should go.

 And how do i use rview - for viewing the image ? any other software is required ?

For image viewing you use 'ximage'. 

The 'rview' program has been renamed to 'rvu' (the tutorial
does not reflect that). It provides an interactive preview of
a scene, not an image. You can use it to control your view
settings before you start a long running rpict calculation
with high quality settings. 

I don't know if ximage or rvu work on cygwin but you will need
a running X server if you want to use either. Again, check the
Cygwin documentation on this topic (eg. http://x.cygwin.com).

Regards,
Thomas 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20090120/6f993b13/attachment.html


More information about the Radiance-general mailing list