Re: povexport of vpython materials

Jasper Stolte <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
Bruce, thank you for your prompt reply.

Indeed, I noticed the support for (among others) woods and metals through
the .inc files. However, I believe these materials are purely texture based.
It seems to me povexport only does pov_texture, as I cannot find something
for pov_finish or pov_color. For example, it is not quite clear to me why we
would include colors.inc, since I dont think you can use its color
definitions through the pov_texture variable anyway. Similarly, as far as I
can see, from the metals.inc only the textures can be used, not the colors
or the finishes. The wood example only works because wood only requires
texture, and no finish or color. There is no example that uses the
colors/finishes from the metals.inc or colors.inc macros, and as far as I
can see they cannot be used without modifying povexport to support them
first.

Or maybe I am just completely missing something.. :)
Kind regards,

Jasper


On Sun, May 15, 2011 at 10:27 PM, Bruce Sherwood <[email protected]>wrote:

> There is some support for materials, as indicated in the header to the
> 2009 version of povexport, available in the contributed section of
> vpython.org:
>
> This module exports a VPython scene as POV-Ray scene description code.
> Lights and camera location from the current visual scene are included.
> Optionally, you may specify a list of include files,
>   and pov textures for objects.
> For an example of its use, see 'povexample.py'.
> Currently convex, faces, and points objects are not exported.
> Further documentation is found at the start of the file.
>
> Also see the example program povexample_wood.py, which is included in
> the 2009 povexport package.
>
> The relatively recent objects "text" and "extrusion" are not handled
> by povexport. Ruth Chabay, the originator of povexport, intends to
> bring povexport up to date. The "create_faces()" method for extrusion
> objects was created to make it feasible to export an extrusion to
> povexport (and the text object creates an extrusion, so it too should
> prove to be exportable).
>
> Bruce Sherwood
>
> On Sun, May 15, 2011 at 6:28 AM, Jasper Stolte <[email protected]>
> wrote:
> > Hi guys,
> >
> > It's been a few years since I used vpython, but I'm happy to see there is
> > still activity and development of this useful tool. For my new project
> I'm
> > using povexport, which exports the scenes nicely into pov-ray format.
> > However when I look at the resulting pictures the material information
> seems
> > lost. Everything ends up looking like I selected materials.diffuse for
> it.
> >
> > Digging into the documentation I found that pov-ray uses a 'finish' tag
> to
> > specify things such as reflectivity etc. Tweaking the finish tag
> parameters
> > manually I quickly rendered something which was looking at least
> acceptable.
> > Now my question is whether you guys have experience mapping the vpython
> > materials to the pov-ray finish tag, and if you would be willing to share
> > parameters? Maybe someone has even started improving the povexport module
> to
> > include the finish tag?
> >
> > Kind regards,
> > Jasper
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Visualpython-users mailing list
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay

_______________________________________________
Visualpython-users mailing list
Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/visualpython-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.