Supporting Content Generation In Virtual Environments Based On Optimization