Author Topic: How can I create glass with bump?  (Read 4219 times)

Ecuadorian

    Reputation: 32
How can I create glass with bump?
« on: March 29, 2012, 01:26:59 am »
March 29, 2012, 01:26:59 am
My goal is to create glass blocks. I like the fake refraction produced by the water and waterfall shaders. Unfortunately there's no static shader that is also transparent AND has bump.

I'm stuck in Version 1 "Ultimate", by the way.

newman

    Reputation: 2
Re: How can I create glass with bump?
« Reply #1 on: March 31, 2012, 09:53:46 am »
March 31, 2012, 09:53:46 am
Yes i think you cannot make semi-transporent textures or colors. It was possible in past versions, and now developers exclude this options. So i can't make translucent patterned or coloured lamp-shade, for example.

RAD

    Reputation: 32
Re: How can I create glass with bump?
« Reply #2 on: March 31, 2012, 11:10:54 pm »
March 31, 2012, 11:10:54 pm
Semi-transparent materials have never been offered in any version ever.
But you can sort of fake as some video has previously shown in the gallery.

Aaron

    Reputation: 80
Re: How can I create glass with bump?
« Reply #3 on: April 01, 2012, 04:41:10 am »
April 01, 2012, 04:41:10 am
A short while back (1576 iirc) I did a quick study on Lumion glass.
When I used deformed planes (bit of noise or so) and stacked those on top of eachother,
the results were quite ok-ish. For more complex shapes it helps to shell/clone/resize a copy
as a subsurface innershape. I'd guess the same technique is aplicable to glass blocks, if you
can spare the extra polys  ::)


RAD

    Reputation: 32
Re: How can I create glass with bump?
« Reply #4 on: April 01, 2012, 07:41:49 am »
April 01, 2012, 07:41:49 am
MMM.  Thats slick Aaron.  Looks not to bad at all.
Like you said though...if you can spare the polys.

Corrugated glass like that..hmm.  PolyPOP!

Aaron

    Reputation: 80
Re: How can I create glass with bump?
« Reply #5 on: April 01, 2012, 12:45:12 pm »
April 01, 2012, 12:45:12 pm
For simple shapes the polyoverhead isn't huge. See attached screengrab.
It also shows 1, 2 and 3 stacked planes in the cabinet so perhaps the above
example makes a bit more sense that way. But yeah..workaround ofc.
Reckon would be a nice subtitle for Lumion. Lumion Ultimate Workaround Edition  8)

Ecuadorian

    Reputation: 32
Re: How can I create glass with bump?
« Reply #6 on: April 01, 2012, 09:56:10 pm »
April 01, 2012, 09:56:10 pm
Nice, Aaron.
But there's no actual refraction, right? You just play with reflections.

All I really want is a shader similar to the water/waterfall one, but static instead of moving. That should be enough to fake warped glass.

Aaron

    Reputation: 80
Re: How can I create glass with bump?
« Reply #7 on: April 02, 2012, 12:28:51 am »
April 02, 2012, 12:28:51 am
Sure, fake as Pamela Andersons boobs alright.

*nods* Yeah new shaders, new shaderfunctionality, extended shaders, optimized, improved, more advanced, better results...blablablabla for now cause it's been a bit silent on devisland in that regard lately.Let's hope that's a good thing :-)

+1 on the request though..I take it you'll be heading to the proper section next to file it  ;)
« Last Edit: April 02, 2012, 06:18:18 am by Aaron »

Re: How can I create glass with bump?
« Reply #8 on: April 02, 2012, 01:30:27 pm »
April 02, 2012, 01:30:27 pm
The Waterfall material has distortion (set Bump Factor to 0 to make it static), but it will fade out near the edges.

So yeah, a workaround for sure :)

Aaron's example looks like a better solution though.

Feel free to post requests in the Wish List section.
« Last Edit: April 02, 2012, 01:33:24 pm by Morten »

Ecuadorian

    Reputation: 32
Re: How can I create glass with bump?
« Reply #9 on: April 07, 2012, 07:13:39 pm »
April 07, 2012, 07:13:39 pm
Morten, I tried with both V1 Ultimate and V2 Free, and when I set the bump to 0, the distortion disappears.

Re: How can I create glass with bump?
« Reply #10 on: April 09, 2012, 01:07:47 pm »
April 09, 2012, 01:07:47 pm
I should have mentioned that the shape of the object, ie, the difference between the normals of adjacent polygons, will affect the amount of distortion. The more irregular the surface is, the more distortion you'll see.
« Last Edit: April 09, 2012, 01:10:28 pm by Morten »

Ecuadorian

    Reputation: 32
Re: How can I create glass with bump?
« Reply #11 on: April 12, 2012, 06:48:11 am »
April 12, 2012, 06:48:11 am
Morten, I tried with a highly irregular mesh but saw no distortion at all. Finally I decided to give Aaron's technique a try, and it worked wonderfully. Thank you, Aaron!