|
From: marco b. <mar...@un...> - 2009-08-15 02:14:56
|
Hello, Hello, I am starting to use Python and Visualpython. I am running the first simple program with a 3D animation of a red ball bouncing on a blue floor. I installed Visual 5.11 released for Windows and Python 2.6. The colors are not showing well on the screen. For instance both the ball and the floor are dark blue. Same thing with other example programs using colored objects. I am using Windows XP with 1280 x 800 pixels for the screen, 32 bit. Any hints ?? Thanks for your great job ! Marco |
|
From: Scott D. D. <Sco...@Ac...> - 2009-08-15 17:36:49
|
marco bittelli wrote:
> I am starting to use Python and Visualpython. I am running the first simple
> program with a 3D animation of a red ball bouncing on a blue floor. I
> installed
>
> Visual 5.11 released for Windows and Python 2.6. The colors are not showing
> well on the screen. For instance both the ball and the floor are dark blue.
The human eye is not great with pure blue. You could make it a paler
blue by using a less monochrome color. For example, you could simply go
from a pure blue RGB (0.0, 0.0, 1.0) to increasing the "lightness" by
adding a balanced amount of red and green (for example (.4, .4, 1.0)),
or even pump up green since we are so good at seeing green: (.4, .6, 1).
so, rather than "blue" in the demo, use one of these triples.
It may also be your lighting. You could turn up the ambient some,
(scene.ambient = .4, rather than the .2 default) for example, or add
lights. I think the default lighting has a "hole" from one direction,
are you looking at the dark side of the demo?
to fiddle with all of this, do something simple:
import visual as vp
s = vp.sphere() # make a sphere (default color is white)
s.color = (.5, .6, .7) # try painting the sphere a new color
vp.scene.ambient # see ambient lighting (note it is colored light)
vp.scene.ambient = .4 # Set ambient to an intensity of white
t = vp.sphere(pos=(3,2,1), color=(1,.6,.4)) # create another sphere
--Scott David Daniels
Sco...@Ac...
|
|
From: Kadir H. <kha...@ya...> - 2009-08-15 18:06:12
|
I believe Marco has a problem with materials setting.
It is highly likely that his display adapter does not support new material types, so that they are all
displayed dark blue.
Marco may need to switch materials off in the sitesetings file at the visual directory.
Kadir
________________________________
From: Scott David Daniels <Sco...@Ac...>
To: vis...@li...
Sent: Saturday, August 15, 2009 8:44:59 PM
Subject: Re: [Visualpython-users] visualization of colors
marco bittelli wrote:
> I am starting to use Python and Visualpython. I am running the first simple
> program with a 3D animation of a red ball bouncing on a blue floor. I
> installed
>
> Visual 5.11 released for Windows and Python 2.6. The colors are not showing
> well on the screen. For instance both the ball and the floor are dark blue.
The human eye is not great with pure blue. You could make it a paler
blue by using a less monochrome color. For example, you could simply go
from a pure blue RGB (0.0, 0.0, 1.0) to increasing the "lightness" by
adding a balanced amount of red and green (for example (.4, .4, 1.0)),
or even pump up green since we are so good at seeing green: (.4, .6, 1).
so, rather than "blue" in the demo, use one of these triples.
It may also be your lighting. You could turn up the ambient some,
(scene.ambient = .4, rather than the .2 default) for example, or add
lights. I think the default lighting has a "hole" from one direction,
are you looking at the dark side of the demo?
to fiddle with all of this, do something simple:
import visual as vp
s = vp.sphere() # make a sphere (default color is white)
s.color = (.5, .6, .7) # try painting the sphere a new color
vp.scene.ambient # see ambient lighting (note it is colored light)
vp.scene.ambient = .4 # Set ambient to an intensity of white
t = vp.sphere(pos=(3,2,1), color=(1,.6,.4)) # create another sphere
--Scott David Daniels
Sco...@Ac...
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Visualpython-users mailing list
Vis...@li...
https://lists.sourceforge.net/lists/listinfo/visualpython-users
|
|
From: Bruce S. <Bru...@nc...> - 2009-08-16 05:52:08
|
Neither of you has it quite right. Kadir is correct that the problem is something to do with the graphics card or driver, because Marco was running a standard example (bounce.py), not writing a new program. Because I answered a personal note from Marco before I saw the same post by him in the list, I know that the issue isn't materials but any image whatsoever. He has a laptop, and probably he needs to update his graphics driver, or possibly his graphics card just doesn't support OpenGL properly. Bruce Sherwood Kadir Haldenbilen wrote: > I believe Marco has a problem with materials setting. > > It is highly likely that his display adapter does not support new > material types, so that they are all > displayed dark blue. > > Marco may need to switch materials off in the sitesetings file at the > visual directory. > > Kadir > > ------------------------------------------------------------------------ > *From:* Scott David Daniels <Sco...@Ac...> > *To:* vis...@li... > *Sent:* Saturday, August 15, 2009 8:44:59 PM > *Subject:* Re: [Visualpython-users] visualization of colors > > marco bittelli wrote: > > I am starting to use Python and Visualpython. I am running the first > simple > > program with a 3D animation of a red ball bouncing on a blue floor. I > > installed > > > > Visual 5.11 released for Windows and Python 2.6. The colors are not > showing > > well on the screen. For instance both the ball and the floor are dark > blue. > > The human eye is not great with pure blue. You could make it a paler > blue by using a less monochrome color. For example, you could simply go > from a pure blue RGB (0.0, 0.0, 1.0) to increasing the "lightness" by > adding a balanced amount of red and green (for example (.4, .4, 1.0)), > or even pump up green since we are so good at seeing green: (.4, .6, 1). > so, rather than "blue" in the demo, use one of these triples. > > It may also be your lighting. You could turn up the ambient some, > (scene.ambient = .4, rather than the .2 default) for example, or add > lights. I think the default lighting has a "hole" from one direction, > are you looking at the dark side of the demo? > > to fiddle with all of this, do something simple: > import visual as vp > s = vp.sphere() # make a sphere (default color is white) > s.color = (.5, .6, .7) # try painting the sphere a new color > vp.scene.ambient # see ambient lighting (note it is colored light) > vp.scene.ambient = .4 # Set ambient to an intensity of white > t = vp.sphere(pos=(3,2,1), color=(1,.6,.4)) # create another sphere > > --Scott David Daniels > Sco...@Ac... <mailto:Sco...@Ac...> > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > <mailto:Vis...@li...> > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |