0
Completed

Reflection Vector Request Like In UDK

bhcmegstan 10 years ago updated by selena4u 9 years ago 26

Hi,


Also hopefully we can use reflection vector like in udk, connection like this texture2d -> component mask -> reflection vector


would also like to have a real time reflection for surfaces, cubemap is not really a good idea for flat surfaces there are some but not really easy and good way to set up something like this:


Image 70


this is good which can be controlled by alpha which one receives more reflection etc. I hear that udk dx11 supports this, I actually fiddle with it and its good it has image base reflection, and realtime reflection that also can be set using material editor, and also it absorbs lights like this below:


Image 71


Respectfully yours,



Roberto G. Tan Jr

Answer

-2
Answer
Completed

The reflection node already acts that way, and there's another request already for real-time reflections, closing this :)

Hi!

How is the material in UDK set up in order to do that effect? It should be more or less possible in Shader Forge too :)

Hi,


That's why I'm really happy with ShaderForge because I know it can and soon will be a powerful material editor for unity3d, and it is really closed to the udk material editor, with just a couple of additional features shaderforge is going to be a mind blowing tool, by the way this is how I setup a reflection base on the alpha like: which one receives more reflection.




So from Lerp A: diffuse texture, B: Reflection Texture, C: Alpha

I dont know how to make the reflection emissive like the one above that has a green reflection, but just a simple texture base reflection it can be fake by using texture2d -> component mask -> reflection vector. The reflection vector I think is what Shader Forge currently don't have which you can be attach from the component mask which is also attached from UV of texture2d.

+1

There is a reflect node and a light direction node, which you can use to make a light reflection setup :)

Hi,


Really? Wow, how can I try those? any steps? hope you give basic tutorials on how to do those with ShaderForge when it comes out on the asset store, how about for puddles like on a street, that can only work with real time reflections or like the one I mentioned above reflection vector? 

I'm a bit curious though - What exactly is the "Reflection texture" node in the center?

Ok, if you look at the lerp node, A is the diffuse Texture, B is a texture as well but it will act as you image base reflection but you need a reflection vector so the image would act like what a usual reflection behaviour has, ALPHA of course is the blend. This is useful and easy to setup than a cubemap which is not really good for flat surfaces like walls, floor, etc, sorry if the way I explain it is very confusing.

+1

Right - The reflection vector in UDK is the camera->normal reflection, which there is a node for in SF already :)

Have a look:


Hi,


Oh, wow, I didn't realize that, OMG!, you are wonderful, another question how do you do the reflection node that has light direction node like the one on the second image (green reflection with bleed and fade)? Hopefully you get to finish Shader Forge soon with all the goodies, I'm really loving this, I'm going to buy this!

I'm not sure how the second shader was done! Seems quite advanced

Hi,


Ok I see, thanks so much! I'll keep you posted for any other ideas!

-2
Answer
Completed

The reflection node already acts that way, and there's another request already for real-time reflections, closing this :)

Could you share us some details?Thank you.
How to make real-time reflections~hmm...Actually I want to make a shader in shader forge like a mirror,do you know how to realize?
Yes,I have read the topic,but I still don't understand how to create a shader like a mirror which can reflect all things near the object.Not just reflect a picture,but the environment, you know?
Yeah, I believe that's what it does, but it requires a special camera setup and C# script to accompany the shader
Could you show me an example?I'm an artist,don't understand C# script,I need to know how to connect "reflect" with some other nodes to make this shader,and how to setup camera with C# script~Could you make a tutorial for this?thank you very much!

I'm afraid I don't have the time right now, but I do recommend taking a look at Unity's water shader in their Standard Assets package
But Unity's water shader can't open in Shader Forge...I can't read codes.T T.
No, you don't have to open the shader. Look at how the script is used, and how the SF shader is created in the thread I linked. All the info should be there
How to see "how the SF shader is created"? the standart assets package is not written in SF..
The SF shader in the thread I linked, not the standard assets
Sorry I'm conffused~ You mean I look at the water shader and use the same way to link it myself in SF?I'm afraid I can't do that T T

Sorry,I'm so stupid,anyway,thank u very much~
I'm sorry I'm from China,my english is not very good,I hope you could understand me.