Answer:
It is only legal if 1, you have their permission, and 2, they are over 18 years of age (21 in some areas). If you record them in the nude without their permission, you can face penalties of imprisonment and having to register as a sex offender. Or in the case of recording underage persons, this is production of child pornography, even if you do have their permission!