From: Aaron M. <ajm...@al...> - 2010-11-30 17:21:38
|
Vijay, I have also seen this on older hardware (on Windows, at least). The problem goes away when using the legacy shader rendering. Make this change by editing the site_settings.py file (found at C:\Python27\Lib\site-packages\visual for my windows install) and uncommenting the line that reads display.enable_shaders = False. I hope it works for you! Aaron ------------------------------------------------------ Aaron J. Miller, Ph.D. Department of Physics 328 Palenske Hall Albion College, Albion, MI 49224 > > Message: 5 > Date: Mon, 29 Nov 2010 22:20:19 -0700 > From: Bruce Sherwood <bas...@nc...> > Subject: Re: [Visualpython-users] objects only appear as black > silhouettes > To: vis...@li... > Message-ID: > <AAN...@ma...<AANLkTin%2B6...@ma...> > > > Content-Type: text/plain; charset=ISO-8859-1 > > The problem almost certainly is that you need to update your graphics > driver. > > Bruce Sherwood > > On Mon, Nov 29, 2010 at 7:58 PM, Vijay Somers <vij...@gm...> > wrote: > > Hi, > > I'm just trying to run the following simple bouncing ball example from > the > > vpython site: > > > > from visual import * > > > > floor = box (pos=(0,0,0), length=4, height=0.5, width=4, > color=color.blue) > > ball = sphere (pos=(0,4,0), radius=1, color=color.red) > > ball.velocity = vector(0,-1,0) > > dt = 0.01 > > > > while 1: > > ????rate (100) > > ????ball.pos = ball.pos + ball.velocity*dt > > ????if ball.y < ball.radius: > > ????????ball.velocity.y = abs(ball.velocity.y) > > ????else: > > ????????ball.velocity.y = ball.velocity.y - 9.8*dt > > > > It runs without errors, but the floor and ball objects are black, without > > any visible surface detail.? The silhouettes of the objects are visible > if I > > change the background colour to something other than black, but changes > to > > the colour of the objects don't affect anything.? I'm running this on a > > fresh install of Ubuntu 10.04, python 2.6.6, and it says I have version > > 1:5.12-1.1 of vpython. > > > > Any help would be appreciated, > > Thanks, > > Vijay > ___________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > > > |
From: Steve B. <sbe...@gm...> - 2010-11-30 18:51:09
|
Thank you! Works like a charm. The Sun is now orange. Mars is properly red. And Uranus and Neptune are properly blue. In a manner of speaking, you've saved the Solar System! :-) -Steve |
From: Vijay S. <vij...@gm...> - 2010-11-30 21:04:20
|
Thanks, that worked. Does making this change lower my machine's rendering performance while using vpython? On Tue, Nov 30, 2010 at 11:58 AM, Aaron Miller <ajm...@al...> wrote: > Vijay, > > I have also seen this on older hardware (on Windows, at least). The > problem goes away when using the legacy shader rendering. Make this change > by editing the site_settings.py file (found at > C:\Python27\Lib\site-packages\visual for my windows install) and > uncommenting the line that reads display.enable_shaders = False. > > I hope it works for you! > > Aaron > > ------------------------------------------------------ > Aaron J. Miller, Ph.D. > Department of Physics > 328 Palenske Hall > Albion College, Albion, MI 49224 > >> >> Message: 5 >> Date: Mon, 29 Nov 2010 22:20:19 -0700 >> From: Bruce Sherwood <bas...@nc...> >> Subject: Re: [Visualpython-users] objects only appear as black >> silhouettes >> To: vis...@li... >> Message-ID: >> <AAN...@ma...<AANLkTin%2B6...@ma...> >> > >> Content-Type: text/plain; charset=ISO-8859-1 >> >> The problem almost certainly is that you need to update your graphics >> driver. >> >> Bruce Sherwood >> >> On Mon, Nov 29, 2010 at 7:58 PM, Vijay Somers <vij...@gm...> >> wrote: >> > Hi, >> > I'm just trying to run the following simple bouncing ball example from >> the >> > vpython site: >> > >> > from visual import * >> > >> > floor = box (pos=(0,0,0), length=4, height=0.5, width=4, >> color=color.blue) >> > ball = sphere (pos=(0,4,0), radius=1, color=color.red) >> > ball.velocity = vector(0,-1,0) >> > dt = 0.01 >> > >> > while 1: >> > ????rate (100) >> > ????ball.pos = ball.pos + ball.velocity*dt >> > ????if ball.y < ball.radius: >> > ????????ball.velocity.y = abs(ball.velocity.y) >> > ????else: >> > ????????ball.velocity.y = ball.velocity.y - 9.8*dt >> > >> > It runs without errors, but the floor and ball objects are black, >> without >> > any visible surface detail.? The silhouettes of the objects are visible >> if I >> > change the background colour to something other than black, but changes >> to >> > the colour of the objects don't affect anything.? I'm running this on a >> > fresh install of Ubuntu 10.04, python 2.6.6, and it says I have version >> > 1:5.12-1.1 of vpython. >> > >> > Any help would be appreciated, >> > Thanks, >> > Vijay >> ___________________ >> > Visualpython-users mailing list >> > Vis...@li... >> > https://lists.sourceforge.net/lists/listinfo/visualpython-users >> > >> > >> >> > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Bruce S. <bas...@nc...> - 2010-11-30 21:13:51
|
It doesn't affect the speed of rendering. What it does is turn off the attempt to render materials, so that box(color=color.orange, material=materials.wood) displays simply as an orange box, with no wood grain. The connection with my earlier suggestion to update the graphics driver is that graphics cards and drivers that cannot handle these materials may exhibit other problems as well. Bruce Sherwood On Tue, Nov 30, 2010 at 2:04 PM, Vijay Somers <vij...@gm...> wrote: > Thanks, that worked. Does making this change lower my machine's rendering > performance while using vpython? > > On Tue, Nov 30, 2010 at 11:58 AM, Aaron Miller <ajm...@al...> wrote: >> >> Vijay, >> >> I have also seen this on older hardware (on Windows, at least). The >> problem goes away when using the legacy shader rendering. Make this change >> by editing the site_settings.py file (found at >> C:\Python27\Lib\site-packages\visual for my windows install) and >> uncommenting the line that reads display.enable_shaders = False. >> >> I hope it works for you! >> >> Aaron |
From: Vijay S. <vij...@gm...> - 2010-11-30 21:38:51
|
I can live with that materials issue for now, though I understand your point about there possibly being other problems. I looked in to the updating the driver, and as far as I can tell, I have the newest driver for my hardware. That'll probably change later on though, so I'll keep an eye out for an update. Thanks for the heads up. On Tue, Nov 30, 2010 at 4:13 PM, Bruce Sherwood <bas...@nc...> wrote: > It doesn't affect the speed of rendering. What it does is turn off the > attempt to render materials, so that > > box(color=color.orange, material=materials.wood) > > displays simply as an orange box, with no wood grain. The connection > with my earlier suggestion to update the graphics driver is that > graphics cards and drivers that cannot handle these materials may > exhibit other problems as well. > > Bruce Sherwood > > On Tue, Nov 30, 2010 at 2:04 PM, Vijay Somers <vij...@gm...> > wrote: > > Thanks, that worked. Does making this change lower my machine's > rendering > > performance while using vpython? > > > > On Tue, Nov 30, 2010 at 11:58 AM, Aaron Miller <ajm...@al...> > wrote: > >> > >> Vijay, > >> > >> I have also seen this on older hardware (on Windows, at least). The > >> problem goes away when using the legacy shader rendering. Make this > change > >> by editing the site_settings.py file (found at > >> C:\Python27\Lib\site-packages\visual for my windows install) and > >> uncommenting the line that reads display.enable_shaders = False. > >> > >> I hope it works for you! > >> > >> Aaron > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |