no Python 2.0 bindings for Lightflow until now ...
Hi! I wrote to Jacopo Pantaleoni (jp@lightflowtech.com), the creator of the Lightflow rendering engine (http://www.lightflowtech.com/), if he would recompile the Python bindings for Python 2.0. This was about two weeks ago, but until now I got no answer. Maybe more individuals of us should ask him about this, to give him the feeling of enough interest in having bindings for Python 2.0 available. Be well, Markus
Markus Thanks for the strategic lobbying tip :-) Meanwhile, I would love to hear what you have done and/or woudl liek to do with lightflow. cheers
Jason
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ----- Original Message ----- From: Markus Gritsch <gritsch@iue.tuwien.ac.at> To: <edu-sig@python.org> Sent: Tuesday, January 30, 2001 5:22 PM Subject: [Edu-sig] no Python 2.0 bindings for Lightflow until now ...
Hi!
I wrote to Jacopo Pantaleoni (jp@lightflowtech.com), the creator of the Lightflow rendering engine (http://www.lightflowtech.com/), if he would recompile the Python bindings for Python 2.0. This was about two weeks ago, but until now I got no answer. Maybe more individuals of us should ask him about this, to give him the feeling of enough interest in having bindings for Python 2.0 available.
Be well, Markus
Meanwhile, I would love to hear what you have done and/or woudl liek to do with lightflow.
Well, I was thinking of adding some class(es) to my KineticsKit VPython toy (http://stud4.tuwien.ac.at/~e9326522/KineticsKit/) to produce some *VERY* high quality renderings. OpenGL is ok, and a neccessarity for realtime tasks like interaction with the spring-mass-system, but there is certainly a difference between an OpenGL scene and something Lightflow can produce (http://www.lightflowtech.com/images/bspline2_b.jpg, http://www.lightflowtech.com/images/bspline3_b.jpg, http://www.lightflowtech.com/images/bspline5_b.jpg). If you want, you can take a look at an MPEG made with a previous version of KineticsKit by writing about 400 PovRay scene files: http://stud4.tuwien.ac.at/~e9326522/schwing/15x15_tense10x_SteelBorders_visc osity.mpeg http://stud4.tuwien.ac.at/~e9326522/schwing/11x11_relaxed_fixedBorder.mpeg and http://stud4.tuwien.ac.at/~e9326522/schwing/11x11_relaxed_looseBorder.mpeg are also a bit interesting and nice to watch. Enjoy, Markus
Hi all, I hope you'll forgive this tech-support-like question being posted to a non-tech-support list, but there's been so much discussion about Lightflow here, that I thought someone would be bound to know the answer... I am an enthusiastic (but not so very experienced) pythonista. I just downloaded the lightflow python module for windows (NT in my case). I have python 1.5 installed, but the instructions in the Lightflow documentation don't seem to make much sense to me. <quote from Lightflow\CS\Docs\Chap1.html> Tutorial The following example is one of the simplest possible scenes that can be rendered: a sphere in the empty space. Now start your preferred text editor and type the following text. When you have finished save it in a file, and then start python from a console passing the file name as an input (for example, if you have saved the file as example.py, just type: python example.py). ---------------------------------------------------------------------------- ---- #include < Lightflow/LfLocalSceneProxy.h > void main(void) { LfLocalSceneProxy* s = new LfLocalSceneProxy(); LfArgList list; list.Reset(); list << "position" << LfPoint( 5.0, -5.0, 4.0 ); list << "color" << LfColor( 300.0, 300.0, 300.0 ); s->LightOn( s->NewLight( "point", list ) ); list.Reset(); list << "ka" << LfColor( 0, 0, 0.5 ); list << "kc" << LfColor( 1, 0.5, 0.5 ); list << "kd" << 0.5; list << "km" << 0.1; LfInt plastic = s->NewMaterial( "standard", list ); s->MaterialBegin( plastic ); list.Reset(); list << "radius" << 1.0; s->AddObject( s->NewObject( "sphere", list ) ); s->MaterialEnd(); list.Reset(); list << "file" << "ball1.tga"; LfInt saver = s->NewImager( "tga-saver", list ); s->ImagerBegin( saver ); list.Reset(); list << "eye" << LfPoint( 0, -4, 0 ); list << "aim" << LfPoint( 0, 0, 0 ); LfInt camera = s->NewCamera( "pinhole", list ); s->ImagerEnd(); s->Render( camera, 300, 300 ); delete s; } </quote from lightflow manual> My problem is that this doesn't really look like python to me. I'm guessing it's either c or c++. When i follow the instructions given above the code (i pasted the code into a file exam.py) , i get: Microsoft(R) Windows NT(TM) (C) Copyright 1985-1996 Microsoft Corp. C:\>cd python C:\Python>cd lf C:\Python\lf>ls Lightflow exam.py C:\Python\lf>python exam.py File "exam.py", line 3 void main(void) ^ SyntaxError: invalid syntax Do i need to use gcc to compile this file first? (I have the cygwin port of gcc, but am unfamiliar with its use) I tried, but it wasn't able to find the included header file. While you folks are answering (or not) I'll be trying to get lightflow to work on linux -- maybe this stuff makes more sense there. thanx very much for any information, ~c
Sorry for the clutter. Markus already pointed me in the right direction, and I've been playing with Lightflow (on linux at least), and it's great!!!! ~c |-----Original Message----- |From: edu-sig-admin@python.org [mailto:edu-sig-admin@python.org]On |Behalf Of Charlie Derr |Sent: Wednesday, January 31, 2001 8:24 PM |To: Markus Gritsch; Jason Cunliffe; edu-sig@python.org |Subject: RE: [Edu-sig] no Python 2.0 bindings for Lightflow until now |... | | |Hi all, | I hope you'll forgive this tech-support-like question being |posted to a |non-tech-support list, but there's been so much discussion about Lightflow |here, that I thought someone would be bound to know the answer... | | I am an enthusiastic (but not so very experienced) |pythonista. I just |downloaded the lightflow python module for windows (NT in my case). I have |python 1.5 installed, but the instructions in the Lightflow documentation |don't seem to make much sense to me. | |<quote from Lightflow\CS\Docs\Chap1.html> | |Tutorial |The following example is one of the simplest possible scenes that can be |rendered: a sphere in the empty space. |Now start your preferred text editor and type the following text. When you |have finished save it in a file, and then start python from a console |passing the file name as an input (for example, if you have saved the file |as example.py, just type: python example.py). | | |------------------------------------------------------------------- |--------- |---- | |#include < Lightflow/LfLocalSceneProxy.h > | |void main(void) |{ | LfLocalSceneProxy* s = new LfLocalSceneProxy(); | LfArgList list; | | list.Reset(); | list << "position" << LfPoint( 5.0, -5.0, 4.0 ); | list << "color" << LfColor( 300.0, 300.0, 300.0 ); | s->LightOn( s->NewLight( "point", list ) ); | | list.Reset(); | list << "ka" << LfColor( 0, 0, 0.5 ); | list << "kc" << LfColor( 1, 0.5, 0.5 ); | list << "kd" << 0.5; | list << "km" << 0.1; | LfInt plastic = s->NewMaterial( "standard", list ); | | | s->MaterialBegin( plastic ); | | list.Reset(); | list << "radius" << 1.0; | s->AddObject( s->NewObject( "sphere", list ) ); | | s->MaterialEnd(); | | | list.Reset(); | list << "file" << "ball1.tga"; | LfInt saver = s->NewImager( "tga-saver", list ); | | s->ImagerBegin( saver ); | | list.Reset(); | list << "eye" << LfPoint( 0, -4, 0 ); | list << "aim" << LfPoint( 0, 0, 0 ); | LfInt camera = s->NewCamera( "pinhole", list ); | | s->ImagerEnd(); | | s->Render( camera, 300, 300 ); | | delete s; |} | | | |</quote from lightflow manual> | | | | |My problem is that this doesn't really look like python to me. |I'm guessing |it's either c or c++. When i follow the instructions given above the code |(i pasted the code into a file exam.py) , i get: | |Microsoft(R) Windows NT(TM) |(C) Copyright 1985-1996 Microsoft Corp. | |C:\>cd python | |C:\Python>cd lf | |C:\Python\lf>ls |Lightflow exam.py | |C:\Python\lf>python exam.py | File "exam.py", line 3 | void main(void) | ^ |SyntaxError: invalid syntax | | | |Do i need to use gcc to compile this file first? (I have the |cygwin port of |gcc, but am unfamiliar with its use) I tried, but it wasn't able to find |the included header file. While you folks are answering (or not) I'll be |trying to get lightflow to work on linux -- maybe this stuff makes more |sense there. | | | thanx very much for any information, | ~c | | | |_______________________________________________ |Edu-sig mailing list |Edu-sig@python.org |http://mail.python.org/mailman/listinfo/edu-sig
Hi!
I wrote to Jacopo Pantaleoni (jp@lightflowtech.com), the creator of the Lightflow rendering engine (http://www.lightflowtech.com/), if he would recompile the Python bindings for Python 2.0. This was about two weeks ago, but until now I got no answer. Maybe more individuals of us should ask him about this, to give him the feeling of enough interest in having bindings for Python 2.0 available.
Be well, Markus
Is there a reason why someone else can't do this? Is this close source? --Guido van Rossum (home page: http://www.python.org/~guido/)
Guido van Rossum wrote:
Is there a reason why someone else can't do this? Is this close source?
Yes, unfortunately closed source.
Is Lightflow available as a shared library? In that case it will issue a warning about incompatible API versions when you use it from Python 2.0, but in actuality it's likely that it doesn't use any of the changed APIs, so it'll actually work just fine.
Of course, this is for Unix or Linux; for Windows, the Python DLL name is (unfortunately?) compiled into extensions...
I am currently doing the coding on Win32, because the usage and installation of VPython is much easier on this platform, and for me OpenGL runs smoother on Win32 (which is a shame). Kind regards, Markus
participants (5)
-
Charlie Derr
-
Charlie Derr
-
Guido van Rossum
-
Jason Cunliffe
-
Markus Gritsch