Page 1 of 1

Problem of repetition of texture

Posted: Sun Aug 28, 2011 6:31 am
by SCHMUMS
Good evening everyone,
I have trouble with texture in my C4D scene. Indeed, the logo (Citroen) is properly plated, and appears well when I start rendering in C4D. Out when I export my scene and start rendering in indigo logo apara duplicated. (See screenshots) I checked my preferences in texture is the "repetition" is not enabled ... I do not see at all or is the problem.
thank you in advance for your help.

Re: Problem of repetition of texture

Posted: Mon Aug 29, 2011 7:20 am
by pixie
AFAIK there's no way to avoid repetion other then conform the texture to a given face.

Re: Problem of repetition of texture

Posted: Mon Aug 29, 2011 7:32 am
by galinette
pixie wrote:AFAIK there's no way to avoid repetion other then conform the texture to a given face.
Actually you can with a shader. It would be a nice feature for exporters to support this!

Etienne

Re: Problem of repetition of texture

Posted: Mon Aug 29, 2011 9:49 am
by SCHMUMS
thank you Galinette!
can you explain the method?
Must you use a shader C4d or Indigo?

Re: Problem of repetition of texture

Posted: Mon Aug 29, 2011 6:49 pm
by Zom-B
SCHMUMS wrote:Must you use a shader C4d or Indigo?
Of cause a Cindigo shader.
the Cindigo ISL Shader allows you to set costume shader code for a material channel.
for a quick workaround you can simply raise the dimension of your texture with a big white border, so repetition wont be a issue on your model...

Anyway a this tilling issue is something I would like to see solved at some point, directly in Indigo core maybe...

Re: Problem of repetition of texture

Posted: Mon Aug 29, 2011 7:15 pm
by galinette
I'm not sure that core support is required since a shader perfectly does it. However, exporter support through a "non-repeat" checkbox that generates a user-masked shader would be great.

You can use the shader below, for instance in the "diffuse" channel. You need to define your image as a shader texture instead of the diffuse texture. Then the diffuse shader uses it. The little formulas just sample the texture at the given texture coordinates after a small clamping to (0,1). I do not know cindigo, so I don't know about shaders and shader textures in cindigo. But this works well in the material editor.

Code: Select all

def eval(vec3 pos) vec3 :
	sample2DTextureVec3(0,clamp(getTexCoords(0), vec2(0.0, 0.0), vec2(1.0, 1.0) ))

Re: Problem of repetition of texture

Posted: Mon Aug 29, 2011 10:33 pm
by SCHMUMS
Merci Galinette pour ta réponse!
comme dis dans mon MP je ne suis pas trs à l'aise en Anglais et pas sur de comprendre correctement tes indications.
Pour resumer je suis passer par Material Editor, nouvelle material (Diffuse), type Shader, j'ai inseré le code que tu m'as communiquer.
Je ne comprends pas trop le reste de tes indications pour eviter les repetitions.
Encore merci de ton aide
Olivier