Author Topic: Tire tracks?  (Read 347 times)

Offline Xenoyia

  • Member
  • *
  • Posts: 11
  • Photographer, musician and programmer.
    • Web Portfolio
Tire tracks?
« on: December 02, 2017, 02:32:47 PM »
Hello ;D

Been looking at how to create tire tracks on my landscape, following an imported 3D model.. no clue where to begin though, I'm assuming I'll need a distribution shader with some masks?

Something like this is what I'm going for:



Many thanks
Photography/Music Portfolio: http://lukevalentine.co.uk/

Offline Dune

  • Member
  • *
  • Posts: 12826
  • Corkscrew Bird
    • www.ulco-art.nl
Re: Tire tracks?
« Reply #1 on: December 02, 2017, 02:58:29 PM »
You can use a greyscale mask of the tyres that should be repeated (in the image map shader) in the direction they go. You can then warp these tracks by warp shader and vector displacement and some PF.
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline Hetzen

  • Member
  • *
  • Posts: 1539
Re: Tire tracks?
« Reply #2 on: December 02, 2017, 03:04:43 PM »
I've taken a tyre black and white texture and repeated it through y in an image map shader before. Then us that as a displacement of a few cms, then repeat four times for the four wheals. It get's interesting when you overlap tyre tracks, trying to get one to collapse the other, so you have to use a couple of masks to do that.

This was something I was working on for the Iceland contest. I was trying to use multiply and add for the colouring, so the attached image doesn't have the base texture switched on as I was working on the tyre tread.


Offline Xenoyia

  • Member
  • *
  • Posts: 11
  • Photographer, musician and programmer.
    • Web Portfolio
Re: Tire tracks?
« Reply #3 on: December 02, 2017, 03:16:29 PM »
Ah, I see!

I've been trying an image map shader for a while with this, the main problem is positioning it so it's underneath the car - can't seem to get it to show up!

I'm sorry for being slow, I'm slowly getting used to Terragen but some of this stuff just goes right over my head.

Photography/Music Portfolio: http://lukevalentine.co.uk/

Offline Dune

  • Member
  • *
  • Posts: 12826
  • Corkscrew Bird
    • www.ulco-art.nl
Re: Tire tracks?
« Reply #4 on: December 02, 2017, 03:19:46 PM »
You have to use Y (not through camera), and resize the mask for realistic tyrewidth. Yours are way too big! Sizes are in meters! And it's better (IMO) to set the image map at 0/0/0 and use a transform shader to locate/rotate, at least, that's what I always do.
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline Xenoyia

  • Member
  • *
  • Posts: 11
  • Photographer, musician and programmer.
    • Web Portfolio
Re: Tire tracks?
« Reply #5 on: December 02, 2017, 11:09:35 PM »
Ok I must really not be getting this haha



I got it to show up, but I can't get it to make a dent in the ground (always raised this much) and it's not rotating at all.

I connected the transform input shader to the input of the image map shader, if I connect it to the image's mask it doesn't show up at all. I've attached the tread I'm using.

Thanks for the help so far!

UPDATE: I managed to make it create a hole of death, I created another surface layer and connected it that way so now it's going underground just fine. It's still not rotating properly, though.

UPDATE 2: It's being affected by my other shaders, warped and messed up a lot - this'll be a problem anyway, how do I make it so my other terrain shaders (cracked floor, rock generation) don't touch this?

UPDATE 3: I've rotated it and found out how to get it masked properly. It's still being affected by the other shaders so the effect is being lost..

UPDATE 4: This might not be too bad, but I'll need to figure out exactly how to 'end' the tracks at the front tires, that's lost on me right now. It's kind of a subtle effect right now:



UPDATE 5: Figured out how to end the tracks. Shader arrays! Still would be nice to know how to give some shaders priority and not be affected by others.
« Last Edit: December 03, 2017, 12:30:59 AM by Xenoyia »
Photography/Music Portfolio: http://lukevalentine.co.uk/

Offline Dune

  • Member
  • *
  • Posts: 12826
  • Corkscrew Bird
    • www.ulco-art.nl
Re: Tire tracks?
« Reply #6 on: December 03, 2017, 07:10:34 AM »
Check this out, I quickly made you a file. It can of course be improved a lot.
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline bobbystahr

  • Member
  • *
  • Posts: 8204
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Tire tracks?
« Reply #7 on: December 03, 2017, 02:18:08 PM »
Check this out, I quickly made you a file. It can of course be improved a lot.

Good on ya Ulco.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New

bobbystahr

Offline KlausK

  • Member
  • *
  • Posts: 303
  • Land ho!
Re: Tire tracks?
« Reply #8 on: December 04, 2017, 12:40:05 PM »
Hey, after looking at Ulco`s system (thx for that) which I never would have figured out by myself I made some sort of 'Poor Man`s Dune Tracks' file.
The *.zip contains the gathered file. It also includes a Hummer.obj which was free to download (I can`t tell anymore from where) and the Tyre.png from above.
Cheers, Klaus.
/ ASUS WS Mainboard / Dual XEON E5-2640v3 / 64GB RAM / NVIDIA GeForce GTX 780 / Win7 Ultimate

Offline luvsmuzik

  • Member
  • *
  • Posts: 1595
Re: Tire tracks?
« Reply #9 on: December 04, 2017, 02:25:27 PM »
Thanks KlausK! Always useful stuff from you and Ulco!

Offline bobbystahr

  • Member
  • *
  • Posts: 8204
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Tire tracks?
« Reply #10 on: December 04, 2017, 02:57:52 PM »
Thanks Klaus, never too much input I say....this is also very handy.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New

bobbystahr

Offline Xenoyia

  • Member
  • *
  • Posts: 11
  • Photographer, musician and programmer.
    • Web Portfolio
Re: Tire tracks?
« Reply #11 on: December 04, 2017, 03:26:54 PM »
Thanks a ton! This is all super helpful, I'll be able to learn a lot from these.

Could I, theoretically, put tire tracks on top of clouds?
« Last Edit: December 04, 2017, 03:36:05 PM by Xenoyia »
Photography/Music Portfolio: http://lukevalentine.co.uk/

Offline luvsmuzik

  • Member
  • *
  • Posts: 1595
Re: Tire tracks?
« Reply #12 on: December 04, 2017, 04:36:27 PM »
Check this out! Pretty positive you can rotate to suit with a transform input before the image map.

http://www.planetside.co.uk/forums/index.php/topic,283.msg5747.html#msg5747

Offline J_Con

  • Member
  • *
  • Posts: 88
Re: Tire tracks?
« Reply #13 on: December 04, 2017, 10:58:23 PM »
Excellent Help/work. Looking forward to trying this technique.

 

anything