Socket Programming in Celestia

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
madamx
Posts: 1
Joined: 28.11.2018
With us: 5 years 11 months

Socket Programming in Celestia

Post #1by madamx » 28.11.2018, 03:48

i'm student of college, i get final project about celestia, i must make a socket programming to comunication data within computer where a image capture in celestia can be send in other computer, using UDP but i dont know what must i do? someone can tell me.... please

onetwothree
Site Admin
Posts: 706
Joined: 22.09.2018
With us: 6 years 2 months

Post #2by onetwothree » 28.11.2018, 08:40

Hi madax,

You sh'ld start with src/celestia/imagecapture.cpp. It provides 2 methods: CaptureGLBufferToJPEG and CaptureGLBufferToPNG. Unfortunately they write to files only so you sh'ld implement methods writing to a memory buffer instead. Then add a simple UDP server sending content of those buffer to clients. You can make your job easier if instead of implementing new methods you'll use temporary files.


Return to “Help Central”