The online racing simulator
LEMON ADIEU
(5 posts, started )
LEMON ADIEU
Vehicle mod: LEMON ADIEU
Details page: https://www.lfs.net/files/vehmods/3112F6

SHORT DESCRIPTION:
Quote :A classic 1930's French FWD getaway car

DESCRIPTION:
Quote :The Lemon Adieu is a 1934-1957 fantasy sedan made in France.

With a front wheel drive, a synchronized gearbox and a monocoque body, it was quite ahead of its time. Famous for its great road-holding abilities and low weight, this car was a popular getaway vehicle among gangsters.

It is not the fastest one, but quick enough to get Jean-Paul out of the prison.

Are there any comics fans? Because this mod comes in an exclusive cartoon graphics (which can be turned on and off).

COVER SCREENSHOT:
Wow, how did you make it have a contour around?
Sorry, it is a secret recipe.

Ok, April Big grin

The best looking solution is to code a simple edge detector directly into the LFS post-processing shader.

However, this will not work online, because all players need to have the same shader. Therefore I made up a simple geometric workaround. The black contour is just a blackened and up-scaled model of the car body which encapsulates the actual body. The LFS uses (almost every game does) a back-face culling optimization technique - the triangles can be seen from only one side (if not set otherwise). To prevent contour from hiding the actual body, it has simply flipped normals (triangles). Therefore, only the back side of the contour is being rendered.

There are several limitations of this method:
- it creates characteristic artefacts on non-convex objects
- it may stop working in the future due to LFS graphical updates (may spoil dynamic lights or the environment mapping for example)
- it is suitable for low-poly models only

As far as I know, currently this mod is the only one with such graphical feature. But who knows, maybe this recipe will inspire some other modders Smile
Ah, makes sense now. Impressive!
Interesting work and another iconic Citron!

LEMON ADIEU
(5 posts, started )
FGED GREDG RDFGDR GSFDG