Indonesian KCIC 400AF Panel2.cfg problem
4 posters
Page 1 of 1
Indonesian KCIC 400AF Panel2.cfg problem
Hello,
I have downloaded the KCIC 400AF high speed train from this website:
KCIC - HOSHIRAIL PRODUCTION (weebly.com)
Unfortunately, the Panel2.cfg has been taken directly from another train and the Center and Origin coordinates are not well defined. I have tried to change the coordinates myself, but I'm not getting the desired effect. Can anyone help me fixing this train panel?
Thanks,
Jorge
I have downloaded the KCIC 400AF high speed train from this website:
KCIC - HOSHIRAIL PRODUCTION (weebly.com)
Unfortunately, the Panel2.cfg has been taken directly from another train and the Center and Origin coordinates are not well defined. I have tried to change the coordinates myself, but I'm not getting the desired effect. Can anyone help me fixing this train panel?
Thanks,
Jorge
jorgecerezo- Posts : 55
Join date : 2013-06-26
Northern Line likes this post
Re: Indonesian KCIC 400AF Panel2.cfg problem
I tried downloading that train and all I see is the digital numbers for speed but he panel itself is just see-through. The 3D train model outside is correctly displayed though. Is that what you mean?
dst- Posts : 5
Join date : 2024-07-02
Re: Indonesian KCIC 400AF Panel2.cfg problem
I have attached a screenshot that better explains what I mean. Can you see the panel is not centered with the rails?
https://drive.google.com/file/d/1j1n9boaTyW8Ui-TzAdhZmq69K2CbCC54/view?usp=drive_link
https://drive.google.com/file/d/1j1n9boaTyW8Ui-TzAdhZmq69K2CbCC54/view?usp=drive_link
Last edited by jorgecerezo on Thu Aug 15, 2024 9:20 pm; edited 1 time in total (Reason for editing : The screenshot is bigger than 0.5 Mb)
jorgecerezo- Posts : 55
Join date : 2013-06-26
Re: Indonesian KCIC 400AF Panel2.cfg problem
That is very interesting. For me it does not even display as much. The cab is just transparent. So sadly cannot help with that.
dst- Posts : 5
Join date : 2024-07-02
Re: Indonesian KCIC 400AF Panel2.cfg problem
jorgecerezo wrote:I have attached a screenshot that better explains what I mean. Can you see the panel is not centered with the rails?
https://drive.google.com/file/d/1j1n9boaTyW8Ui-TzAdhZmq69K2CbCC54/view?usp=drive_link
I'll have a gander at this and see what I can come up with
Northern Line- Posts : 329
Join date : 2011-07-12
Age : 31
Location : London, UK
Re: Indonesian KCIC 400AF Panel2.cfg problem
dst wrote:That is very interesting. For me it does not even display as much. The cab is just transparent. So sadly cannot help with that.
I figured the first problem with this. The panel2 image was 1024 x 826 which does not conform to the powers of 2 and likely didn't show as a result. Resizing the image fixed this problem. The last two things I will need to do to get the correct point where the cab is correctly facing is to do with:..
Center = X, Y Defines which pixel in the background image corresponds to the center of the screen for the default camera position. The relation between Center and Origin influences the yaw and pitch of the cab alignment.
and
Origin = X, Y (Where origin corresponds to the vanishing point which is roughly the point to which the two rails converge at the horizon on a straight piece of track
Explanations taken from the documentation section of the website in the Panel2.cfg section https://openbve-project.net/documentation_hugo/en/trains/panel2_cfg.html
Northern Line- Posts : 329
Join date : 2011-07-12
Age : 31
Location : London, UK
Re: Indonesian KCIC 400AF Panel2.cfg problem
Northern Line wrote:dst wrote:That is very interesting. For me it does not even display as much. The cab is just transparent. So sadly cannot help with that.
I figured the first problem with this. The panel2 image was 1024 x 826 which does not conform to the powers of 2 and likely didn't show as a result. Resizing the image fixed this problem.
I had actually opened the textures and it should have been obvious to me, thanks
Setting that to a power of two works.
Regarding the OP’s original problem, setting
- Code:
[size=12]Center = 517, 483
Origin = 517, 483[/size]
Seems to work well in setting a more appropriate center point.
dst- Posts : 5
Join date : 2024-07-02
Northern Line likes this post
Re: Indonesian KCIC 400AF Panel2.cfg problem
Hi dst,
Yes this seems to work very well when I put your variables in, though I will say I'm not as fond with the low res cab, and you can't find anything of the exact cab online (wherever I looked)
Yes this seems to work very well when I put your variables in, though I will say I'm not as fond with the low res cab, and you can't find anything of the exact cab online (wherever I looked)
Northern Line- Posts : 329
Join date : 2011-07-12
Age : 31
Location : London, UK
Re: Indonesian KCIC 400AF Panel2.cfg problem
Thanks dst. I have also implemented your coordinates. The result is much better, although the rails can not be very clearly seen.
https://drive.google.com/file/d/1JslvolZK6wqzWnHFksoXecjTpgCEMzkk/view?usp=sharing
Strangely, I have found a video of this train with the panel coordinates well defined, I think it could be used as a reference.
https://www.youtube.com/watch?v=DOpAgzk8ryw
https://drive.google.com/file/d/1JslvolZK6wqzWnHFksoXecjTpgCEMzkk/view?usp=sharing
Strangely, I have found a video of this train with the panel coordinates well defined, I think it could be used as a reference.
https://www.youtube.com/watch?v=DOpAgzk8ryw
Last edited by jorgecerezo on Wed Aug 21, 2024 9:23 pm; edited 1 time in total (Reason for editing : Forgot the link)
jorgecerezo- Posts : 55
Join date : 2013-06-26
Re: Indonesian KCIC 400AF Panel2.cfg problem
The latest build should make the texture display a bit more reliably.
The actual issue was that the texture is a specific type interlaced PNG, which my decoder was failing to handle correctly. The fallback GDI+ decoder doesn't always like these (non-Windows?).
I've also tweaked the panel origin co-ordinates (if hacks are enabled), to give a view of the track.
It wants rotating down a bit really to make this look perfect, but I don't have an immediate way to do this from within the hacks interface. Will think on that a bit. (Rotation is applied as a N degrees per second to the final camera pos, not an absolute figure)
The actual issue was that the texture is a specific type interlaced PNG, which my decoder was failing to handle correctly. The fallback GDI+ decoder doesn't always like these (non-Windows?).
I've also tweaked the panel origin co-ordinates (if hacks are enabled), to give a view of the track.
It wants rotating down a bit really to make this look perfect, but I don't have an immediate way to do this from within the hacks interface. Will think on that a bit. (Rotation is applied as a N degrees per second to the final camera pos, not an absolute figure)
Northern Line likes this post
Similar topics
» Indonesian Trains and Objects
» Another interesting website for Indonesian Rolling Stock
» DigitalGauge Panel2.cfg
» Horn lever in panel2 cab
» Cab/Panel2.cfg - any way of achieving a "Radial LED" digital gauge ?
» Another interesting website for Indonesian Rolling Stock
» DigitalGauge Panel2.cfg
» Horn lever in panel2 cab
» Cab/Panel2.cfg - any way of achieving a "Radial LED" digital gauge ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum