Socket Programming in Celestia
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.
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.
Socket Programming in Celestia
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
-
- Site Admin
- Posts: 706
- Joined: 22.09.2018
- With us: 6 years 1 month
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.
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.