Textures and light

Typically: "How do I... ", "How can I... " questions
Post Reply
arnaud
Posts: 3
Joined: 27 Feb 2013, 15:54

Textures and light

Post 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

coppelia
Site Admin
Posts: 10360
Joined: 14 Dec 2012, 00:25

Re: Textures and light

Post 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

arnaud
Posts: 3
Joined: 27 Feb 2013, 15:54

Re: Textures and light

Post by arnaud »

Already tried but without effect, sorry; perhaps another parameter ?

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

Cheers

coppelia
Site Admin
Posts: 10360
Joined: 14 Dec 2012, 00:25

Re: Textures and light

Post 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?

arnaud
Posts: 3
Joined: 27 Feb 2013, 15:54

Re: Textures and light

Post by arnaud »

Hi,

Good answer ! It works.

Thanks very much.

Yours

Post Reply