brett.morris Posted December 7, 2011 Share Posted December 7, 2011 Hi All, I am currently rendering a moon object in the world using a billboard placed at an appropriate distance from the player such that it looks correct. My problem is extending this solution with multiple cameras in the world as the moon position is relative to each camera. Is there a way to change the position of a billboard on a per camera basis? Otherwise the moon is only in the correct position for the camera it was placed relative to. Alternatively is there a better method for displaying a moon other then billboards. Link to comment
ivan.cuevas Posted December 7, 2011 Share Posted December 7, 2011 One suggestion is to have a moon for each player and use Player::setViewportMask and Object::setViewportClass in case each camera is rendered in different viewports. If there is only one viewport for all those cameras, you can reparent the moon and use Node::get/setWorldTransform. Link to comment
Recommended Posts