×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Collimation Circles

  • Posts: 139
  • Thank you received: 31

Replied by Marc on topic Collimation Circles

Source of sct-colim if you have basic skills in compilation and can't wait ...

- Marc
4 years 1 week ago #50925
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

I have it running... but it's not transparent. The circles resize nicely and change colors. (pretty neat)

Now what I did was replace the sample main.c that is auto built by CodeLite. It's an Executable GUI GTK 2.4/C project.
4 years 1 week ago #50931

Please Log in or Create an account to join the conversation.

  • Posts: 139
  • Thank you received: 31

Replied by Marc on topic Collimation Circles

Try to start if from a terminal and see if it says "supports_alpha = TRUE"
If it says "supports_alpha = FALSE" then your X server does not support alpha blending.
In that case, it's not possible to have transparency.

You can also try :

xdpyinfo | grep -i render

If it says RENDER, then the Xrender extension which deals with the alpha blending is installed.
If not, well... Bad news :(

What is your set up ? distro, X server, (Xorg, Wayland ?) PC, Raspberry ?

- Marc

Last edit: 4 years 1 week ago by Marc.
4 years 1 week ago #50932
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

It does say:
supports_alpha = TRUE
and
RENDER

I'm running Raspberry Pi4 using Raspbian. I complied with CodeLite as "Executable GUI GTK 2.4/C project"

Last edit: 4 years 1 week ago by David Tate.
4 years 1 week ago #50933
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 139
  • Thank you received: 31

Replied by Marc on topic Collimation Circles

Maybe your Window Manager is blocking transparency. You should look at you WM setup.
Or, it can be VNC blocking alpha channel (limited number of colors) to speed up the cnx.
If you are connecting through VNC, try to connect directly with a mouse, kbd and screen.
If it works, then the problem comes from the VNC side. If not, then the problem comes from your WM.

If it comes from VNC, try to set 32bits colors. (Will slow down your cnx !)

Also try to skip CodeLite and just build with

gcc $(pkg-config --libs --cflags gtk+-2.0) main.c -o sct-colim

Anyway, I don't have raspi4 nor stellarmate, so it is not easy to help you beyond that point.

- Marc
Last edit: 4 years 1 week ago by Marc.
4 years 1 week ago #50948

Please Log in or Create an account to join the conversation.

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

Running it directly without noNVC made no difference.

and running sct-solim after your build line is still showing non-transparently.


But using your build line I see the following output:
(the font is not helping you see the warnings... it's pointing to: *window and win and *widget).

gcc $(pkg-config --libs --cflags gtk+-2.0) main.c -o sct-colim
main.c: In function \u2018main\u2019:
main.c:38:27: warning: passing argument 1 of \u2018gtk_window_set_position\u2019 from incompatible pointer type [-Wincompatible-pointer-types]
gtk_window_set_position (window, GTK_WIN_POS_CENTER);
^~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from main.c:1:
/usr/include/gtk-2.0/gtk/gtkwindow.h:195:70: note: expected \u2018GtkWindow *\u2019 {aka \u2018struct _GtkWindow *\u2019} but argument is of type \u2018GtkWidget *\u2019 {aka \u2018struct _GtkWidget *\u2019}
void gtk_window_set_position (GtkWindow *window,
~~~~~~~~~~~~~~~~~~~~~^~~~~~
main.c: In function \u2018clicked\u2019:
main.c:145:10: warning: passing argument 1 of \u2018expose\u2019 from incompatible pointer type [-Wincompatible-pointer-types]
expose( win, NULL, NULL);
^~~
main.c:89:35: note: expected \u2018GtkWidget *\u2019 {aka \u2018struct _GtkWidget *\u2019} but argument is of type \u2018GtkWindow *\u2019 {aka \u2018struct _GtkWindow *\u2019}
static gboolean expose(GtkWidget *widget, GdkEventExpose *event, gpointer userdata)
~~~~~~~~~~~^~~~~~
Last edit: 4 years 1 week ago by David Tate.
4 years 1 week ago #50950

Please Log in or Create an account to join the conversation.

  • Posts: 139
  • Thank you received: 31

Replied by Marc on topic Collimation Circles

If you are using Mate WM, go to Mate tweaks Chose Window -> Window Manager. See if one of the options works.
I don't use other Window Managers.

- Marc
4 years 1 week ago #50954

Please Log in or Create an account to join the conversation.

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

No, I'm running this with the new release and that uses Raspbian. So I've been using CodeLite.
MATE doesn't seem to have a release for Raspbian.

But don't let me stop you in anyway. I'm sure there are others here more capable to test this out.
4 years 1 week ago #50955

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 7

Replied by Matteo on topic Collimation Circles

When I use Ekos Polar alignment assistant and I select the reference star, there is an useful little circle to identify the star to bring in the crosshair. When I move the knobs, the circle follows the star.
What about using the same approach to follow the reference star donut with the double circle overlay?
The following user(s) said Thank You: MH
1 year 11 months ago #82156

Please Log in or Create an account to join the conversation.

  • Posts: 51
  • Thank you received: 4

Replied by Richard Hornby on topic Collimation Circles

Hi Marc

I've had sct-colim working well in Manjaro for a year or so and now want to port it to my Raspberry OS 64 to use on the mount. Unfortunately the gtk-2-dev package is no longer available. Can the program be changed to use gtk-3?

Many thanks
R
1 year 10 months ago #82643

Please Log in or Create an account to join the conversation.

  • Posts: 106
  • Thank you received: 33

Replied by Simon on topic Collimation Circles

Here is my 5 cents. I have made this application Collimation Circles and I hope you will find it useful:

github.com/sajmons/CollimationCircles
The following user(s) said Thank You: Peter Sütterlin
1 year 2 months ago #89905

Please Log in or Create an account to join the conversation.

Time to create page: 3.017 seconds