Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emscripten Examples Web Gallery - small issues list #7827

Open
2 of 6 tasks
ofTheo opened this issue Dec 15, 2023 · 5 comments
Open
2 of 6 tasks

Emscripten Examples Web Gallery - small issues list #7827

ofTheo opened this issue Dec 15, 2023 · 5 comments

Comments

@ofTheo
Copy link
Member

ofTheo commented Dec 15, 2023

Examples Web Gallery is now working and up.
https://openframeworks.cc/examples/

There are a few small issues in some examples. Going to use this to track examples with issues:

Feel free to edit / add to this list:

Broken:

@artificiel
Copy link
Contributor

the communication examples fail to start with various error messages (tried macOS safari and chrome) — but should they? is there a form of automatic websocket wrapper around sockets, and is UDP i/o expected to work without a form of proxy?

@ofTheo
Copy link
Member Author

ofTheo commented Dec 15, 2023

@artificiel yeah agree, I pulled the TCP ones, but I am pretty sure all the osc / udp ones don't make sense. I pulled the thread ones for similar reasons ( until we get a good thread/cors solution ) and windowing ones too.

@artificiel
Copy link
Contributor

@ofTheo it would be "nice" to provide a proxy that someone can run to get UDP/OSC in and out of the TCP websockets (probably now requires wss:// which increases the complexity) of the browser, but it quickly raises the problem of managing networking expectations (where do you expect your OSC to be going from your local web browser?). if you are running an app in a browser to send OSC to 127.0.0.1 you might as well run a native app... (I think!?). conversely if you are running the proxy on a server (for a "public messaging type thing"), it will communicate with a single specific instance of the app at which point you also might as well run a native app? (unless the proxy copies to N dynamic websocket clients, which starts to look like an MQTT broker..).

all this to say UDP over WSS is unlikely to fit realistic/non-naive scenarios.

@Jonathhhan
Copy link
Contributor

@ofTheo the pointCloudExample issue could be solved with glEnable(GL_POINT_SMOOTH);
Now it is:

	#ifndef TARGET_EMSCRIPTEN
		glEnable(GL_POINT_SMOOTH); // use circular points instead of square points
		glPointSize(3); // make the points bigger
	#endif

Somehow the points are smaller than in https://openframeworks.cc/examples/3d/3DPrimitivesExample/ if I compile it, so glEnable(GL_POINT_SMOOTH); does not have an effect for me.

@ofTheo
Copy link
Member Author

ofTheo commented Dec 30, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants