Re: easy 3D graphics for rendering geometry?

2007-11-08 Thread Kjell Magne Fauske
On Nov 8, 6:53 am, gsal <[EMAIL PROTECTED]> wrote:
> What would be the easiest way to go about offering 3D graphics for the
> purpose of rendering geometry?
>
> Suppose engineers (my co-workes) have to design some enclosure,
> nozzle, bracket, or whatever physical part/component, I would like to
> write a program where they can at least see the resulting geometry and
> navigate it, i.e., zoon-in/out, rotate, pan.  On the side, I could
> have data entry fields with the input parameters and when something is
> changed, the graphics can be updated "immediately" (after the
> necessary calculations have been done).
>
> I know I need to learn something, and I am willing, I just need help
> choosing what to learn.
>
> I don't have any experience on this matter, don't know OpenGL, Mesa,
> VTK, VRS, Maya...and all seem to have a steep learning curve. I don't
> know any of the "other" graphics packages more oriented for game/
> scenery/movie development (Panda, etc.), either.
>
> I do know my trig and build my FEA parts parametrically from points,
> to line, to surfaces, to volumes or from volume boolean algebra.
>
> I would like the choice to be some kind of module/API that works
> equally well on Linux as in Windows.
>
> So:
> What would be the easiest way?
> and would it be worth learning?
> or
> is it better to shoot for something not so easy but worth learning?
>
> thanks in advance for any pointers.
>
> gsal

I recommend taking a look at Blender 3D: http://www.blender.org/
It is primarily a modeling, animation and rendering tool. However, my
favorite feature is the Python API which allows you to access most of
the functionality using Python. You can create simple GUIs and create
3d-objects programatically.

- Kjell Magne Fauske

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: YahooQuote 0.1.0

2007-06-26 Thread Kjell Magne Fauske
On Jun 27, 2:21 am, Maurice LING <[EMAIL PROTECTED]> wrote:
> Hi David,
>
> I can't download from your 
> linkhttp://www.freenet.org.nz/python/yahooquote/YahooQuote-0.1.tar.gz
>
> Cheers
> maurice
>

The correct download link seems to be:
http://www.freenet.org.nz/python/yahooquote/YahooQuote-0.1.0.tar.gz

- Kjell Magne Fauske

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Generate report containing pdf or ps figures?

2007-04-23 Thread Kjell Magne Fauske
On Apr 23, 6:30 pm, Grant Edwards <[EMAIL PROTECTED]> wrote:
> I need to be able to generate a PDF report which consists
> mostly of vector images (which I can generate as encapsulated
> Postscript, PDF, or SVG).  What I need is a way to combine
> these figures into a single PDF document.  Right now the
> reports consist entire of these figures, so I just write the
> figures out to temp files and then use os.system() to run
> ghostscript with appropriate options to combine them into a
> single PDF file.
>
> I'd like to be able to add some text and/or place the figures
> in a manner other than one per page in the output document.
>
> I've looked at ReportLab's documentation, but although it
> appears to be able to use bitmap images (e.g jpeg) it doesn't
> appear to be able to use vector images (EPS/PDF/SVG).
>
> Is there a PDF generation library that can place EPS or
> PDF figures on a page?

If you are familiar with LaTeX, an easy solution would be to
automatically generate a LaTeX document that includes your images.
This also allows you to add captions, scale the images and much more.
You can then run the generated document through pdflatex and you have
a nice looking report.

Regards,
Kjell Magne Fauske
http://www.fauskes.net

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyMedia - some questions

2006-12-06 Thread Kjell Magne Fauske
I'm not familiar with PyMedia, but this blog entry should be of
interest:

[Video Blogging using Django and Flash(tm) Video (FLV)]
   http://blog.go4teams.com/?p=56

It describes a toolchain for publishing AVI files as FLV on the web.
ffmpeg is used together with a few other tools, but Python is used to
glue it all togheter.

- Kjell Magne Fauske

Lad wrote:
> Hi,
> Can anyone answer the following questions?
>
> Question 1.
> Can pyMedia create/convert FLV format? I explain in details.
> As I would like
> to publish videos for viewing in a browser , I need a good video
> format.
> I learned that  FLV (Flash(tm) Video) format could be a good choice.
> Or does anybody suggest a better format???
>
>
> Question 2 .
> So, I need to convert a file captured from a video camera into that
> FLV (Flash(tm) Video) format .
> Can pyMedia do that or must I use ffmpeg directly
> like this( to convert from avi to FLV )
> ffmpeg -i [sourcefile.avi] -acodec mp3 -ar 22050 -ab 32 -f flv -s
> 320×240 [destfile.flv]
>
>
> Question 3,
>
> This command creates a simple FLV format file, containing the video and
> audio streams. In addition, FLV files need meta-information such as
> duration, frames, etc. FLV movie players use this information to
> calculate progress bar sliders and allow the user to fast-forward or
> reverse through the video.
> Can PyMedia add such meta- information?
> 
> 
> Thank you for help
> Lad.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python and CMS

2006-10-22 Thread Kjell Magne Fauske
I recommend taking a look at Django [1]. It is not a CMS right out of
the box, but writing one using the Django framework is not that
difficult.

[1] http://www.djangoproject.com/

- Kjell Magne Fauske

Echo wrote:
> I am going to start working on a church website. And since I like
> python, I decided to use WSGI. However, I later found out about all
> the different CMS's in php. So I wondered if there where any in
> python.
>
> Sadly, I only found Plone, skeletonz, and PyLucid (If there is any
> more, please let me know). Of those three, only PyLucid supports WSGI
> and it didn't look very nice to me.
> Both Plone and skeletonz looked very nice. However, they can't be
> hosted on a regular web host(at least to my knowledge) since they run
> as the web server themselves. So hosting would cost more, at least 2-3
> times more from what I've seen.
>
> So I'm thinking of making a python CMS based on WSGI. I'm now trying
> to figure out a few things like the best way to store the content and
> how to manage/use plugins. For storing the content, the only ways I
> know of are as files or in a database. But I'm not sure what would be
> better. And as for how to do plugings, I plan on looking at Plone and
> skeletonz.
>
> As for working with WSGI, I have found
> Colubrid(http://wsgiarea.pocoo.org/colubrid/) and
> Paste(http://pythonpaste.org/). I was wondering if anyone knew of any
> other libraries that make working with WSGI easier. Also, I wondering
> if anyone would like to share their experiences of working with those.
>
>
> ps. I know that this is a big and complicated project. But no matter
> how far I get, it will be fun because its Python:)
>
> --
> "Now that I am a Christian I do not have moods in which the whole
> thing looks very improbable: but when I was an atheist I had moods in
> which Christianity looked terribly probable."
>   -C. S. Lewis
> 
> -Echo

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: 3D Vector Type Line-Drawing Program

2006-10-13 Thread Kjell Magne Fauske
> I'm looking for a program to do line-drawings in 3d, with output to
> postscript or svg or pdf, etc. I would like to describe a scene with
> certain 1-3d elements oriented in 3d space with dashed or colored lines
> and filled or transparent surfaces (or maybe semitransparent).
>

For high quality line drawings using Python you have PyX [1].
Unfortunately it does not come with a 3D library. You probably have too
look elsewere for 3D vector drawings.  Some places to look are:

- Asymptote [2]
- Sketch [3]. A small, simple system for producing line drawings of
two- or three-dimensional solid objects and scenes. Sketch generates
PSTricks code for LaTeX.

Both Asymptote and Sketch requires TeX/LaTeX for typesetting labels and
such. Sketch is probably the closest to what you are looking for. See
[4] for an example of what kind of graphics it can create.

[1] http://pyx.sourceforge.net/
[2] http://asymptote.sourceforge.net/
[3] http://www.frontiernet.net/~eugene.ressler/
[4] http://www.fauskes.net/nb/threedill/

Regards,
Kjell Magne Fauske

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: War chest for writing web apps in Python?

2006-07-28 Thread Kjell Magne Fauske
Django(http://www.djangoproject.com/) is a nice Python based framework
for writing web applications. It comes bundled with a simple web server
that is usefull for local developing. A desciption on how to install
Django on windows can be found at
http://effbot.org/zone/django.htm#installing


- Kjell Magne


Vincent Delporte wrote:
> Hello
>
> I'm thinking of using Python to build the prototype for a business web
> appplication. The development and test machine is XP, while ultimate
> deployment will be on a shared Unix web host.
>
> What would you recommend I get, besides the Python engine itself? Good
> IDE (Kodomo?) ? Some kind of GUI designer? Add-on's? Other tools?
> 
> Thank you.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PIL and PSDraw

2006-03-01 Thread Kjell Magne Fauske
PIL is, as far as i know,primarily a tool for creating and manipulating
raster graphics. If you want to create eps vector graphics with Python
I recommend PyX:
http://pyx.sourceforge.net/
Take a look at the examples to see some of the possibilities:
http://pyx.sourceforge.net/examples/index.html

If you want to create charts and plots, matplotlib is also an excellent
tool: http://matplotlib.sourceforge.net/

Regards,
Kjell Magne Fauske
http://fauskes.net

-- 
http://mail.python.org/mailman/listinfo/python-list