PiBoSo Official Forum

GP Bikes => Mods => Topic started by: Blackheart on September 09, 2016, 09:25:09 AM

Title: Tail lights question
Post by: Blackheart on September 09, 2016, 09:25:09 AM
"I can not find the old thread"  :-[

My question is where should I put the texture for Light On?
Title: Re: Taillights light question
Post by: doubledragoncc on September 09, 2016, 09:41:01 AM
Hi Blacky, I dont know for the texture itself but the gfx.cfg has it entered in the position marked in red:

chassis
{
   model
   {
      file = chassis.hrc
   }
   shadow
   {
      file = chassis_s.edf
   }

   temporary
   {
      file = t_chassis.edf
   }

   rearbrakepedal
   {
      name = rearbrake_lever
      axis = x
      maxrot = -10
   }

   shifter
   {
      name = gear_lever
      axis = x
      maxrot = -10
   }

   chain
   {
      name = chain
      pos
      {
         x = -0.55
         y = 0.0
         z = -0.0505
      }
      engine
      {
         x = -0.110
         y = 0.50
         z = 0.9
      }
      texture = chain
      axis = u
      ratio = 0.05
   }
   
   leftpeg
   {
      type = 1
      pos
      {
         x = -0.23
         y = 0.41
         z = -0.095
      }
   }
   
   rightpeg
   {
      type = 1
      pos
      {
         x = 0.23
         y = 0.41
         z = -0.095
      }
   }
   exhaust
   {
      num_pipes = 2
      pipe0
      {
         pos
         {
            x = -0.09
            y = 0.9
            z = -0.81
         }
         dir
         {
            x = 0
            y = 0
            z = -1
         }
      }
      pipe1
      {
         pos
         {
            x = 0.09
            y = 0.9
            z = -0.81
         }
         dir
         {
            x = 0
            y = 0
            z = -1
         }
      }

      smoke
      {
         top_rpm = 2000
         max_rpm = 3000
      }
   }   

   brakelights = AO_1P_chassis_rearlens_image
}

steer

Dont know if that tells you where to put the texture or not?

DD
Title: Re: Taillights light question
Post by: Blackheart on September 09, 2016, 09:54:24 AM
I know this, but my question is where i put the texture file  ;D
Title: Re: Taillights light question
Post by: doubledragoncc on September 09, 2016, 10:52:41 AM
I guessed you did but was not sure if it would point to where the texture goes. I think h106frp is the one to ask. THis is his link for the Ducati : http://forum.piboso.com/index.php?topic=3024.0 (http://forum.piboso.com/index.php?topic=3024.0)
I think thats where it first got done, not sure

I look forward to seeing the new 900.

DD
Title: Re: Taillights light question
Post by: matty0l215 on September 09, 2016, 12:25:24 PM
I think it works in the same way as the shift light. You apply the texture to the model itslef
Title: Re: Taillights light question
Post by: h106frp on September 09, 2016, 12:32:28 PM
Apply the texture as normal and then the game modulates the brightness
Title: Re: Taillights light question
Post by: Blackheart on September 09, 2016, 12:35:36 PM
@DD a preview need some fixes with shaders and some textures but almost completed.  ;)

(https://s12.postimg.org/pxj7jwbrh/core_08_09_2016_18_09_40_558.png)


Title: Re: Taillights light question
Post by: Blackheart on September 09, 2016, 12:42:03 PM
Quote from: h106frp on September 09, 2016, 12:32:28 PM
Apply the texture as normal and then the game modulates the brightness

And where I set the intensity? 
Title: Re: Taillights light question
Post by: grimm on September 09, 2016, 02:30:55 PM
That looks incredible! Amazing work!  ;D
Title: Re: Tail lights question
Post by: Blackheart on September 09, 2016, 06:20:30 PM
Difference between lights OFF and ON.

(http://i.giphy.com/NG9OzZTSrtgPu.gif)

Ok... it is the most useless thing in the world.  >:(
Title: Re: Tail lights question
Post by: matty0l215 on September 09, 2016, 06:32:04 PM
Oh Jesus that's bad :P

Piboso, any answers???
Title: Re: Tail lights question
Post by: doubledragoncc on September 09, 2016, 06:54:30 PM
Sooooooooooo sweet

BUT I need to have yellow wheels to make the bike right for YPB, can you include the name of the wheel tga when you post it, pretty please?

Great work Blacky. This makes GPB real personal for me, thank you for so much hard work.

Like to see the brake light, but when I am alone it dont kinda matter, unless I am playing like a kiddy in 3rd person lol

DD

Oh and the zorst so I can have an Aky  ;D
Title: Re: Tail lights question
Post by: h106frp on September 10, 2016, 08:56:18 AM
Quote from: Blackheart on September 09, 2016, 06:20:30 PM
Difference between lights OFF and ON.

(http://i.giphy.com/NG9OzZTSrtgPu.gif)

Ok... it is the most useless thing in the world.  >:(

Its hard to get much brightness, butt it would probably help to remove some of the very dark bits from the texture so its a bit more red
Title: Re: Tail lights question
Post by: TheFatController on September 10, 2016, 09:18:27 AM
Isn't self emission lighting supposed to be implemented in a coming beta? Not sure if it was for things like stadium / street lights or bike head / brake lights, but I'd assume both really..
Title: Re: Tail lights question
Post by: Blackheart on September 10, 2016, 12:23:18 PM
Quote from: h106frp on September 10, 2016, 08:56:18 AM
Its hard to get much brightness, butt it would probably help to remove some of the very dark bits from the texture so its a bit more red

My first test was a texture full red, but the difference does not change much.

I do not think Piboso implements a lighting system for bikes, at least not in gpb.  ::)

Title: Re: Tail lights question
Post by: TheFatController on September 10, 2016, 12:32:41 PM
It was in the daily dev, I asked a question about it on the mxb board right after.. Looks like both have been removed :(
Title: Re: Tail lights question
Post by: Blackheart on September 10, 2016, 01:36:00 PM
Anyway with wet tracks, the effect is more visible, better than nothing  :P

(http://i.giphy.com/YhtHxgnva0Tja.gif)
Title: Re: Tail lights question
Post by: doubledragoncc on September 10, 2016, 01:45:10 PM
Cool

Model is looking good

DD