Page 1 of 1

Camera and gunmounts changes

Posted: Sun Sep 22, 2013 8:18 pm
by robn
Hey modders,Just wanted to draw your attention to recent changes in the way camera and gunmounts are specified.Up until now, their positions and orientations have been set via the camera_offset and gun_mounts fields in the ship def. These two fields are now deprecated, and will be removed in a few weeks (once all the core ships have been updated).In their place, you now set up tag points in the model itself. You can independently specify the position and orientation of all six internal cameras and both gun points. Its not quite where we want it to be, but its more flexible than what we currently have and sets us up well for the future, and doesn't require artists to muck about with numbers in the def file, which is a good thing!Further reading:[url]https://github.com/pioneerspacesim/pioneer/pull/2422[/url] will be in the next build, available from the homepage in the next hour or two. Until they're updated, you'll start to see deprecation warnings in stdout.txt. After those ship def fields have been removed, the ship origin will be used for all points. So models not updated will continue to work after a fashion.

RE: Camera and gunmounts changes

Posted: Tue Sep 24, 2013 4:54 am
by NiankoSensei
the tag for guns are tag_gunpoint_N (like the wiki) or tag_gunmount_N ? (like github)

RE: Camera and gunmounts changes

Posted: Tue Sep 24, 2013 9:16 am
by robn
the tag for guns are tag_gunpoint_N (like the wiki) or tag_gunmount_N ? (like github)tag_gunmount_N. I made a mistake on the wiki, which I've now fixed. Thanks!

RE: Camera and gunmounts changes

Posted: Tue Sep 24, 2013 9:41 am
by NiankoSensei
thank you for the clarification