#Generic license plate (need help to finish)

1 messages · Page 1 of 1 (latest)

round pine
#

Hello everyone i am looking for help to release a mod to help everyone with custom license plate

The idea come from the fact that every vehicle got the same plate or the plate of their basic texture

My idea was to use a mix between multi pbr material and script (kind like RHS did for their tracks)

What i have done so far:

  1. make a basic texture for the plate with fix number (i use the french license palte army system) (more info here: https://s294984131-onlinehome-fr.translate.goog/Marquages-immatriculation.htm?_x_tr_sch=http&_x_tr_sl=auto&_x_tr_tl=fr&_x_tr_hl=fr&_x_tr_pto=wapp#:~:text=L'immatriculation des véhicules militaires de l'armée française depuis 1945&text=A partir de 1943%2C suite,série 400 000 sans lettre.)
755-0012: Jeep
7 digits → 1960 < vehicle < 1980

7 → Air Force since 1970
5 → Year 1975
5 → VLTT ... reconditioned
0012 → Vehicle registration
  1. i have make a mask base on RVB technique learn i dont remeber when with Bacon and cassburn here https://wiki.nabla.sh/books/3d-building-creation-tutorial/page/creating-texture-masks-in-substance-painter (picture 2)
#

the idea on the paper seems to work but i have two trouble:

  • my mask put htis grey square that i want to be invisble and let only the number
  • i dont know ho to make my number black
stuck steeple
#

I guess you need alpha blend, you dont need pbr multi for this

round pine
ember mural
#

Very cool, I actually thought of doing the same thing some time ago when making my own humvee versions, but other projects took priority. Looking forward to seeing this finished

dry jetty
round pine
dry jetty
round pine
round pine
#

Update:

Thanks to @chrome forge and @dry jetty for the tips

We successfully fix the system that Thurston00 and Jacob-Mango

Still have to tweak the system for the generation and the fbx model (wrong axe and upgrade of the 3d from @olive portal)

dry jetty
#

Now just for my records. This is a string rendered to a texture, pushed onto the plate? I need to do this myself for signs.

chrome forge
#

its a texture you can place in the world (rttexture) so yeah can input string and imgs

dry jetty
#

Hawt.

stuck steeple
#

UI layout on model, basically

round pine
#

#2nd phase:

  • redo the fbx
  • apply texture to it (still need to improve
  • try to add custom font to be clsoer to the orignal plate)
  • modify a bit the layout (still need to find how to make the letter higher) (maybye the change of the font will work)
dry jetty
#

Is the bottom dynamically rendered? If so, that's pretty impressive

round pine
dry jetty
#

Ah ok. I was about to say you did a really freaking good job 😂

#

Now just coming from a graphic design background. Do you want to create that kind of beveled look. Have an off-white and offsetted text and then throw the black text on top and it'll give it that raised look. It won't catch late but it will visually work.

Alternatively, your first go where you were thinking about building individual block. I'm also going to go that route as well but for larger base labels. Those being prefabs can catch light.

But I think that's overkill for a license plate. You don't need it to be blocky and have real light catching ability

stuck steeple
#

you can use two rendertargets, one for BCR one for NMO, but I dont remember if the NMO one even works

#

another alternative that you could try is using planes as DIY decals and change their UV coordinates across an atlas made out of numbers

#

you could have a texture atlas composed of randomized numbers, and 4 planes for the numbers with UVs in different places, and then simply offset the UV by an X * random value in any direction to get pseudorandom plates

dry jetty
#

Yeah that's the decal route. Now would you have a NMO atlas as well to provide the depth? (If it works)

stuck steeple
#

didnt have time to make it look pretty but it should help you get goin if you want this approach

#

in my case the offset is randomized, but in your case you probably want the plate to be the same in front and back, so you could take the parent vehicle's entity ID and use it as a source for the offsets somehow or whatever

or generate it from within the vehicle and RplProp it so its the same for everyone

#

I think it's always better to do something without rendertargets if you can

round pine
#

i dont know how to sync your method with a scripting part to be able use it outside the texture

stuck steeple
#

if your atlas has numbers in numeric order (instead of random) then you can take the used offset as the number

round pine
#

but i agree with you the render target might be to heavy and not optimize for performance

#

i dont know what to do anymore 😂 your version seems to be more optimize but i am not sure how to code it, here i was jsut fixing the code from everon life team

that might delay a potential release meowsweats

stuck steeple
#

so you could do atlas with numbers like 0123456789, then offset 0 is 0, offset 5 is 5

round pine
stuck steeple
#

I think my approach is more complex yeah

round pine
# stuck steeple I think my approach is more complex yeah

your are way to ahead of me, the skill difference is to big 😂 but i take down note

I rember that you have import a custom font for the cursed mod are you able to describe the process to convert the TTF in FNT ?

i tried to use it to be more close to the boehemia font (if bohemia see this post and can give the font use in the vanilla game for the licence will be much apreciate but i dont know who to ask)

So the close i fond was this one: https://www.leewardpro.com/articles/licplatefonts/font-din1451.html

stuck steeple
#

idk I just dropped ttf into the project

round pine
stuck steeple
#

it converts the font

#

put the ttf in your project folder then double click it in wb and u can convert it

round pine
#

i am not sure, let me try to reimport it rather than put it inside the mdoe folder

stuck steeple
#

this is how u make the font u can use in ui

round pine
#

everytime i try to import a font

i feel so dumb meowsweats

#

it work when i moove it manualy (without the import from the WB)

#

i will ask in the generic channel to pray that BI have a explanation ^^ it the mean time i put the file here in case of it work on your end (taht could be a misconfigurtiaon in my WB)

stuck steeple
round pine
#

i can generate the bitmap

how it was that sorry

#

thanks again boss

stuck steeple
#

yeah it kinda has to bake the glyphs you want to use into an atlas or something like that

round pine
#

i will write it down in the unofficial wiki

stuck steeple
#

you could also use an atlas of your own with your widgets in the layout, maybe even use multiple render targets for NMO also but I dont know if this works

round pine
#
  • update with an other font, i still need to fid the correct font for it
stuck steeple
#

would be dope to make a nice system for this

round pine
round pine
#

This is the closest i succeed to go, i dont know how to expand a bit the letter to be more close the the vanilla one

round pine
#

i have duplicate the prefab to allow people create their config of their plate

jolly shore
#

Hey. Can I ask you how you got it to work? Is it possible to change UV offset from script with MatPBRBasic or you have to use a different shader class?