From: Mike Weiblen (mew++at++mew.cx)
Date: 06/21/2000 10:48:28
I've done something similar for Performer and MPI's Vega with Tcl/Tk
using SWIG.
It's all part of a package called vgTcl, which is free from MPI as a
"vgGift". It's been included on the Vega distribution for quite some
time, and tardists are available at
ftp://ftp.paradigmsim.com/pub/outgoing/vggifts/vgtcl34irix/
While vgTcl is understandably Vega-centric, the Performer portions
("pfTcl") are usable without Vega.
Much source code is included, including the SWIG typemaps which map Pf
structures to targetlanguage-friendly structures. One of the tricky
points is some Pf interfaces have a distinct C bias, and they can be
tricky to map into sensible structures of other languages. For
instance, pfdBuilder takes vert tables in C-arrays; I had to create
helper procs which convert Tcl lists to C-arrays.
Let me know if I can help
Cheers
-- mew
Bram Stolk wrote:
>
> pfGreetings(),
>
> I am currently evaluating the viability of embedding SGI's OpenGL|Performer
> into CWI's Python. Or in other words, extend python with Performer
> functionality.
>
> However, I would really like to know if someone has trodden this path before,
> so I do not have to re-invent the wheel.
>
> Basically, I want to do matrix math and basic operations on geoset, geodes,
> etc. At later stage support for pfChannel also, maybe.
>
> SWIG looks like a good tool to wrap the pf stuff for python use, but
> has it been done before?
>
> many thanks,
>
> Bram Stolk
>
> --
> ------------------------------------------------------------------------------
> Bram Stolk, VR Specialist.
> SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
> email: bram++at++sara.nl Phone +31-20-5923059 Fax +31-20-6683167
>
> "I heard if you play the NT-4.0-CD backwards, you get a satanic message."
> "Thats nothing, if you play it forward, it installs NT-4.0"
> ------------------------------------------------------------------------------
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2b29 : Wed Jun 21 2000 - 10:46:41 PDT