The next diagram (3) will show much the same process but with a cross corner shot. (To make this consistent the steps below are exactly like those above, but this is a cross corner shot rather than a cross side shot.)
Step 1: Draw a straight line from the OB to the cushion you intend to bank from. (Line A) (Where the CB is does not matter, as long as it is in position to make the bank.)
Step 2: Put your cue tip on the cushion where line A ends.
Step 3: Put the other end of your cue in line with the pocket you intend to bank to. Here I use an "orange" line, Line B. (make sure you put the pocket end of Line B at the best point of pocket entry to assure the best odds of making the shot. In this example, I placed the "orange" line there but have it going into the pocket away from the near tip.)
Step 4: Identify the pocket opposite on the table from the target pocket. (in this case the opposite corner pocket)
Step 5: Visualize a line between that opposite pocket and the center of the OB. (Line C). This is also called "drawing the X" because line B and C cross.
Step 6: Where Line B and C intersect, draw a line parallel to line A to the same banking cushion, -- Black line, to Point D. Point D is where OB needs to rebound to make it back in the opposite corner pocket.
Your contact point on the OB is directly on the opposite side of point D on the OB. Aim your CB at the OB with center hit (no english, top or bottom) and hit at medium speed. The OB will contact the cushion at point D, and bank into Pocket on opposite side.
Again, if you come up short, you hit to hard...long you hit too soft, assuming you put no side english on the CB. In that case you will throw the OB off path either way depending on english. Remember if you use english here the effect on the OB is reversed from what you put on the CB. That is why I suggest shooting these shots with NO english or top/bottom so the effects of ball speed, cushion compression/rebound, and english are minimized. Once you master this technique you can move on to hard/soft and english variations. Sometimes those shots come in handy if other balls are in the OB or CB path.
As with the above diagram, the if the CB is near the same position...say within a foot in any direction, you can use the same angle of cushion bank point (D) and contact point on the OB, you just need to aim the CB at the 1 ball a bit differently to maintain the "D" OB contact point hit.

Diagram 3