Beginner - Textures not Rendering

Hi Guys - I hope this is in the right forum

Over at StackOverflow i have asked the Question : “I am trying to render a wall by creating 4 cubes next to each other, the problem comes when applying the texture - JME3 does render the cube and applies the texture but i am seeing the inside of the cube. Is this some form of “View” which i can change? If so, how?” // // There is an image showing what i mean.

Please assit if possible

Kind Regards

Aiden Strydom

Your box params are wonky:

new Box(new Vector3f(0.0f, -1.0f, 0.0f), new Vector3f((float)i, 0.0f, -1.0f));

Note that you do not increase any of the x,y,z values on the ‘min’ (first parameter), so they all will start there. And if they are inside out, then it could be that your min should be your max; try flipping the two parameters then.

But I would suggest to use this constructor instead:



  • Creates a new box.
  • <p>
  • The box has the given center and extends in the out from the center by
  • the given amount in <em>each</em> direction. So, for example, a box
  • with extent of 0.5 would be the unit cube.

  • @param center the center of the box.
  • @param x the size of the box along the x axis, in both directions.
  • @param y the size of the box along the y axis, in both directions.
  • @param z the size of the box along the z axis, in both directions.


    public Box(Vector3f center, float x, float y, float z) {


    updateGeometry(center, x, y, z);



    Keep the same x,y,z params but change the center param with ‘i’ in the loop.
1 Like