Planetside Software Forums

General => Terragen Discussion => Topic started by: WAS on December 12, 2015, 04:02:49 AM

Title: Translucency Again
Post by: WAS on December 12, 2015, 04:02:49 AM
So, I notice in a lot of older posts, for TG2, that translucency isn't really that. And to use the water shader (or I guess now glass). But what if I want my texture in there as well? Do I just use the water/glass shader as the base and then mask it? I'm wondering if my idea of glowing jelly fishes (with internal light source) is really practical.

For example. Is there a way to use the glass shader and give these jellyfish a solid blur look with transparency with the glass shader rather then it appear to be translucent to a black base? Currently even with all color adjustments set to a blur I get black for the base.

(http://i.imgur.com/73Jh8qF.png)
Title: Re: Translucency Again
Post by: bobbystahr on December 13, 2015, 01:35:56 PM
Well to get the glass and I believe the water shader to work you need *no shadows* clicked on the object so I doubt that will work. jmeyer and I did some experiments with stained glass along theses lines and found you could get a texture along with the transparency by using a Merge shader and use Multiply(Input * A's diffuse colour)...but you will need the part that is transparent to be loaded separately from the other parts of the model like the window glass in a building and if it's a closed/solid model do not select Double sided....either on the model or the Glass Shader. Confused...ask.
Title: Re: Translucency Again
Post by: WAS on December 13, 2015, 02:31:57 PM
Quote from: bobbystahr on December 13, 2015, 01:35:56 PM
Well to get the glass and I believe the water shader to work you need *no shadows* clicked on the object so I doubt that will work. jmeyer and I did some experiments with stained glass along theses lines and found you could get a texture along with the transparency by using a Merge shader and use Multiply(Input * A's diffuse colour)...but you will need the part that is transparent to be loaded separately from the other parts of the model like the window glass in a building and if it's a closed/solid model do not select Double sided....either on the model or the Glass Shader. Confused...ask.

I think I get what you mean, I'll give it a shot. Thanks Bobby
Title: Re: Translucency Again
Post by: bobbystahr on December 13, 2015, 08:02:25 PM
Quote from: WASasquatch on December 13, 2015, 02:31:57 PM
Quote from: bobbystahr on December 13, 2015, 01:35:56 PM
Well to get the glass and I believe the water shader to work you need *no shadows* clicked on the object so I doubt that will work. jmeyer and I did some experiments with stained glass along theses lines and found you could get a texture along with the transparency by using a Merge shader and use Multiply(Input * A's diffuse colour)...but you will need the part that is transparent to be loaded separately from the other parts of the model like the window glass in a building and if it's a closed/solid model do not select Double sided....either on the model or the Glass Shader. Confused...ask.

I think I get what you mean, I'll give it a shot. Thanks Bobby

hope this works for you
Title: Re: Translucency Again
Post by: WAS on December 14, 2015, 08:46:43 PM
By two separate parts do you mean duplicating the part and having to separate parts merging together? One using glass as a surface, the other with the texture?  If that even makes sense too
Title: Re: Translucency Again
Post by: bobbystahr on December 14, 2015, 08:54:42 PM
Quote from: WASasquatch on December 14, 2015, 08:46:43 PM
By two separate parts do you mean duplicating the part and having to separate parts merging together? One using glass as a surface, the other with the texture?  If that even makes sense too

What I did/do is I load the object into my modeler and first delete the non transparent part and name XXX base, the reload and delete that part and save a xxx transparent. Then load separately in TG as they share the same axis they will self assemble. Now you can make one part not cast shadows for the transparency to work. If you send me the object I could prepare it for you.
Title: Re: Translucency Again
Post by: bobbystahr on December 14, 2015, 08:55:53 PM
Then I treat the transparent object as I described earlier
Title: Re: Translucency Again
Post by: AP on December 14, 2015, 09:02:12 PM
I hope we have a Sub surface scattering shader for Terragen 4. It would make this a whole lot more easy and open many possibilities.
Title: Re: Translucency Again
Post by: bobbystahr on December 14, 2015, 09:14:18 PM
Quote from: Chris on December 14, 2015, 09:02:12 PM
I hope we have a Sub surface scattering shader for Terragen 4. It would make this a whole lot more easy and open many possibilities.

I'd settle for full greyscale transparency with the glass.
Title: Re: Translucency Again
Post by: AP on December 14, 2015, 10:03:06 PM
Certainly that is a start. If that shader was more optimized, even better. However, every renderer has sub surface scattering, it's nothing new or fantastic now a days but the results are what matters in terms of realism like solid ice, certain types of crystals, snow, mushrooms, imported objects with skin and so on. I can accept an optimized alternative to sub surface scattering as long as the results are acceptable.
Title: Re: Translucency Again
Post by: WAS on December 14, 2015, 10:24:52 PM
Quote from: bobbystahr on December 14, 2015, 08:54:42 PM
Quote from: WASasquatch on December 14, 2015, 08:46:43 PM
By two separate parts do you mean duplicating the part and having to separate parts merging together? One using glass as a surface, the other with the texture?  If that even makes sense too

What I did/do is I load the object into my modeler and first delete the non transparent part and name XXX base, the reload and delete that part and save a xxx transparent. Then load separately in TG as they share the same axis they will self assemble. Now you can make one part not cast shadows for the transparency to work. If you send me the object I could prepare it for you.

Oh ok so I am just missing the modeler step. What I have obtained does look transparent with the texture, but again, the black base seems very visible. If you could help with the models that would be great. I'll definitely load them and see the changes too so I can try it out. What program do you use? Poseray?

(http://i.imgur.com/0GCZqUJ.png)
Title: Re: Translucency Again
Post by: AP on December 14, 2015, 11:34:05 PM
Could there be an issue with the index of refraction at all?
Title: Re: Translucency Again
Post by: bobbystahr on December 14, 2015, 11:45:20 PM
Quote from: WASasquatch on December 14, 2015, 10:24:52 PM
Quote from: bobbystahr on December 14, 2015, 08:54:42 PM
Quote from: WASasquatch on December 14, 2015, 08:46:43 PM
By two separate parts do you mean duplicating the part and having to separate parts merging together? One using glass as a surface, the other with the texture?  If that even makes sense too

What I did/do is I load the object into my modeler and first delete the non transparent part and name XXX base, the reload and delete that part and save a xxx transparent. Then load separately in TG as they share the same axis they will self assemble. Now you can make one part not cast shadows for the transparency to work. If you send me the object I could prepare it for you.

Oh ok so I am just missing the modeler step. What I have obtained does look transparent with the texture, but again, the black base seems very visible. If you could help with the models that would be great. I'll definitely load them and see the changes too so I can try it out. What program do you use? Poseray?

(http://i.imgur.com/0GCZqUJ.png)

PoseRay and Deep Exploration
Title: Re: Translucency Again
Post by: WAS on December 15, 2015, 03:32:50 PM
Thanks for the help Bobby, it looks pretty good now, except for the density created by the tendrils attaching to the dome.

(http://i.imgur.com/FixvI2Y.png)

Or is this as mentioned a refraction problem?

(http://i.imgur.com/46zHaCi.png)
Title: Re: Translucency Again
Post by: bobbystahr on December 15, 2015, 03:54:46 PM
Ideally you'd create a 2 part model and be able to texture the tendrils separately but I dunno if that'd make a difference. As there are no shadows all I can assume is addition of surfaces together makes it opaque where they all intersect and nada you can do about that I fear.
Title: Re: Translucency Again
Post by: WAS on December 15, 2015, 04:34:11 PM
Quote from: bobbystahr on December 15, 2015, 03:54:46 PM
Ideally you'd create a 2 part model and be able to texture the tendrils separately but I dunno if that'd make a difference. As there are no shadows all I can assume is addition of surfaces together makes it opaque where they all intersect and nada you can do about thay I fear.

That's what I kinda figured. Just too much layering/intersecting