Page MenuHomeFeedback Tracker

More flexibility for class MFD clip
New, WishlistPublic

Description

Im talking about clipTL and clipBR
need to be able to clip negative areas (i.e. create holes in a HUD element where it wont be drawn)

also need to be able to clip diagonally and optimally in curves as well.

Im thinking something like function support for the clip tools such as:

clipL [] {(((y-0.5)*(y-0.5))/10)} which would basically draw a line like "(" on the left side of the HUD and everything left of that line is clipped out. (there would need to be X and Y variables which you could use in the function (X variable for clipT and clipB and Y variable for clipL and clipR)

for the hole cutting thing, it should be usable within an element, so maybe something like
class Draw {
class randomElement {

		clipL[] = {(((y-0.5)*(y-0.5))/10)};
		clipR[] = {(1-(((y-0.5)*(y-0.5))/10))}; // would clip the HUD like (  )
		hole1[] = {{0.45, 0.45}, {0.55, 0.55}}; // would create a 0.1x0.1 hole in the center of the draw area where this element would not be drawn
		points[] = {...};

};
};
it would be great if there could be more than 1 hole in each element, so maybe like hole1[], hole2[]

Details

Legacy ID
1808749102
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

Olli_ edited Steps To Reproduce. (Show Details)Sep 5 2014, 7:15 PM
Olli_ edited Additional Information. (Show Details)
Olli_ set Category to Feature Request.
Olli_ set Reproducibility to N/A.
Olli_ set Severity to None.
Olli_ set Resolution to Open.
Olli_ set Legacy ID to 1808749102.May 7 2016, 7:23 PM
Bohemia added a subscriber: AD2001.Sep 5 2014, 7:15 PM
Olli_ added a subscriber: Olli_.May 7 2016, 7:23 PM
Olli_ added a comment.Sep 5 2014, 7:20 PM

Btw i realize that it is possible to mask out holes in a hud element by duplicating the class and using clipTL and clipBR to render only around the masked area. This trick works fairly well but once you start having 10+ holes in the HUD element and 5+ elements that need to not be drawn in those holes, you start having hundreds of classes and it just all becomes quite very complicated.