Thursday, October 29, 2009

Python in Linux

배포판 linux에 설치된 python version은 2.4가 대부분이다. 하지만 RPS 14.0에서 지원하는 python API는 python 2.5 을 필요로 한다.

1. download package
http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz

2. unpack the archive
$ tar xvzf Python-2.5.4.tgz

3. change to the Python2.5.4 directory and run
$ ./configure
$ make
$ sudo make install

4. python 실행시 2.5.4로 실행이 되는지 확인. 만약 실행이 안된다면
$ cd /usr/local/bin
$ ln python2.5 python
$ ln -s python-config python2.5-config

Maya.env
PYTHONPATH=$RMANTREE/bin

getenv "PYTHONPATH"
import prman

Linux에서 alfred 실행시 지연되는 현상

현재까지 발견한 문제는 database의 logging 문제. 아래와 같이 수정하면 바로 실행된다.

Edit $RMSTREE/etc/alfred.ini

set alfConfig(database) {MySQL alfsqlserver alfsqldatabase alfsqluser ""}

to

set alfConfig(database) {}

Change Mac Address

$ ifconfig eth0 down
$ ifconfig eth0 hw ether 00:00:00:00:00:00
$ ifconfig eth0 up

or

Add the follow line to /etc/sysconfig/network-scripts/ifcfg-eth0

MACADDR=00:00:00:00:00:00

$ service network restart(or /etc/init.d/network restart)

Sunday, October 25, 2009

Python and PyQt in 3dsMax

http://forums.cgsociety.org/showthread.php?t=816475&textlink&utm_source=newsletter&utm_medium=hot%2Bthreads&utm_term=816475&utm_content=textlink&utm_campaign=20091019

Double Negative's RenderMan Point Cloud Viewer for Maya



http://dneg.github.com

http://forums.cgsociety.org/showthread.php?t=814639&textlink&utm_source=newsletter&utm_medium=hot%2Bthreads&utm_term=814639&utm_content=textlink&utm_campaign=20091019

Double Negative에서 open source software에 동참하면서 그들의 첫번째 project인 RenderMan point cloud viewer for Maya를 공개했다. 예전 SEGA에서 이런 Maya plugin을 만들었지만 공개되지는 않았었다. 뭐... 다른 production에서 내부적으로 이미 만들어 쓰고 있을지는 모르지만 외부에 공개된 것은 이번이 처음인것 같으니 고무적이지 않을 수 없다.

Wednesday, October 21, 2009

Installing cgkit

1. download cgkit-2.0.0
http://sourceforge.net/projects/cgkit/files/cgkit

2. untar file
$ tar xvzf filel.tar

3. cgkit installer is required Boost, SCons. check the packages.
$ yum list boost* scons*

4.
$ cd supportlib
$ scons
$ cd ..
if everything is ok, you can see libcore.a in 'lib' subdirectory.

5.
$ python setup.py install

Installing Komodo License

Copy License File to ~/.ActiveState/

Tuesday, October 20, 2009

R90011

RMS 에서 생성된 rib을 prman.exe로 직접 rendering 하던 중 문제 발생. 정확한 massage는 아래와 같다.

R90011 {SERVERE} Can't open display Image renderman/test/images/test.iff (System Error: No such file or directory)

maya에서 internal renderer는 문제없이 rendering 된다. renderman forum을 뒤져보니 Render Global Settings에서 Full paths를 check on 하란다.


이제야 정상적으로 rendering 된다.

rib을 보니 기본 상대 경로가 절대경로로 바뀌어 들어간다.

ReadArchive "renderman/test/rib/001/xxx.rib"

To

ReadArchive "/home/test/renderman/test/rib/001/xxx.rib"

p.s.
Genarate Rib files per every frames
rman genrib