It’s our turn. The old OSL shader for rounded edge is so far way too slow to be used in a game asset production pipeline.
Does something appear on the roadmap of 2.79 and 2.8? If not, I’ll start looking for ways to implement it, but currently have only really stupid ideas involving generating temporary bevel objects, bake them down and then normal map blend them together with other normal maps. (A very sad implementation, but once automated, it’s probably faster and more workable than the OSL shader)
Any advice or suggestions on where I should look at is welcome.
It’s sad to see progress abandoned. Is there detail about the project?
Another thought. If there is a way to relay Blender’s Mesh UV map boundary information and the corresponding vertices normal information, I can see the possibility of drawing the rounded edge normal colour directly onto an image. Then, it can be combined with the rest of the normal maps.
The OSL shader actually work quite well. Taking a ‘shader’ approach is the best, because first, it doesn’t touch on the geometry, secondly, it’s problem free(because it doesn’t involve geometry). I’m shifting my focus on a shader-based approach. Does Blender Render has any access point where I can fiddle around the GLSL shaders and maybe bake off normals from it?
After some testing about the “bevel object” method, I’ve found a major problem. The default bevel operation of Blender does not follow surrounding topology nor is there an option to do so. Therefore, the baked normal map from the bevel object works perfectly where the topology was followed, but creates significantly visible seams around places where the topology wasn’t followed.
If the surrounding faces’ normal are not all pointing at one direction, the bevel object’s normal will also not blend in perfectly when combined with other normals. I consider this “Bevel Object” method a failure. Unless there is a way to custom bevel the edges following surrounding geometry and blend the bevel with any non-flat surrounding faces.
Nvidia’s MDL was implemented into Substance Designer and there was a ‘Rounded Corner Normal’ that achieves exactly the same effect of MODO’s rounded edge shader.
I’ve tried using the pointiness or cheating with some smooth edges ( like a smoothed wireframe) and plug that into a bump node, that kind of makes something but I’m not sure if it can be enough to provide good results…
I wonder if something is possible with regular nodes, but I’m lacking basic math knowledge to know what to do (or what I’m doing) … maybe if that was easy someone would have already done it…
I guess having a kind of texture that involves raytracing may not fit the design of cycles, but maybe that can be done differently…
Ha! What do you think a “Shader” is? It does something to the shading of the object. In this case, it’s just altering the normals at the edges. So yes, it’s basically just a procedural normal map. :evilgrin:
Yeah the effect is cool.
As mentioned Modo has it for years now. Tor Frick (goes by the online name of snefer) uses it a lot
in his works. He has been a lead artist on the new Wolfenstein titles for example.
The only downside is that you never get the model out of the program like this but as long as the right tangent space is supported and the baking gets quality results that should be fine. Would be nice if Blender also hat this. And an overhaul of the UV algorithms.
Below is the link to the bevel osl shader. It is an old somehow link. There too was mentioned that Blender needs to have inherently such a shading method (the osl way is too slow in rendering times) but… it remains a request to this day.
It is a feature that does not need a so big effort to implement but as it seems there must be a more intense pressure from the side of the user community for developers’ doing something.
Making external tool is not something I’d consider trying.(I have no clue on how to do it), another reason that it’s better to be inside blender is that will be easier for anyone to tweak and control how the rounded-edge would look like, and where it should appear and where it shouldn’t.
After some searching I came over this:
in the #6 post JohnDoe0 shared a video that demonstrates how to create rounded-edge normal map inside substance Designer. it’s quite interesting.
The two cubes are complete separate objects and only intersect yet the edge rounding can occur not only on the same object but over all objects sharing the same material. Which can in some cases render boolean and subdiv modeling irrelevant if you only need the mapdetails for a game object from it.
Has its darwbacks of course since you are bound to the renderer and/or program if the external baker does not support a similar setup. Otherwise it’s super fast and can create very nice game assets.
(edit) Ultimately it still is a shader effect, though. The Edges in the silhouette won’t be rounded (see the outer corners of the cubes in the rendering below). It works best on concave geometry and intersections. Basically anything that needs to look like it is fused together. Normal maps created that way read really nice in games.
I’ve seen this repeated by many people now. Yes, I know how the concept works, I’m looking for a way to achieve the result. I know a shader would be the best way, but at the moment I have no clue where to start about the shader. Maybe Eevee or the 2.79 Cycles already have this feature. If not, someone has to make it, or every game artist is going to switch to MODO. After I tried MODO… I think it might be a good move if I want to be sure to always have the newest modelling tools that saves me time.