POV-Ray : Newsgroups : povray.binaries.images : Coffee's On! - My Next CGSphere Server Time
2 Aug 2024 20:21:10 EDT (-0400)
  Coffee's On! - My Next CGSphere (Message 16 to 25 of 35)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: nemesis
Subject: Re: Coffee's On! - My Next CGSphere
Date: 13 Jun 2007 12:30:02
Message: <web.46701a6bfabeec67773c9a3e0@news.povray.org>
man, I feel glad I have brought CGSphere to the attention of the povray
community.  You guys never fail to amaze me with so many different concepts
for spheres over checkered planes in quality images. :)

I thought I'd be able to do something with that, but my imagination simply
isn't up to the task... :P

BTW, I don't see any problem with the coffee liquid:  it's slightly overcome
by the glass reflections, but looks right to me...


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Coffee's On! - My Next CGSphere
Date: 13 Jun 2007 13:25:02
Message: <web.46702777fabeec67c150d4c10@news.povray.org>
"nemesis" <nam### [at] gmailcom> wrote:
> man, I feel glad I have brought CGSphere to the attention of the povray
> community.  You guys never fail to amaze me with so many different concepts
> for spheres over checkered planes in quality images. :)
>
> I thought I'd be able to do something with that, but my imagination simply
> isn't up to the task... :P
>
> BTW, I don't see any problem with the coffee liquid:  it's slightly overcome
> by the glass reflections, but looks right to me...

Thanks.  I often think that I'm out of ideas, at least original ones,  but
occassionally I'll get one I can follow up on (somebody recently did a
toilet before I could put one together...)

-tgq


Post a reply to this message

