POV-Ray : Newsgroups : povray.object-collection : CoffeeMug 2.0 with textures! Server Time
29 Mar 2024 01:55:24 EDT (-0400)
  CoffeeMug 2.0 with textures! (Message 1 to 1 of 1)  
From: Cousin Ricky
Subject: CoffeeMug 2.0 with textures!
Date: 5 Mar 2015 18:37:57
Message: <54f8e8d5$1@news.povray.org>
I lied.  A couple of function arguments slipped by me in versions 1.3 
and 1.3a, with the result that these versions are not /completely/ 
namespace compliant.  (Although function arguments are not specifically 
mentioned in the compliance rules, they can cause problems.)  The 
offending function, which was not documented in the user manual (and 
which you therefore should not have been using), has been deleted in 
version 2.0.  If you are incurious about the wonderful 2.0 improvements, 
and are satisfied with the severely limited and inadequate texture 
options in version 1.3a, you can fix coffeemug.inc 1.3a by globally 
replacing RMajor and rMinor with CoffeeMug_P0 and CoffeeMug_P1, 
respectively.

However, you will no doubt want to apply patterns and image maps to your 
coffee mugs without going through a whole lot of trouble.  In CoffeeMug 
2.0, the pigment and texture macros can apply general pigments and 
textures to the mug with cylindrical mapping.  Previously, the macros 
could only apply object masks.

But wait, there's more!

  - A macro is added to compute the stacking height of a mug, so
    you can show some mugs neatly stored on a shelf.

  - A shortened prefix has been introduced to save typing and
    unwieldy-looking code.  The old prefix still works, of course.

http://lib.povray.org/searchcollection/index2.php?objectName=CoffeeMug&contributorTag=Cousin%20Ricky


Post a reply to this message

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