Closed Thread Icon

Topic awaiting preservation: POV-Ray: how to use an image as a texture (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11569" title="Pages that link to Topic awaiting preservation: POV-Ray: how to use an image as a texture (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: POV-Ray: how to use an image as a texture <span class="small">(Page 1 of 1)</span>\

 
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 11-02-2001 13:50

ok, i've got my object there in povray, and the texture should be a pic i created in PS.

i tried to do so with texture_map, but somehow it wont work out.

anyone know some other attempt to do this? slime?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-02-2001 14:50

IF you want to take the actual color of the image as the texture, do this:

texture {
pigment {
image_map {
tga "myimage.tga"
once // optional
interpolate 2 // optional, but use it if the image can be seen from nearby
}
}
}

If you want to use a greyscale version of the image as a pattern, that can be a bit tougher.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 11-02-2001 16:10

ok, thanks slime. it works, but it wasnt actually what i wanted, cause the image gets scaled all over the object.

but i think i could solve my problem if there's a possibility to place a picture somewhere in my scene. is it possible?
and can i use transparency? i tried it with my gif, but it uses the matte color to fill the rest.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-02-2001 16:14

First, use they keyword "once" to keep the image from being repeated (unless you *want* it to be repeated). Then, scale, rotate, and translate the texture as necessary to make it the size you want it to be.

For transparency? Well... that's weird, you can use the transmit keyword inside the image_map, with an integer after it specifying the color entry of the gif to use for transparency. Personally, if i want transparency, I just use like a PNG or TGA or something like that.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 11-02-2001 16:37

yepp. it worked! thanks so much slime!

im using png now. but it seems as if the pic gets colored depending on the object-color. as if the pic has a opacity of 70%... this looks kinda strange, cause im using a photo. is there a way to avoid this?

edit: i solved the problem by alternating the opacity in PS

[This message has been edited by GRUMBLE (edited 11-02-2001).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-02-2001 16:49

Sounds like a problem with your PNG...

« BackwardsOnwards »

Show Forum Drop Down Menu