X11 port forwarding and online Irrlicht

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
wizard4
Posts: 181
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

X11 port forwarding and online Irrlicht

Post by wizard4 »

Hello!

You might usher a word of caution... I was mixing up a little treat for you all. I searched for Irrlicht and websites and some things were discussed already (webgl and emscripten). I wanted Irrlicht running on a server, so it was different to running on a client. X11 forwarding seemed straight forward. You can use ssh -Y to connect and it will bring up the GUI stuff on your local machine. I had to install Irrlicht's libraries remotely, and I guess the local machine would need them too, but... Now the bad bit... Give you the public key to my server so you can see Irrlicht running? :!:

It worked on my machine :) What's your thoughts on ssh and x11?
CuteAlien
Admin
Posts: 9926
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: X11 port forwarding and online Irrlicht

Post by CuteAlien »

Uhm, never thought this could even work with 3D. But seems there is some old OpenGL support in it for remote calls. And Irrlicht uses old OpenGL.. so in theory that's even possible?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
wizard4
Posts: 181
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: X11 port forwarding and online Irrlicht

Post by wizard4 »

I forgot to mention things. I had an Irrlicht server basically, so the first time I had no libraries installed and it wouldn't run as it couldn't find libGL.so. So I compiled Irrlicht without OpenGL support (the make file was descriptive enough). The second time it complained about Xxf86vm, and that's when I realised.

The demo runs in software mode. I haven't tried OpenGL yet.

I read bandwidth is the problem. A full video file needed 100MB/s so I shrank the window down to 300x300. It did look a little choppy perhaps.
freebsd

On the other hand, someone wrote a 720p video only requires ~12Mb/s. My internet connect is around 72Mb/s - so it looks like it could work)
super user

What I wanted to try was log in on another computer with the public key and see what happens. If I can log in as root then that's a really bad thing.
Last edited by wizard4 on Mon Feb 24, 2025 2:42 pm, edited 3 times in total.
wizard4
Posts: 181
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: X11 port forwarding and online Irrlicht

Post by wizard4 »

I think I've realised something. If I got a server to work and if it did pan out for anyone to connect - I have no use for a server. I was thinking about a chat program so researched other software, but it looks like it hit a dead end. It could be having a feeling about it, and after a day or two I'm back up and running. Really I should wait it out.
wizard4
Posts: 181
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: X11 port forwarding and online Irrlicht

Post by wizard4 »

Some 3D chat programs...

- IMVU
- Club Cooee
- Second Life
- Worlds.com
- 3DX

I was a fan of Worlds.com when it had users back in the 2000s. I never did try Second Life and I guess what I see are overly enhanced avatars that can be sexual in nature. It makes me think about a more moralistic environment that offers education, a bit like Second Life on some worlds.

I will probably change my mind again.
wizard4
Posts: 181
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: X11 port forwarding and online Irrlicht

Post by wizard4 »

Ahh, well if anyone else has little knowledge like I do... The public key I wanted to share was generated by my private key. Don't do that.

There are vulnerabilities while connecting so the file system can be read and also keystrokes and clipboard access. There is x11vnc (VNC) which still sounds unsafe.

There probably are firewalls or "jump servers" and the like, but I don't know much about these.

Make yourself a separate public key so create per user keys and apply restrictions that way.

It sounds like I can change 'chroot' and only allow certain scripts to run, so perhaps run one file and only that file.
Noiecity
Posts: 315
Joined: Wed Aug 23, 2023 7:22 pm
Contact:

Re: X11 port forwarding and online Irrlicht

Post by Noiecity »

Interesting, the x11 libraries (such as Xlib.h in conjunction with Xutil.h) are like the win32 api(windows.h) , albeit with an even lower level of almost system level access.
One of the advantages I noticed, which is very similar to the x11 api compared to win32 api, is that they may not consume CPU while there are no events(for example in x11 there is a while loop, but XNextEvent does not consume CPU while waiting, since it is blocked by the OS), apparently event loops like GetMessage(win32) or XNextEvent are optimized to not consume resources while there is no activity, since they use the event loop managed by the OS.

This can be useful, for example, to not consume resources in an active loop waiting for certain keys to be pressed, since instead, the loop can be activated upon detecting an operating system event, such as pressing a key
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, for free. CC0 man.

Image
**
Post Reply