• Content count

  • Joined

  • Last visited

  1. Thanks a lot. Now I noticed that (I've copiedthe custom material from somewhere else) didnt show any kind of shading. Can you help with this too?
  2. https://www.babylonjs-playground.com/#9HEBCE#27 When you turn ti the right you see a reflection on the floor. How can I set the specularColor in a customMaterial to reduce the amount of specularity?
  3. Textureproblem with endless Track

    The problem is just that it always move at the beginning when the camera didnt move. I continued the development a bit and that's what I got. https://www.babylonjs-playground.com/#9HEBCE#26 I dont need the offset anymore when I didnt "shorten" the track. Did Babylon also render polygons which are outside of the viewport?
  4. I try to build an endless Track for a small Game and currently I stuck on an textureproblem. https://www.babylonjs-playground.com/index.html#9HEBCE#12 I use the CreateRibbon Method to build a lane out of an array. When I have 200 segments I remove the one at the top and move the camera temporary to the first one so currently it just looks like the lane is just waving but in reality the camera is moving (you can see it when you remove the camera position setting at the bottom.) I scale the texture to fit the whole mesh but then it looks like the track is not moving I tryed it it the vOffset but that didnt worket out. What I need is some kind of "material/shader" which projects a texture always in the same way, no mater where the mesh is in the world so it would look like the track moves. Or maybe someone have an another Idea how to achieve this. Thanks