[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Hey /3/, could use some help. I'm working on a project

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 16
Thread images: 8

File: mot_01.jpg (704KB, 1280x729px) Image search: [Google]
mot_01.jpg
704KB, 1280x729px
Hey /3/, could use some help.

I'm working on a project that's going to have a stylized, rocky environment. I was looking around when I came across pic related and realized it was exactly what I wanted to accomplish. The guy has a bunch of info on his website how he accomplished it, but I'm having trouble wrapping my head around it. Here's how I think he did it.

>sculpt rock
>bake high-res rocks' normals to low-res rocks
>apply hand-painted texture via triplanar mapping
>have a z-up for the sand

The problem I'm having is implementing a similar system in Unity. I'm just stuck trying to figure out how to go about doing it. I can set up a triplanar material in Shader Forge easily enough, but I can't find a way to overlay the baked textured and normal maps over the tiled textures/normals being projected onto the mesh via world space mapping.

Here's the guy's portfolio page where he says how he did it: http://www.digitaldracott.com/SubPage_Motiga.php. He did it in UDK, but I assume the techniques used can be done in Unity 5 as well with the proper know-how. I feel like I'm right on the edge of understanding how to make a shader like the one he made, but I just can't wrap my head around some of the process. Mainly how to "overlay" the baked normal map with the tiled projected map.

Any help would be appreciated. If this is damn simple and I'm missing something simple, I apologize for my slowness!
>>
File: mot_09.jpg (580KB, 1280x729px) Image search: [Google]
mot_09.jpg
580KB, 1280x729px
>>517141
Here's his explanation of how the shader works in UDK. I'm having trouble figuring out how he "overlays" the baked normals.
>>
File: mot_08.jpg (538KB, 1280x729px) Image search: [Google]
mot_08.jpg
538KB, 1280x729px
>>517142
Here are the three textures he used for all of the rocks. I understand how the first two are mapped via world space, but can't figure out how the third one comes into play.
>>
File: mot_07.jpg (522KB, 1280x729px) Image search: [Google]
mot_07.jpg
522KB, 1280x729px
>>517143
I also don't understand how that one baked texture created all of these rocks.

I tried looking around for tutorials to cover this topic, but came up blank.
>>
The third might be a matcap type of a thing. It picks a point in the texture depending on the angle between camera view vector and the surface normal. Just a guess.
>>
>>517144
wait, are you talking about the uv's here? i can see each of those maps on each object, just nicely positioned uv shells i think
>>
File: 21597-nblend.png (539KB, 1871x908px) Image search: [Google]
21597-nblend.png
539KB, 1871x908px
>>517141
You say you're just trying to overlay a custom baked normal map on top of your triplanar, effect.

Can't you just plug your triplanar normals into an "add" node and then socket your other normal map after multiplying the three-vector like on the left of this image here?

You would do the same with your custom diffuse by just multiplying it with your triplanar diffuse.
>>
why do you want to copy his shader? just make your own shader
>>
>>517167
also:

>stylized textures
>all this complex baking process of baking normals from pictures instead of using pbr workflow
>>
>>517167
>>517168
yeah you're both stupid
>>
File: seams.png (651KB, 1104x958px) Image search: [Google]
seams.png
651KB, 1104x958px
>>517147
Yeah, I can also see where the UVs are mapped to each rock. The thing is there's so many different kind of rocks with such a simple normal map. How could you get such nicely positioned uv shells to only have to use one, simple normal map for so many rocks? Obviously it's a method I don't know about.

>>517165
This is exactly what I was looking for, thank you!

The only problem I'm running into now is an ugly seam in my tiled, triplanar projection. If I set the shader's normal space to "tangent", my baked normal map works (the baked map is in tangent space). However, the triplanar map is obviously in world space and creates ugly seams at the egde of my uv shells. This can be fixed by setting the normal space to world, but then the baked normal no longer works since it is in tangent space.

I'm trying to figure out how to have both maps work in either world or tangent space. It could be a really simple process, but I just don't have the knowledge or know what to look for in tutorials.

>pic related, a sample mesh with the seam issue

>>517167
>>517168
I'm a novice when it comes to shaders and materials. I would rather follow the example of somebody who is a professional than try to blaze my own path. At least at the moment, that is.
>>
File: 20140318091005!Triplanar_mapping.png (317KB, 1337x709px) Image search: [Google]
20140318091005!Triplanar_mapping.png
317KB, 1337x709px
>>517182
Here's a triplanar setup for your reference in shaderforge. I dont know what you've done on your end.
>>
File: triplanar.png (170KB, 1225x847px) Image search: [Google]
triplanar.png
170KB, 1225x847px
>>517210
Here's my triplanar setup right now.

I'm still having issues blending the two normals because the triplanar is using world space normals while the baked normals are using tangent space.

The bit circled in red is the baked normal. Everything in black is the triplanar projection for the normal maps. The blue circle is where they're mixing. That's an Add node right now, which does mix them, but not very good.

The big thing is I'm trying to get the triplanar projection to work with the shader's normals set to "tangent". Right now they only work if the shader is set to world space normals.
>>
>>517212
Figured it out; I needed to convert the triplanar output from world to tangent before adding it to the baked maps.

Working perfectly now.

Next up: blending textures. Luckily I have experience with that, so it shouldn't seem to foreign.
>>
>>517141
>>517143
how did you do for the normal map and the painted texture ?
like, did you make the textures from the blue things (normal maps ?) or was it something else ?
i'm new to 3d and i love the way it looks
>>
>>517392
I'm not the guy who did that. I was referencing his portfolio page.

He probably painted the texture first then did the normal map in nDo.
Thread posts: 16
Thread images: 8


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.