Jump to content

Terrain OGL Viewport Colors


galagast

Recommended Posts

I'm trying to understand how the Height Field Quick Shade is shading the terrain in the viewport. Somehow, modifying and or re-creating a simplified version is proving difficult.

Currently, in order to learn it, I'm simply trying to create a viewport display that has an option to just set a Base Color, and a Slope Color.
terrain_vp_colors_shader.JPG
The Base Color is just an overall color for the whole terrain. The OGL Diffuse seems to work on this case (channel referenced in this case).
The Slope Color is masked by a custom Slope field (generated by a HF Mask by Feature).

Internally, I'm just using a Color Mix node with the Slope Field set to the bias like so:
terrain_vp_colors_colormix.JPG

The setup works as expected when rendered:
terrain_vp_colors_render.JPG
And by using the HF Quick Shade (as seen in the viewport):
terrain_vp_colors_quickshade.JPG

 

But by trying to re-create a simpler setup.. I'm unable to properly show the colors that I want in the viewport:
terrain_vp_colors_custom.JPG

How do I set the OGL Diffuse to the output of say, a Color Mix VOP?

Here is my current network and H16 file:
terrain_vp_colors_network.JPG
terrain_vp_colors.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...