Raytracing VPython

"K. -Michael Aye" <michael.aye-kwwqh14RNzmit6Y/[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
Dear VPython folks,

I was wondering if one can use VPython to do the following:

* take a digital elevation map (DEM) and load it into a numpy array
* place a light source at some coordinate
* check for each point on the DEM if they can see the light source or if they are being shadowed by other points of the DEM?

As some kind of lightning calculations are done in the beautiful sceneries of VPython, I wondered if I can 'abuse' it this way somehow?

In case it can be done, I would need to know though, how accurate this would be, as I would like to calculate solar irradiation times on the DEM coordinates (just to make you interested! ;)

Any suggestions welcome!

Best regards,
Michael

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
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.