Removing Black or Blue Rectangles from behind Objects
+4
graymac
thehoviskid
92220
johnsinden
8 posters
Page 1 of 1
Removing Black or Blue Rectangles from behind Objects
Hope you've all had a great Christmas and looking forward to the New Year. My query is simply this - how can you remove the annoying black, sometimes blue or dark brown rectangles from behind some of the objects (mainly trees, shrubs and bushes) particularly in BVE 4 Routes. Other annoying features are the grey rectangular shapes "behind" the tops of the catenaries. Have tried to do this myself, but either end up removing the whole object (tree, bush etc) or end up with a white rectangle which hides the scenery behind it. There must be a simple solution, any ideas???
Cheers,
John
Cheers,
John
johnsinden- Posts : 210
Join date : 2011-09-19
Age : 72
Location : Southampton, UK
Re: Removing Black or Blue Rectangles from behind Objects
.
Last edited by lonelyinardwick on Wed May 13, 2020 5:27 am; edited 1 time in total
Guest- Guest
Re: Removing Black or Blue Rectangles from behind Objects
Thanks Wongie, but that's all gobbledigook to me, perhaps you could explain to me how you do that......?
Cheers,
John
Cheers,
John
johnsinden- Posts : 210
Join date : 2011-09-19
Age : 72
Location : Southampton, UK
Re: Removing Black or Blue Rectangles from behind Objects
.
Last edited by lonelyinardwick on Wed May 13, 2020 5:27 am; edited 1 time in total
Guest- Guest
Re: Removing Black or Blue Rectangles from behind Objects
Each texture has a file related to it. The texture (image) should be in RGB mode for it to work properly.
So if the image background is black, after the image is loaded in a CSV file, it should say
SetDecalTransparentColor,0,0,0,
However in a B3D file it should say
Transparent 0,0,0
If the image background is blue the values are 0,0,255
One of the problems with old routes is sometimes one or more of the values is set to 256, and OBVE complains about this as an error.
The you get the texture that no matter what you do still presents a black square, in which case what I do is make it blackest black with my "paint program"; for example People17 is very annoying in certain routes.
So if the image background is black, after the image is loaded in a CSV file, it should say
SetDecalTransparentColor,0,0,0,
However in a B3D file it should say
Transparent 0,0,0
If the image background is blue the values are 0,0,255
One of the problems with old routes is sometimes one or more of the values is set to 256, and OBVE complains about this as an error.
The you get the texture that no matter what you do still presents a black square, in which case what I do is make it blackest black with my "paint program"; for example People17 is very annoying in certain routes.
Last edited by 92220 on Thu Dec 29, 2011 12:39 pm; edited 1 time in total (Reason for editing : Values corrected)
92220- Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England
Re: Removing Black or Blue Rectangles from behind Objects
that's all gobbledigook to me,
This is to let "clueless newbies" know that the person using the "gobbledigook" is a "leet programmer". The fact that the "clueless newbie" might find it "weird and disturbing" doesn't filter up to their elevated level.
You could try "The Eejits Guide to Object Building" available at GrayMac's site. This doesn't use "gobbledigook".
http://www.celtictrainsim.com/
P.S. For "weird and disturbing" read "cold, unwelcoming, and unfriendly to newcomers" and yet they wonder why there is nobody rushing forward to become developers.
Last edited by 92220 on Thu Dec 29, 2011 1:30 pm; edited 1 time in total (Reason for editing : Clarification)
92220- Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England
Re: Removing Black or Blue Rectangles from behind Objects
92220 wrote:
If the image background is blue the values are 0,0,225
*cough* 255, surely.....
thehoviskid- Posts : 146
Join date : 2011-07-09
Age : 47
Location : Heysham
Re: Removing Black or Blue Rectangles from behind Objects
*cough* 255, surely.....
Yea. that's a great idea. Thanks for being awake. I'm obviously not. Need more coffee.
92220- Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England
Re: Removing Black or Blue Rectangles from behind Objects
This problem is only found in BVE4 era routes as the problem is due to the way that BVE4 can accept transparent "marker" colours that aren't quite the right shade of Blue, Black, Green, etc. No one really knows why this is the case, but that's irrelevant really.
To fix the problem, there are 2 options available to you.
1, Download the openBVE compatible version if there is one which, shouldn't have the issue.
2, If the route doesn't/ wont get and openBVE version. Your left with correcting the transparent "marker" colour yourself. It's complicated to explain but not actually that hard to do, just time consuming if their are lots of textures to do.
1, Navigate to the object folder for the route, found in the openBVE folder under "routes/objects".
2, Open a texture with a photoeditor like paint.net (its free to download), best to start with the first in the list.
3, If its got a transparent area (the blue, black or green etc) you need to change the colour to one of the following RGB values(Depending on the colour).
For Blue use RGB Value: 0,0,255
For Green use 0,255,0
For Red use 255,0,0
for Black use 0,0,0
4, Save the change and do the same for all the textures in that folder and any sub folders present.
To fix the problem, there are 2 options available to you.
1, Download the openBVE compatible version if there is one which, shouldn't have the issue.
2, If the route doesn't/ wont get and openBVE version. Your left with correcting the transparent "marker" colour yourself. It's complicated to explain but not actually that hard to do, just time consuming if their are lots of textures to do.
1, Navigate to the object folder for the route, found in the openBVE folder under "routes/objects".
2, Open a texture with a photoeditor like paint.net (its free to download), best to start with the first in the list.
3, If its got a transparent area (the blue, black or green etc) you need to change the colour to one of the following RGB values(Depending on the colour).
For Blue use RGB Value: 0,0,255
For Green use 0,255,0
For Red use 255,0,0
for Black use 0,0,0
4, Save the change and do the same for all the textures in that folder and any sub folders present.
LabRatAndy- Posts : 101
Join date : 2011-08-29
Re: Removing Black or Blue Rectangles from behind Objects
Thanks very much for all that advice - I'm going to have a go at this and will let you all know of the outcome.
Cheers,
John
Cheers,
John
johnsinden- Posts : 210
Join date : 2011-09-19
Age : 72
Location : Southampton, UK
Re: Removing Black or Blue Rectangles from behind Objects
I have modified many routes from BVE 4 to openBVE. I use the Czech programme Zoner Photo Studio (ZPS) which is able to show not only the image of the object but also appropriate file .csv or b3d. I open the file .csv and if the the colour is defined as 0,0,255 and you see blue colour which is not transparent, it means that the author used blue colour but a little darker or lighter. It is necesary to edit the colour. It means that I select blue colour 0,0,255 and replace with this correct colour not correct blue.
The problem is that it takes some time, I modified for example one route with many objects 3 hours, it needs "lead backside".
Sorry for my not perfect English!
The problem is that it takes some time, I modified for example one route with many objects 3 hours, it needs "lead backside".
Sorry for my not perfect English!
vpodhola- Posts : 39
Join date : 2011-10-30
Age : 81
Location : Hradec Kralove, Czech Republic
Re: Removing Black or Blue Rectangles from behind Objects
Anyway, you got the hang of it now!
busheyheath- Posts : 297
Join date : 2012-01-05
Location : Netherlands
Re: Removing Black or Blue Rectangles from behind Objects
Thank You for your suggestions Vpodhola, which, given time, I'll have an attempt at solving. Your English is excellent and is much better than my Czech...!
Regards,
John
johnsinden- Posts : 210
Join date : 2011-09-19
Age : 72
Location : Southampton, UK
Re: Removing Black or Blue Rectangles from behind Objects
johnsinden wrote:
Thank You for your suggestions Vpodhola, which, given time, I'll have an attempt at solving. Your English is excellent and is much better than my Czech...!
Regards,
John
Nice.
Re: Removing Black or Blue Rectangles from behind Objects
Just to the topic - many older routes for BVE have the transparency problem because of the following: they use old *.bmp textures, which have 8-bit resolution. The transparency problem is a problem of conversion, since many of the textures were originally created as 16- (or 32-) bit and then converted to 8-bit. During the conversion, the blue color (255,0,0) is converted into 252,4,2 or something like that. The problem is analogical green or red color.
Therefore my suggestion is to detect the actual color with any graphic software and then ovewriting the line "SetDecal..." to the color you have found. It saves time.
Therefore my suggestion is to detect the actual color with any graphic software and then ovewriting the line "SetDecal..." to the color you have found. It saves time.
Last edited by Derryck on Thu Jan 12, 2012 12:12 pm; edited 2 times in total
Re: Removing Black or Blue Rectangles from behind Objects
Thanks Derryck! If only I'd known that before I "fixed" the textures in Clarendon.
92220- Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England
Re: Removing Black or Blue Rectangles from behind Objects
Either way would work.
For me changing the colour makes more sense, I think it would be the quicker method but do whichever is easiest for you.
For me changing the colour makes more sense, I think it would be the quicker method but do whichever is easiest for you.
LabRatAndy- Posts : 101
Join date : 2011-08-29
Similar topics
» Removing zh locale from documentation
» Blue Comet Route Project
» Developing the Blue Mountains Line/Found Bruce Kennewell!!!
» What is black box?
» Routes Are pitch Black Everywhere!
» Blue Comet Route Project
» Developing the Blue Mountains Line/Found Bruce Kennewell!!!
» What is black box?
» Routes Are pitch Black Everywhere!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|