A precursor to the TNG holodeck, here is a scene from the animated episode, “The Practical Joker” featuring the Enterprise recreation deck.  It can recreate and simulate most any environment.