POV-Ray : Newsgroups : povray.binaries.images : Coffee Mug : Re: Coffee Mug Server Time
29 Mar 2024 03:22:12 EDT (-0400)
  Re: Coffee Mug  
From: Cousin Ricky
Date: 29 Jun 2022 17:14:37
Message: <62bcc0bd$1@news.povray.org>
On 2022-06-29 12:59 (-4), MichaelJF wrote:
> Yes, very nice indeed. But uv-mapping would need a mesh-object. With CSG
> it will not work. With CSG an cylindrical image_map would display the
> image at the inside of the cup too. If CSG was used, cutaway_texture may
> be an option to avoid the repetition in the inside of the cup.

An object pigment can be used with the cylindrical warp to avoid the
image on the inside of the mug.  That's how I did my coffee mug:

https://github.com/CousinRicky/POV-CoffeeMug/blob/main/coffeemug.inc

The relevant macros are CoffeeMug_Wrap(), CoffeeMug_Pigment(), and
CoffeeMug_Texture().


Post a reply to this message

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