Hi Loïc,
textures do not always exist completely on their own. I have been bitten
by GL_MODULATE myself a few times where my textures were darker than I
expected.
Have a look at this:
http://www.opengl.org/resources/faq/technical/texture.htm
21.030 Why doesn't lighting work when I turn on texture mapping?
So you could try:
1) As Robert suggested, add a colorarray and make it all white.
2) If you don't need colorarray, add a default color for whole geom.
3) Investigate other texture modes, eg GL_DECAL or GL_REPLACE.
jp
Simon Loic wrote:
I apologize in advance if I'm saying something silly, but the geometries
concerned have a texture attached. Should they still have a colorarray
defined? What should be this colorArray then?
Thanks a lot Robert.
PS: Just so you know, my first name is Loïc.
On Mon, Dec 8, 2008 at 11:33 AM, Robert Osfield
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
Hi Simon,
Not all your geometries contain colour arrays, so they are randomly
picking up their colour from what ever geometry that had colour arrays
was last applied. Add the missing colour arrays and everything will
work fine.
Robert.
On Mon, Dec 8, 2008 at 10:13 AM, Simon Loic <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
> Hi,
>
> I'm working with osg to design an application for realistic
representation
> of buildings.
> I've been through some weird behavior at rendering and I don't
know how to
> fix it.
> My scene (which represent a building) is composed of several
subparts. The
> problem is that identical subparts are not rendered the same.
Apparently
> when partially rendered (because they get partially out of the
window)
> subparts seem to get darker. Take care I'm not sure of the hint
I'm giving
> here.
> I've attached to this mail one video showing the problem and the
osg file
> that I render.
> Could you please try to replicate the behavior shown in the
video, using the
> provided file.
> If you have any idea of what could lead to this, I will
aprreciate a lot.
> Thank you very much.
> regards,
>
>
>
> --
> Loïc Simon
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
<mailto:osg-users@lists.openscenegraph.org>
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
<mailto:osg-users@lists.openscenegraph.org>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Loïc Simon
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org