Page 1 of 1

Textures and light

Posted: 27 Feb 2013, 16:05
by arnaud
Hello,

I wanted to know whether it is possible to light up a textured shape ?
I tried with the concrete static texture provided by default and a spotlight but everything else is lighted but my textured shape...

Thanks by advance for your answer.
Arnaud Leleve

Re: Textures and light

Posted: 27 Feb 2013, 16:21
by coppelia
Hello Arnaud,

Yes, you can do that. In the texture dialog, just click "modulate colors". The texture will then be modulated with the shape color, and be influenced by lighting.

Cheers

Re: Textures and light

Posted: 27 Feb 2013, 17:12
by arnaud
Already tried but without effect, sorry; perhaps another parameter ?

here is a screenshot:
http://www.tiikoni.com/tis/view/?id=e0199b8

Cheers

Re: Textures and light

Posted: 27 Feb 2013, 17:59
by coppelia
Oh, it might be another reason, not really sure since I can't regognize much in the picture:

If your object is composed by very large triangles, then local lighting might not be taken into account: openGl calculates the lighting on a triangle by interpolating the lighting at its corners. If the corners lie far away from the light source, the triangle won't get lit.

Your option is to divide the shape into smaller triangles: select your shape, enter the triangle edit mode, then click a couple of times "Subdivide largest triangles". Then leave the triangle edit mode again.

Does that help?

Re: Textures and light

Posted: 28 Feb 2013, 09:18
by arnaud
Hi,

Good answer ! It works.

Thanks very much.

Yours