|
|
Hi,
I'm working on some buttons for a website. It's far from complete but here
is the first result.
I'd like to put some lights in the button so that I get the effect that the
text inside the glass is emitting light. It's should then illuminate the
rest of the button.
So far I haven't found a good method to achieve this. I tried area lights
but the the letters start casting shadows. I've also tried to put some
cilinder with rounded top & bottomwith transparent media around the text.
But this didn't look very nice either.
Anybody has a suggestion how to make text that emits light and how to get a
kind of halo effect around the text?
I also tried lights and looks_like with the text inside but that didn't seem
very realistic either. Looks like a light spot in the center of the text.
Here is the code w media I tried
#declare meditextsfer=material {texture {
pigment {
rgbt <0,0,1,1>
}
finish{
ambient 0
diffuse 0
}
}
interior{
media {
intervals 30
ratio 0.9
samples 2,4
confidence 0.9
variance 1.0/128.0
method 1
absorption <0,0,0>
emission <0.6,0,0.0>
//scattering {1, <0,0,0.12> extinction 1}
density{ spherical
turbulence 0.0
density_map {
[0.0 color rgb 0]
[1 color rgb 1]
}
}
}
}
}
#declare meditextcyl=material {texture {
pigment {
rgbt <0,0,1,1>
}
finish{
ambient 0
diffuse 0
}
}
interior{
media {
intervals 30
ratio 0.9
samples 2,4
confidence 0.9
variance 1.0/128.0
method 1
absorption <0,0,0>
emission <0.6,0,0.0>
//scattering {1, <0,0,0.12> extinction 1}
density{ cylindrical
turbulence 0
density_map {
[0.0 color rgb 0.0]
[1 color rgb 1]
}
}
}
}
}
//media
shine ----------------------------------------------------------------
object{
#declare len = 2.5;
#declare radi=2 ;
merge{
sphere {<0,0,0>,radi hollow material {meditextsfer} }
cylinder {0*y, len*y, radi open hollow material
{meditextcyl scale <1,len,1>} rotate z*-90 }
sphere {<0,0,0>,radi hollow material {meditextsfer
translate <0,0,0> } translate <len,0,0>}
}
translate<-1,0,1>
}
Post a reply to this message
Attachments:
Download 'buttontest.jpg' (34 KB)
Preview of image 'buttontest.jpg'
|
|
|
|
Nice site. Did you make that with povray? This is the kind of thing I want
to achieve indeed.
But I want a bit more sophisticated buttons. with changing light when you go
over them and different lightcolor or intensity when they are pressed. I
intend to integrate them with flash graphics.
Here's a new render
I've put 8 lights under the ruby glass cap which is below the white glass
cap.
Looks a bit better, but still far from what I have in mind.When the text
itself could emit light that would be much nicer.
I think the final render should become more glossy. Maybe making the glass
cap on top thinner makes the colors somewhat more brilliant. I still have to
experiment with the glass textures. I think the inner colored glass should
be more matt so that it disperses the light. The outer glass should be
lighter I guess
"Wijnand Nijs" <w.n### [at] alf4alldemonnl> wrote in message
news:449e7d09@news.povray.org...
>I like this button and the discussion very much. I am working to make my
> whole side povray-style (still a little bit primitive, but...), see:
>
> http://alf4all.demon.nl/frames/index.htm
>
> So, if there are others with good idees and/or code ..., let's make it a
> topic.
>
> greetings...
> Wijnand
Post a reply to this message
Attachments:
Download 'buttontestpost2.jpg' (12 KB)
Preview of image 'buttontestpost2.jpg'
|
|
|
|
Johan Feyaerts nous apporta ses lumieres en ce 25/06/2006 12:31:
> Nice site. Did you make that with povray? This is the kind of thing I want
> to achieve indeed.
> But I want a bit more sophisticated buttons. with changing light when you go
> over them and different lightcolor or intensity when they are pressed. I
> intend to integrate them with flash graphics.
>
> Here's a new render
> I've put 8 lights under the ruby glass cap which is below the white glass
> cap.
> Looks a bit better, but still far from what I have in mind.When the text
> itself could emit light that would be much nicer.
> I think the final render should become more glossy. Maybe making the glass
> cap on top thinner makes the colors somewhat more brilliant. I still have to
> experiment with the glass textures. I think the inner colored glass should
> be more matt so that it disperses the light. The outer glass should be
> lighter I guess
>
>
> "Wijnand Nijs" <w.n### [at] alf4alldemonnl> wrote in message
> news:449e7d09@news.povray.org...
>> I like this button and the discussion very much. I am working to make my
>> whole side povray-style (still a little bit primitive, but...), see:
>>
>> http://alf4all.demon.nl/frames/index.htm
>>
>> So, if there are others with good idees and/or code ..., let's make it a
>> topic.
>>
>> greetings...
>> Wijnand
>
>
Have you tried with radiosity? That way, the text can actualy emit light.
My suggestion:
Make the text a little thicker and difference it with a box.
difference{object{<your text object>finish{diffuse 0 ambient 1}}box{corner1,corner2
finish{diffuse 1
ambient 0}}}
Give the text object a finish with ambient 1 or a little more, and the box with
ambient 0. In a
radiosity scene, this makes the sides of the leters emit light that will illuminate
it's surrounding
and the part cut by the box will remain dark.
Please note that that light CAN'T interact with any media.
You can also make the leters transparent, hollow and fill them with emiting media.
Those can emit
light in a radiosity scene if you add "media on" in the radiosity block.
--
Alain
-------------------------------------------------
Church of SubGenius: BoB shits.
Post a reply to this message
|
|