POV-Ray : Newsgroups : povray.general : texturing a prism Server Time
26 Nov 2024 13:35:01 EST (-0500)
  texturing a prism (Message 1 to 4 of 4)  
From: optima
Subject: texturing a prism
Date: 14 Aug 2010 12:10:00
Message: <web.4c66bec38faaad9c6556a6ea0@news.povray.org>
Hi,

I use following texture statement on mesh models and it works but when I apply
same code to prism object it look like broken glass.

union{
union{prism {linear_spline 0,75,7
<9.950001,80>, <0,70>, <0,0>, <80,0>, <80,70>, <70.05,80>, <9.950001,80>

texture {pigment {image_map {jpeg "A353_teak.jpg"}scale 1 } finish {phong 1
ambient 0.6 reflection 0}}}

rotate<-0,0,180>
translate<0,75,0>}
rotate y * 360 translate <-208.6907,10,208>}

Can you tell me what is wrong with above texture method? It must be jpeg
texture.

Sample picture is at
http://www.kitchendesigned.com/public_download/prism_texture.jpg

Appreciate all kinds of help, thank you.


Post a reply to this message

From: Christian Froeschlin
Subject: Re: texturing a prism
Date: 14 Aug 2010 17:33:40
Message: <4c670bb4$1@news.povray.org>
> I use following texture statement on mesh models and it works but when I apply
> same code to prism object it look like broken glass.

It looks like the image currently needs to be repeated 80
times or so to cover your prism. Your mesh might have been
only one unit in size or so. Try replacing the scale 1 in
your texture with scale 80.


Post a reply to this message

From: optima
Subject: Re: texturing a prism
Date: 14 Aug 2010 18:25:01
Message: <web.4c6716ed4d9b09926556a6ea0@news.povray.org>
Christian , thank you for answering

http://www.kitchendesigned.com/public_download/prism_texture2.jpg

yes 80 seems to be the correct number, so what do I need to do? In my app users
may change texture size as they wish. Should I multiply their selected number
with 80?

thanks again


Post a reply to this message

From: Christian Froeschlin
Subject: Re: texturing a prism
Date: 15 Aug 2010 09:36:43
Message: <4c67ed6b$1@news.povray.org>
optima wrote:

> yes 80 seems to be the correct number, so what do I need to do? In my app users
> may change texture size as they wish. Should I multiply their selected number
> with 80?

depends on your app ... what does "texture size" mean there?
Basically an image_map in POV-Ray will always be 1 x 1 units wide
regardless of image size. So you need to correct both for the
intended aspect ratio of the texture and for the scale in
which the geometry is modelled.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.