Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7623849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:48:35+00:00 2026-05-31T04:48:35+00:00

The following tutorial explains how to perform basic texture splatting with height maps. http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_terrain

  • 0

The following tutorial explains how to perform basic texture splatting with height maps.

http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_terrain

I was able to follow this tutorial and exercises with excellent results. However, I am wondering how to add more than three textures. I see in the material parameters of the Terrain.j3md file there are only three texture layers: Tex1, Tex2, Tex3 so I don’t believe you can do this using the Terrain.j3md.

It is my assumption that you have to use the TerrainLighting.j3md. However, this is structured very differently with parameters such as NormalMap and DiffuseMap and I cannot find any documentation/tutorials explaining what exactly these are.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:48:37+00:00Added an answer on May 31, 2026 at 4:48 am

    JME3 is an OpenGL based library using GLSL shaders for rendering. You must write your custom shader, or modify an existing one, to perform custom rendering.

    Shaders are an advanced topic. You can find an introduction to shaders on SDK documentation. But probably you would like to read full articles about “Materials, Light, Shadow”.

    JME3 uses three files to manage them:

    • A .vert file with the GLSL vertex shader code
    • A .frag file with the GLSL fragment shader code
    • A .j3md file with the shader program definition

    Both vertex and fragment shaders are just piece of code using the GLSL language. Vertex shader is executed once for each vertex in the view to compute screen coordinates. Fragment shader is executed once for each pixel on the screen to compute colors. .j3md file have definitions about input parameters (materials), techniques (shaders), and so on.

    The number and the type of the parameters are fixed. But you can modify Terrain.j3m to add a new texture parameter:

    Texture2D tex4
    

    Add a new input parameter to Terrain.frag:

    uniform sampler2D m_Tex4;
    

    And modify the fragment shader code to use that new texture parameter as you like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been following this tutorial - http://www.youtube.com/watch?v=R2hOvZ7bwXU , which explains how to use postMessage
I followed the following tutorial to build a multilingual webpage using php arrays: http://bytes.com/topic/php/answers/880915-how-develop-multi-lingual-websites-php
I am following the following tutorial ( http://www.highoncoding.com/Articles/642_Creating_a_Stock_Widget_in_ASP_NET_MVC_Application.aspx ) on using ajax to render
I'm following the tutorial here http://applicake.com/posts/54-integrating-facebook-connect-with-rails-applications to set up facebook connect. It almost worked,
I'm following the tutorial located at: http://www.asp.net/learn/mvc/tutorial-20-cs.aspx I created my own .Menu() method to
I was following this tutorial . I need to use a php file's ouput
I'm following a tutorial to set up a skeleton application for tomcat : http://maestric.com/doc/java/spring/setup#build_files
I'm following this tutorial: http://railscasts.com/episodes/253-carrierwave-file-uploads or atleast I want to but would like to
I'm following this tutorial on creating buttons with CSS. http://www.secondpicture.com/tutorials/web_design/css_ul_li_horizontal_css_menu.html The background for the
I am following the tutorial http://javanetbeans.net78.net/kb/60/web/tutorial-webapps.html and when I get to the portion 'Creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.