-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix road/node texture mismatch on "plain" roads #2
Comments
Cgameworld wrote: #1 (comment)
|
@Cgameworld there is no difference in the "6L grass road" VS "6L plain road" : But then again the vertices of the "6L plain road" are the same between node and segment meshes. So this is a dead end! EDIT: sorry the original message was not readable so I almost edited the whole message! |
In the picture bellow 4L road has smooth segment to junction transition but there is a APR texture missmatch for the 6L road.
After doing a few experiments it appears that only plain roads(no aymmetry/decoration/medians) have this problem.
sometimes CS stretches node texture WRT the segment texture before rendering them. In such circumstances blending in the segment texture to node texture can result into texture mismatch.
So far I look for grass/trees in the name of the road to determine if it has decoration and look for a lane with
laneType == None
to find medians. If so I shrink segment textures by 91%.Problem
I do not know what exactly to look for (is there a field or a flag I need to check) to distinguish such roads from one another and I do not know how much is the scaling factor.
###Need
Further notes
In the images bellow I put the segment texture underthe generated (by blending) node APR texture for 4L and 6L road:
related:
#1 (comment)
The text was updated successfully, but these errors were encountered: