From: K. -M. A. <mic...@sp...> - 2011-03-23 06:04:02
|
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 |
From: Bruce S. <Bru...@nc...> - 2011-03-23 15:07:22
|
I don't think VPython will help you at all. There is no shadowing in VPython, that being difficult to do in real time. And currently there is no distance dependence of the light from local lights (or from distant lights). Bruce Sherwood On Tue, Mar 22, 2011 at 11:47 PM, K. -Michael Aye <mic...@sp...> wrote: > 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 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Guy K. K. <guy...@au...> - 2011-03-23 21:44:01
|
On Thu, 24 Mar 2011 04:07:13 Bruce Sherwood wrote: > I don't think VPython will help you at all. There is no shadowing in > VPython, that being difficult to do in real time. And currently there > is no distance dependence of the light from local lights (or from > distant lights). Maybe an export of a VPython scene with only one light source to POVray may do the trick? Just a thought ... Guy -- Guy K. Kloss School of Computing + Mathematical Sciences Auckland University of Technology Private Bag 92006, Auckland 1142 phone: +64 9 921 9999 ext. 5032 eMail: Guy...@au... |
From: Bruce S. <Bru...@nc...> - 2011-03-23 23:55:33
|
But I don't think POVray will provide quantitative information about the illumination at various places on the height field, will it? Bruce Sherwood On Wed, Mar 23, 2011 at 3:43 PM, Guy K. Kloss <guy...@au...> wrote: > On Thu, 24 Mar 2011 04:07:13 Bruce Sherwood wrote: >> I don't think VPython will help you at all. There is no shadowing in >> VPython, that being difficult to do in real time. And currently there >> is no distance dependence of the light from local lights (or from >> distant lights). > > Maybe an export of a VPython scene with only one light source to POVray may do > the trick? Just a thought ... > > Guy > > -- > Guy K. Kloss > School of Computing + Mathematical Sciences > Auckland University of Technology > Private Bag 92006, Auckland 1142 > phone: +64 9 921 9999 ext. 5032 > eMail: Guy...@au... > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Anton S. <br...@po...> - 2011-03-24 01:04:23
|
On 2011-3-23 16:55, Bruce Sherwood wrote: > But I don't think POVray will provide quantitative information about > the illumination at various places on the height field, will it? One might say that's the primary thing that Povray does provide (in such a simple case). I don't remember whether Povray ordinarily takes into account the distance between the light source and the object. It's not clear from the inquiry whether that's desired here. It would seem simplest to skip the VP step and write a Povray description of the height-field. Use an orthographic camera! -- Anton Sherwood *\\* www.bendwavy.org *\\* www.zazzle.com/tamfang |
From: C A. R. <an...@ex...> - 2011-03-24 00:28:41
|
On Mar 23, 2011 1:06 AM, "K. -Michael Aye" <mic...@sp...> wrote: > > 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! About 5 years ago I used `microdem` to estimate radio coverage of pre-wimax equipment ... maybe its useful in your case. C Anthony [mobile] |
From: Daπid <dav...@gm...> - 2011-03-24 00:37:16
|
I have been doing some research and I think it is possible to export to Blender somehow. I will try my minions to work on that, or do it myself. Anyway, it is a long-term project. On Thu, Mar 24, 2011 at 1:20 AM, C Anthony Risinger <an...@ex...> wrote: > On Mar 23, 2011 1:06 AM, "K. -Michael Aye" <mic...@sp...> > wrote: >> >> 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! > > About 5 years ago I used `microdem` to estimate radio coverage of pre-wimax > equipment ... maybe its useful in your case. > > C Anthony [mobile] > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: K.-Michael A. <kmi...@gm...> - 2011-03-24 12:52:02
|
On 2011-03-24 02:04:11 +0100, Anton Sherwood said: > On 2011-3-23 16:55, Bruce Sherwood wrote: >> But I don't think POVray will provide quantitative information about >> the illumination at various places on the height field, will it? > > One might say that's the primary thing that Povray does provide (in such > a simple case). > > I don't remember whether Povray ordinarily takes into account the > distance between the light source and the object. It's not clear from > the inquiry whether that's desired here. I can calculate the distance to the sun myself, just need to know which points get light when. So I guess it's finally time to learn Povray *gulp*... > > It would seem simplest to skip the VP step and write a Povray > description of the height-field. Use an orthographic camera! Thanks all for your input! Best regards, Michael |