In March, Facebook Inc. agreed to pay $2 billion to buy virtual-reality startup Oculus VR, hankering to gain technology it hopes will transform the way people interact online.

Now, with the deal yet to close, another company is laying claim to an important part of Oculus's technology.

ZeniMax Media Inc., a Maryland-based maker of videogames,...