From: Mike the Elder
Subject: Re: Coffee's On! - My Next CGSphere
Date: 13 Jun 2007 15:15:01
Message: <web.4670418cfabeec679a7054360@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> My latest CGSphere entry (#12) for your approval.

Add me to the list of people who love the image.  I sure hope that opaque
coffee is OK, I've been drinking it that way for decades ;-)

Regards,
Mike C.


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Coffee's On! - My Next CGSphere
Date: 13 Jun 2007 16:05:02
Message: <web.46704d92fabeec67c150d4c10@news.povray.org>
"Mike the Elder" <zer### [at] wyanorg> wrote:
> "Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> > My latest CGSphere entry (#12) for your approval.
>
> Add me to the list of people who love the image.  I sure hope that opaque
> coffee is OK, I've been drinking it that way for decades ;-)
>
> Regards,
> Mike C.

If it's too strong, just add milk.  It's in the fridge.  Or cream if you
like.  But, for the love of pete and everything decent, don't add sugar...


-tgq


Post a reply to this message

From: Davo
Subject: Re: Coffee's On! - My Next CGSphere
Date: 14 Jun 2007 00:43:20
Message: <4670c768@news.povray.org>
Trevor G Quayle wrote:
> My latest CGSphere entry (#12) for your approval.
> Original link: [http://www.cgsphere.com/gallery/details/?submission_id=3288]
> 
> -tgq
> 
> 
> ------------------------------------------------------------------------
> 
I've been lurking here for a little while and am continuously amazed at 
what you guys can do with a raytracer. The attention to detail in this 
is fantastic.

The reflections over the povray and Funn logos, and on the coffee cup 
handle rim change - can I ask how do you do those?

Davo


Post a reply to this message

From: Thomas de Groot
Subject: Re: Coffee's On! - My Next CGSphere
Date: 14 Jun 2007 03:13:00
Message: <4670ea7c@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> schreef in bericht 
news:web.46704d92fabeec67c150d4c10@news.povray.org...
>
> If it's too strong, just add milk.  It's in the fridge.  Or cream if you
> like.  But, for the love of pete and everything decent, don't add sugar...
>

Oh dear! I love black coffee... but I just need some sugar in it  :-)

Thomas


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Coffee's On! - My Next CGSphere
Date: 14 Jun 2007 08:20:02
Message: <web.46713228fabeec67c150d4c10@news.povray.org>
Davo <Dav### [at] Davocom> wrote:
> Trevor G Quayle wrote:
> > My latest CGSphere entry (#12) for your approval.
> > Original link: [http://www.cgsphere.com/gallery/details/?submission_id=3288]
> >
> > -tgq
> >
> >
> > ------------------------------------------------------------------------
> >
> I've been lurking here for a little while and am continuously amazed at
> what you guys can do with a raytracer. The attention to detail in this
> is fantastic.
>
> The reflections over the povray and Funn logos, and on the coffee cup
> handle rim change - can I ask how do you do those?
>
> Davo

For both of those details I (and the stickers on the front of the base) I
used and image map.  I then evaluate the image map as a function and use it
to control both the pigment and normals. For the normals, it is an average
pattern of the normal define the raised look of the lettering and the
different bumpiness of the lettering and glass.  I can post some source if
you would like to see how I did it.

-tgq


Post a reply to this message

From: Davo
Subject: Re: Coffee's On! - My Next CGSphere
Date: 14 Jun 2007 08:47:44
Message: <467138f0@news.povray.org>
> 
> For both of those details I (and the stickers on the front of the base) I
> used and image map.  I then evaluate the image map as a function and use it
> to control both the pigment and normals. For the normals, it is an average
> pattern of the normal define the raised look of the lettering and the
> different bumpiness of the lettering and glass.  I can post some source if
> you would like to see how I did it.
> 
> -tgq
> 
> 
Hi Trevor,

If you could post a bit of the code I'd really like to see it, thanks 
very much.

Dave


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Coffee's On! - My Next CGSphere
Date: 14 Jun 2007 12:20:02
Message: <web.467169a8fabeec67c150d4c10@news.povray.org>
Here is some example source.  This is the mug and it's material (using the
attached image map).  In this example, the image is given a cylindrical
warp, but any kind of transform that is appropriate can be accomodated with
the right functions.
To make the image map, I just created an appropriate sized image file and
used the povlogo.ttf font style for the logo.  I then gave it a blur to
blur the edges so that it makes a rouded bump rather than an abrupt one.

Let me know if you have any questions about this.
//START
#declare MUGLOGO=function{pigment{image_map{png "MUG.png" once interpolate
2} warp{cylindrical} scale 99}}//wrap mug logo cylindrically and scale to
height of mug
#declare
MUGLOGO2=function{select(sqrt(x*x+z*z)-39,1,MUGLOGO(x,y,z).gray)}//Turn
into function (select function makes sure it only appears on outside of mug
object
#declare MMUG=
material{
  texture{
    pigment{function{MUGLOGO2(x,y,z)} colour_map{[0.99 rgb 0][0.99 rgb
<0.7,0.7,0.6>]}  //Apply pigment according to desired logo and background
colours
    }
    finish{
      conserve_energy
      diffuse 0.6
      ambient 0
      reflection{0 1 fresnel on metallic 0}
    }
    normal{
      average
      normal_map{
        [1 function{MUGLOGO2(x,y,z)} normal_map{[0.9 bumps 0.05 scale
0.25][1 bumps .015 scale 8]}]//apply different bumpiness to the logo and
the background
        [1 function{MUGLOGO2(x,y,z)} bump_size -0.5 poly_wave 10]
                      //normal gives the raised appearance to the logo
      }
    }
  }
  interior{
    ior 1.51
    caustics 1
    fade_distance 10
    fade_power 1000
  }
}

#declare CMug=
union{
  union{
    difference{
      cylinder{y,y*95,40}
      cylinder{y*8 y*100 36}
      cylinder{y*6 y*100 34}
      torus{34 2 translate y*8}
      cylinder{0 y*2 34}
      torus{34 2 scale <1,1/2,1> translate y*1}
    }
    torus{38 2 scale <1,2,1> translate y*95}
    torus{38 2 scale <1,1/2,1> translate y*1}
    union{//Handle
      difference{
        torus{34 4}
        intersection{
          plane{-x 0 rotate y*30}
          plane{-x 0 rotate -y*30}
        }
      }
      sphere{x*34 4 rotate y*60}
      sphere{x*34 4 rotate -y*60}
      scale<20/34,2,1>
      rotate x*90
      translate <-51,50,0>
    }
  }
    material{MMUG}
}

//END

-tgq


Post a reply to this message


Attachments:
Download 'mug.png' (54 KB)

Preview of image 'mug.png'
mug.png


 

From: Davo
Subject: Re: Coffee's On! - My Next CGSphere
Date: 14 Jun 2007 17:31:36
Message: <4671b3b8@news.povray.org>
Trevor G Quayle wrote:
> Here is some example source.  This is the mug and it's material (using the
> attached image map).  In this example, the image is given a cylindrical
> warp, but any kind of transform that is appropriate can be accomodated with
> the right functions.
> To make the image map, I just created an appropriate sized image file and
> used the povlogo.ttf font style for the logo.  I then gave it a blur to
> blur the edges so that it makes a rouded bump rather than an abrupt one.
> 
> Let me know if you have any questions about this.

Thanks Trevor, It will take a bit of study before I could ask a serious 
question. There's so little code to create such a realistic effect. 
(There goes this weekend :-)).

Dave


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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