BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Indonesian KCIC 400AF Panel2.cfg problem

4 posters

Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Indonesian KCIC 400AF Panel2.cfg problem

Post by jorgecerezo Thu Aug 08, 2024 11:42 pm

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

jorgecerezo

Posts : 55
Join date : 2013-06-26

Northern Line likes this post

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by dst Thu Aug 15, 2024 11:37 am

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

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by jorgecerezo Thu Aug 15, 2024 9:12 pm

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


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

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by dst Fri Aug 16, 2024 9:33 am

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

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by Northern Line Mon Aug 19, 2024 8:42 pm

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  Cool
Northern Line
Northern Line

Posts : 329
Join date : 2011-07-12
Age : 31
Location : London, UK

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by Northern Line Tue Aug 20, 2024 2:32 am

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
Northern Line

Posts : 329
Join date : 2011-07-12
Age : 31
Location : London, UK

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by dst Tue Aug 20, 2024 7:42 am

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

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by Northern Line Wed Aug 21, 2024 4:17 am

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)
Northern Line
Northern Line

Posts : 329
Join date : 2011-07-12
Age : 31
Location : London, UK

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by jorgecerezo Wed Aug 21, 2024 9:16 pm

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


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

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by leezer3 Sun Aug 25, 2024 9:03 pm

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)

leezer3

Posts : 1978
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Northern Line likes this post

Back to top Go down

Indonesian KCIC 400AF Panel2.cfg problem Empty Re: Indonesian KCIC 400AF Panel2.cfg problem

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum