how to implement spout?

Asked by hessi kaveh

I want to get stellarium viewport in another software as a texture, so I want to implement Spout(http://spout.zeal.co/) in stellarium to be able to broadcast a texture but I dont have a clue how to do it.Could anyone Please push me in the right direction?
and I also dont know how to use an external library in stellarium code in general (I use VisualStudio by the way!)

Question information

Language:
English Edit question
Status:
Solved
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Solved by:
hessi kaveh
Solved:
Last query:
Last reply:
Revision history for this message
gzotti (georg-zotti) said :
#1

Sure, I want that too :-). We also had a request to implement Siphon (for MacOS). Somebody must find out how to use Spout, I suggest you do it. Check out a branch and try it!
Adding external libraries: See several examples in Stellarium's code directory.

Revision history for this message
hessi kaveh (hesam-kaveh) said :
#2

I currently managed to do this:
https://drive.google.com/file/d/0B3AXCpr5o5fScGtkZUpjb0E3UEE/view?usp=sharing

but I only get a Milkyway background and what my plugin draws;
how can I solve this?

Revision history for this message
gzotti (georg-zotti) said :
#3

I have no idea how you even did just that, but congratulations, it looks very interesting.

If you share your branch of sourcecode on Launchpad and are willing to describe what you have to do to get spout working, and how to use that "live" texture e.g. in Unity, and are willing to contribute your development to the project (GPL), there would be even more interest here. Apparently "getting Stellarium to render a texture for Syphon, Unity, Spout, 5-port dome projection, ..." and whatnot is the big demand of the month.
I am too busy until at least late March to get also deeply involved in this, but maybe I have a few ideas. Or anybody else of course.

Revision history for this message
hessi kaveh (hesam-kaveh) said :
#4
Revision history for this message
gzotti (georg-zotti) said :
#5

Great! Now I am to ask how you did it. Are you willing to provide a plugin?

Revision history for this message
hessi kaveh (hesam-kaveh) said :
#6

I couldn't do it in plugins so I implemented it in stellarium main code. In
stelMainView code to be exact! I will publish it soon.

On Wed, Feb 17, 2016, 18:38 gzotti <email address hidden>
wrote:

> Your question #285284 on Stellarium changed:
> https://answers.launchpad.net/stellarium/+question/285284
>
> gzotti posted a new comment:
> Great! Now I am to ask how you did it. Are you willing to provide a
> plugin?
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
gzotti (georg-zotti) said :
#7

Any update on your development?

Revision history for this message
M Roe (max-roessner) said :
#8

Great work! I wonder if/when this feature will be added to the mainstream Stellarium release?

Revision history for this message
gzotti (georg-zotti) said :
#9

Is hessi kaveh willing to contribute the code?

Revision history for this message
hessi kaveh (hesam-kaveh) said :
#10

Hi, I developed the code on my work computer so I had to check with my
superintendent and he didnt allow me to publish my code!

On Mon, Oct 10, 2016, 18:27 gzotti <email address hidden>
wrote:

> Your question #285284 on Stellarium changed:
> https://answers.launchpad.net/stellarium/+question/285284
>
> gzotti posted a new comment:
> Is hessi kaveh willing to contribute the code?
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
gzotti (georg-zotti) said :
#11

Well, I hope your superintendent did not sell your code? Else there may be a conflict with the GPL, apart from moral issues. Or maybe I should hope he did?

Revision history for this message
hessi kaveh (hesam-kaveh) said :
#12

No, he did not. But he wants to use the code with another software which
the company wants to sell and I dont know how the licensing is applied to
that software

On Tue, Oct 11, 2016, 01:28 gzotti <email address hidden>
wrote:

> Your question #285284 on Stellarium changed:
> https://answers.launchpad.net/stellarium/+question/285284
>
> gzotti posted a new comment:
> Well, I hope your superintendent did not sell your code? Else there may
> be a conflict with the GPL, apart from moral issues. Or maybe I should
> hope he did?
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
gzotti (georg-zotti) said :
#13