UPBGE 0.2.5 Texture shaping

Hello there.

  • The other day, I downloaded a project on car physics from the internet.

  • there is a floor in the project and it is shown as:

  • As you can see, the texture is being loaded according to the shape of the road.

  • I tried to create a similar object myself (it doesn’t look like :smiley: ):

  • but it does not follow the path. the whole coating is not in the pattern “s” shape,
    it loads like “rectangle”

I didn’t understand how to fix this. How was this system made?
Can someone help?

This could be due to a multitude of factors - sharing a blend would help quicken the user debugging pace.

1. Is this texture a baked texture?

2. What UV type is it?

3. Is your material using nodes?


Besides these questions, the likely answer is that the original user manually UV mapped their mesh to visually align their texture’s coordinates.

@RPaladin
first ss=

  • ground using a nodetree.

2nd ss=

  • not using any nodetree.

1st ss .blend file is here(20.5mb) =
https://drive.google.com/file/d/1Jh_ykuv1An0-WJt1yFYRx0knv9IllGvw/view?usp=sharing

2nd ss .blend is here(I accidentally deleted the file and created the same again.) =
https://drive.google.com/file/d/1rxeybqockTrtS_DHwY1OqOSOdEjPW1YM/view?usp=sharing

Normally I would be able to spot the issue with materials with or without nodes enabled, but you forgot to pack your textures, which rather hampers debugging of your blends since it’s visually related.

Could you please reupload your blend files after packing your images:

You are not unwrapping the road properly. To make a road you could do this:

  1. Add a plane and unwrap it.
  2. Subdivide it, with 3 or 4 cuts in edit mode.
  3. Add an array modifier to extend the road.
  4. Add a curve modifier and use a curve to make the path of the road.

road.blend (92.7 KB)