|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Peter Raeth" <pet### [at] junocom> wrote:
> "George Pantazopoulos" <go### [at] tomyaboutpage> wrote:
> >
> > Try running "startxwin.bat" in the cygwin prompt first. It should open an
> > xterm window that looks different than the normal cygwin window. Try running
> > pyxrsclient in that shell window instead.
> >
> > I may have left that out of the instructions. Sorry 'bout that. Note that
> > your +o will be ignored by the client.
> >
> > Also, you don't need cygwin to run pyxrsclient. It should work
> > just fine with the Windows version of Python (use IDLE or Pythonwin). For
> > this, you'd need to have PyGTK installed into the Windows Python directory.
> > See the MegaPOV XRS site for links to all the dependencies.
> >
> > I'm real happy to hear how MegaPOV (will shortly) be helping you. Thanks!
> > I'm curious how would one use a rendering program to help calibrate
> > atmospheric sensors.
> >
>
> Not being a physics type, I am not sure just what he is up to. He seems to
> be more interested in raytracing than rendering. His goal is to improve the
> calibration of sensor data correction programs, not the sensors themselves.
>
> Eventually want to work with a native windows version. Started with cygwin
> since that seemed to be what the documentation called for. This lets me
> establish a baseline.
>
> Managed to get startxwin.bat running. Had to modify one line at the top due
> to the way cygwin is installed: SET CYGWIN_ROOT=C:program_filescygwin.
>
> The xwindow came up with a cygwin prompt. In the pyxrsclient directory,
> entered the following command: python pyxrsclient.py +Iwoodbox.pov +V +W800
> +H600 +L/cygdrive/c/program_files/cygwin/tmp/povray-3.6.1/include. The
> povray parameters are the ones used in successful povray and megapov tests.
>
> Received the following error message (had to type it in so I hope it is
> correctly presented:
>
> Traceback (most recent call last):
> File "pyxrsclient.py", line 877 in ?
> g_num_x_tiles = g_parser.getImgWidth() / g_parser.getBlockSize()
> File "pyxrsclient.py", line 131, in getImgWidth
> imgwidth = int(re.search("(?<=[+-]w)[0-9]+", self.cmd).group(0))
> AttributeError: 'NoneType' object has no attribute 'group'
Thanks Peter, you helped find a bug and reminded me I need to work on my
error messages ;-)
It's looking for the image width specifier to contain a lower-case 'w', and
it doesn't recognize your capital '+W'. This may apply to others, but I'd
start with the +w and +h first.
Also, that's interesting.. I was considering using a raytracer for a
physics-based application myself :-)
Hope this helps you,
George
Warp speed parallel renders with MegaPOV XRS:
http://www.gammaburst.net/xrs
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"George Pantazopoulos" <go### [at] tomyaboutpage> wrote:
> Thanks Peter, you helped find a bug and reminded me I need to work on my
> error messages ;-)
>
> It's looking for the image width specifier to contain a lower-case 'w', and
> it doesn't recognize your capital '+W'. This may apply to others, but I'd
> start with the +w and +h first.
>
This is a win-win situation. Am happy to be working through this. Sorry to
not have responded sooner. Last week we were really under the gun to get
our R&D plans finished.
Proceeded with restructuring the command and used: "python pyxrsclient.py
+w800 +h600 +iwoodbox.pov +v +owoodbox.png
+l/cygdrive/c/program_files/cygwin/tmp/povray-3.6.1/include"
Received the following error message: "POV Base dir could not be located.
Path must contain scenes/"
Looking through the python code, this happens when NONE is returned by the
parser. The parser seems to be trying to read the line: g_server_urls = [
("http://localhost:9000",
"/cygdrive/c/program_files/cygwin/tmp/povray-3.6.1") ]
The indicated directory does indeed exist since we installed full povray.
Not being a python expert, maybe I messed up the syntax. Looked back at the
original example but could not spot anything amiss.
Thanks,
Peter.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>
> This is a win-win situation. Am happy to be working through this. Sorry to
> not have responded sooner. Last week we were really under the gun to get
> our R&D plans finished.
>
> Proceeded with restructuring the command and used: "python pyxrsclient.py
> +w800 +h600 +iwoodbox.pov +v +owoodbox.png
> +l/cygdrive/c/program_files/cygwin/tmp/povray-3.6.1/include"
>
> Received the following error message: "POV Base dir could not be located.
> Path must contain scenes/"
>
> Looking through the python code, this happens when NONE is returned by the
> parser. The parser seems to be trying to read the line: g_server_urls = [
> ("http://localhost:9000",
> "/cygdrive/c/program_files/cygwin/tmp/povray-3.6.1") ]
>
> The indicated directory does indeed exist since we installed full povray.
> Not being a python expert, maybe I messed up the syntax. Looked back at the
> original example but could not spot anything amiss.
>
>
Hi Peter,
It's indeed a win-win, thanks! I guess I need to be more clear of this
for new users.
The artist's computer (which runs the client) should have a special
directory structure separate from the POV-Ray distribution.
The *contents* of this directory needs to be duplicated *somewhere* on each
Server computer. The path leading to the Server's copy of PovBaseDir is
freely choosable by the Server administrator.
The computer running the client could have:
/home/themaxx/pov_stuff/
/home/themaxx/pov_stuff/scenes/
/home/themaxx/pov_stuff/include/
Thus, the PovBaseDir *for the client* is /home/themaxx/pov_stuff
---
Now each Server needs to duplicate the contents UNDER pov_stuff:
Server A: (http://localhost:9000)
/home/rob_halford/pov_stuff/
/home/rob_halford/pov_stuff/scenes/
/home/rob_halford/pov_stuff/include/
Server B: (http://localhost:9001)
/home/users/foo/pov_xrs/
/home/users/foo/pov_xrs/scenes/
/home/users/foo/pov_xrs/include/
Server C: (http://localhost:9002)
/home/users/bar/pov_xrs/
/home/users/bar/pov_xrs/scenes/
/home/users/bar/pov_xrs/include/
--
Thus, the config would look like this:
# Server info format.
# -------------------
#
# ("http://server-ip:server-port", /"pov_basedir/for/this/server"),
#
# Edit this variable (last entry should not have a comma):
g_server_urls = [
("http://localhost:9000", "/home/rob_halford/pov_stuff/"),
("http://localhost:9001", "/home/users/foo/pov_xrs/"),
("http://localhost:9002", "/home/users/bar/pov_xrs/")
]
Please let me know if it's still not working or if you have more questions.
PS. I have a new version of the Server and Client on the way. The
installation process is the same.
Thanks,
George
MegaPOV XRS: render faster than light!
http://www.gammaburst.net/xrs
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|