Comparison of adjectives means changing their degree. There are three degrees:
positive is the basic dictionary form and meaning of the adjective
comparative, in English, can be the “-er” form of the adjective, or instead you could add “more”, “rather”, or “too” before the word
superlative, in English, can be the “-est” form of the adjective, or instead you could add “most”, “very”, or “extremely” before the word
To form the comparative, start by getting the stem from the 2nd principal part (minus its ending, whatever it happens to be). To the stem, add -ior to get the masculine/feminine nominative singular comparative form.
e.g. tristis, triste = sad > tristior = sadder
The genitive singular of the comparative is stem + -iōris, telling you that this will use 3rd declension endings -- no matter which declension the positive form was. Unlike positive adjectives of 3rd declension, comparatives use the normal, not i-stem, set of endings.
For neuter comparatives, the “3rd declension whatever” for nominative (and, by extension, accusative, because neuter) singular is -ius instead of -ior. The genitive doesn’t change, though, still using -iōris to be the basis for other forms aside from the nom/acc singular.
Comparing in sentences: there are two ways to use comparatives to directly compare two nouns to each other.
quam: Put quam between the first and the second noun to be compared, and make them the same case.
e.g. Mārcus trīstior quam Lūcius est. = Marcus is sadder than Lucius. Vīdī Mārcum trīstiōrem quam Lūcium esse. = I saw that Marcus was sadder than Lucius.
ablative of comparison: As long as the first noun to be compared is nominative or accusative, you can skip quam and instead make the second noun ablative.
e.g. Mārcus trīstior Lūciō est. = Marcus is sadder than Lucius. Vīdī Mārcum trīstiōrem Lūciō esse. = I saw that Marcus was sadder than Lucius.