Okay, I've understand that, and I have to modify my function to set a node
transparent, accessing to the color data and modifying it...

Thanks a lot for your help :-)

Regards,
   Vincent.

2008/11/19 Sukender <[EMAIL PROTECTED]>

> No, as I said, material is for lighting only. Loog at OpenGL references.
> For instance http://www.falloutsoftware.com/tutorials/gl/gl8.htm . It
> reads: "In OpenGL, by assigning a material property to an object (defined by
> RGB color format), you are theoretically assigning the color which is
> reflected by that object. When assigning a color to an object [...] you are
> merely assigning the property which describes that object's color, it will
> not react with light and will remain just that - the object's color."
>
> Sukender
> PVLE - Lightweight cross-platform game engine -
> http://pvle.sourceforge.net/
>
>
> Le Wed, 19 Nov 2008 17:51:25 +0100, Vincent Bourdier <
> [EMAIL PROTECTED]> a écrit:
>
> > If I make a setcolor(R,G,B,0.5) the transparency is OK, so I can assume
> this
> > will be OK dynamically.
> >
> > But for the moment I use a setOpacity function, based on material...
> > If there is no way to use this function, I'll try directly on the
> > tranparency component of the color... but if it possible to use it, I
> would
> > prefer.
> >
> >
> > 2008/11/19 Sukender <[EMAIL PROTECTED]>
> >
> >> Try to assign a signle color and BIND_OVERALL-it to the sphere. Change
> then
> >> the transparency dynamically, and tell me what happens!
> >>
> >> Sukender
> >> PVLE - Lightweight cross-platform game engine -
> >> http://pvle.sourceforge.net/
> >>
> >>
> >> Le Wed, 19 Nov 2008 17:32:52 +0100, Vincent Bourdier <
> >> [EMAIL PROTECTED]> a écrit:
> >>
> >> > Hi,
> >> >
> >> > 2008/11/19 Sukender <[EMAIL PROTECTED]>
> >> >
> >> >> > Yes, I have a partially white sphere. I cannot set specular OFF, I
> >> need
> >> >> it
> >> >> > for others nodes in the scene. I cannot modify light in fact.
> >> >> > So I need to change skymap parameters.
> >> >>
> >> >> Yes, set the material of your sky sphere to have no specular
> component.
> >> >>
> >> >>
> >> >> > If I put lighting OFF, the opacity do not seems to work...
> >> >>
> >> >> Did you use GL_BLEND and TRANSPARENT_BIN as David said ?
> >> >> Try to set a color for the vertices (forget about the material,
> that's
> >> for
> >> >> lighting).
> >> >>
> >> >
> >> > Okay, it changes the color, that's true. With this, I do not need no
> >> > material anymore. But ... (see next)
> >> >
> >> >>
> >> >>
> >> >> > How can I combine : no ligthing area visible on skymap  and
>  opacity
> >> >> which
> >> >> > can be changed ?
> >> >>
> >> >> I don't understand your sentence... (sorry). Do you mean you wish
> your
> >> sky
> >> >> sphere to have a transparency that you change over time?
> >> >> If so, there nothing special to do. Just try to make transparency
> work
> >> when
> >> >> disable lighting.
> >> >>
> >> >
> >> > Exactly ! ...But to change opacity I use material to set my own
> >> transparency
> >> > value... So I need material to do that.
> >> >
> >> > So for now, the problem is : I need material to change opacity value
> >> along
> >> > the time, and I need no material to avoid lighting on the sphere...
> >> >
> >> > Nice dilemma, isn't it ? :-(
> >> >
> >> > thanks,
> >> >
> >> >    Vincent.
> >> >
> >> >
> >> >>
> >> >> > Thanks for help.
> >> >>
> >> >> De rien (= you're welcome = de nada = etc.).
> >> >>
> >> >>
> >> >> Sukender
> >> >> PVLE - Lightweight cross-platform game engine -
> >> >> http://pvle.sourceforge.net/
> >> >>
> >> >>
> >> >> >> Hi Vincent,
> >> >> >>
> >> >> >> I'm not sure I understand... do you mean your blue sky sphere
> appears
> >> >> >> partially white because of lighting? If yes, try disabling
> specular
> >> >> >> components (on both light and sphere material if needed), this may
> be
> >> >> that
> >> >> >> white spot. Or did you set light colors components >1?
> >> >> >> And as far that I know, opacity is not related to lighting: you
> can
> >> have
> >> >> a
> >> >> >> semi-transparent sphere with lighting disabled.
> >> >> >>
> >> >> >> Sukender
> >> >> >> PVLE - Lightweight cross-platform game engine -
> >> >> >> http://pvle.sourceforge.net/
> >> >> >>
> >> >> >> Le Wed, 19 Nov 2008 16:28:41 +0100, Vincent Bourdier <
> >> >> >> [EMAIL PROTECTED]> a écrit:
> >> >> >>
> >> >> >> > Hi,
> >> >> >> >
> >> >> >> > Making a new king of skymap, I have this problem : the light
> >> source,
> >> >> >> closer
> >> >> >> > to the skymap (sphere with blue material only),  make it render
> >> white,
> >> >> >> > because of the lighting...
> >> >> >> > I want to obtain the same thing without this white area...
> >> >> >> >
> >> >> >> > I need to manage opacity of this sphere, so Lighting ON seems to
> be
> >> >> >> > necessary, no ?
> >> >> >> >
> >> >> >> > The fact is I need a coloredsphere, not having this lighting
> area
> >> >> >> becoming
> >> >> >> > white, and able to be set transparent.
> >> >> >> >
> >> >> >> > Any Idea ?
> >> >> >> >
> >> >> >> > I've tried changing lighting ON/OFF, material FRONT, BACK, FRONT
> >> and
> >> >> >> BACK,
> >> >> >> > Emission component, Ambiant component...
> >> >> >> >
> >> >> >> > Thanks.
> >> >> >> >
> >> >> >> > Regards,
> >> >> >> >    Vincent.
> >> >> >>
> >> >> >> _______________________________________________
> >> >> >> osg-users mailing list
> >> >> >> [email protected]
> >> >> >>
> >> >>
> >>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >> >>
> >> >> _______________________________________________
> >> >> osg-users mailing list
> >> >> [email protected]
> >> >>
> >>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >>
> >> _______________________________________________
> >> osg-users mailing list
> >> [email protected]
> >>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to