moethu / webg3n

3D web-viewer running g3n server-side
BSD 2-Clause "Simplified" License
100 stars 20 forks source link

C# OpenGL #14

Closed raffdp closed 4 years ago

raffdp commented 5 years ago

I have an OpenGL viewport written in C#. Could that be used as the server side render? I suppose the question is as much to do with Golang itself as the project itself.

moethu commented 5 years ago

Indeed, you could use a your C# OpenGL Renderer as a Serverside renderer. However the question is does it run on windows only or would it work using mono? If it's windows only it would probably make more sense serving it through ASP or any other MS web solution.

raffdp commented 5 years ago

Thanks @moethu for the reply. I think I will probably need to get your version up and going first. Do you have any instructions or pointers? I am not a Go "Pro" ;) I noticed you mention it needs to be on Mono.

moethu commented 5 years ago

@damianrafferty mono is for running .NET apps on linux. I understood you want to implement a C# ServerSide Renderer. But I think I misunderstood you. If you want to run the go renderer and embed it into a C# canvas you simply have to use websockets in C# and place the base64 encoded image stream into an image. For building it should be enough to run go build