POV-Ray : Newsgroups : povray.newusers : An image_map on the whole box? : Re: An image_map on the whole box? Server Time
29 Jul 2024 06:23:47 EDT (-0400)
  Re: An image_map on the whole box?  
From: gonzo
Date: 22 Jul 2006 01:02:00
Message: <44c1b148@news.povray.org>
MSAB wrote:
> Hi,
> when I use a image_map as a texture for a box, then of course I can't see on
> at least one side of the box the correct image.
> So, my question is, if it is possible, to translate, scale, rotate or
> whatever, to see the image on every side of the box?
> 
> Here's the expample of my problem:
> http://three.fsphost.com/MSAB5/PC_problem.JPG

Try this:
#declare T1 = texture { image_texture here }
	
#declare T2 = texture {
	radial
	texture_map { [.65 T1 ] }
	frequency 4
	rotate y*45
}

#declare Cutoff = .15; // adjust Cutoff to fit vertical corners
#declare T_Cube = texture {
	slope y
	texture_map {
		[0.00     T1 rotate x*90 ]
		[Cutoff   T1 rotate x*90 ]
		[Cutoff   T2  ]
		[1-Cutoff T2  ]
		[1-Cutoff T1 rotate x*90 ]
		[1.00     T1 rotate x*90 ]
	}
}

RG


Post a reply to this message

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