Author Topic: Front tyre shadow in 1P  (Read 107 times)

h106frp

  • Hero Member
  • *****
  • Posts: 1633
    • View Profile
Front tyre shadow in 1P
« on: October 01, 2017, 04:02:46 PM »
How can I reference/call the shadow for the front and rear tyre when in cockpit 1P mode as its now in its own model/directory?

Thank you

Manu

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
Re: Front tyre shadow in 1P
« Reply #1 on: October 01, 2017, 06:08:02 PM »
gfx.cfg of the tyre folder.

Code: [Select]
front_wheel
{
model
{
file = ftyre.hrc
}
shadow
{
file = michelin_s.edf
}
ambientshadow
{
file = michelin_as.edf
}

...........

h106frp

  • Hero Member
  • *****
  • Posts: 1633
    • View Profile
Re: Front tyre shadow in 1P
« Reply #2 on: October 01, 2017, 06:32:55 PM »
But we already have a front_wheel script in the bike gfx.cfg, I want to add the tyre shadow so its visible in 1P.

I think the new tyre should have probably been made front_tyre to avoid the conflict.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2148
    • View Profile
Re: Front tyre shadow in 1P
« Reply #3 on: October 01, 2017, 06:51:13 PM »

Adding a new "cockpit" section in the tyres' gfx.cfg file should do the trick.

h106frp

  • Hero Member
  • *****
  • Posts: 1633
    • View Profile
Re: Front tyre shadow in 1P
« Reply #4 on: October 01, 2017, 08:40:17 PM »
 :)

Many thanks I will give it a try


Works! - brilliant
« Last Edit: October 01, 2017, 09:01:16 PM by h106frp »