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

[request] OpenGL API integration #1031

Closed
Tcll opened this issue Apr 8, 2015 · 12 comments
Closed

[request] OpenGL API integration #1031

Tcll opened this issue Apr 8, 2015 · 12 comments

Comments

@Tcll
Copy link

Tcll commented Apr 8, 2015

you guessed it, I love OpenGL and wanted to have some fun with the Hologram Projector :P

@Vexatos
Copy link
Contributor

Vexatos commented Apr 8, 2015

..... what....
Like, seriously.... what?

Uhm... well.... that's a very, very, very very VERY bad idea.

@fnuecke
Copy link
Member

fnuecke commented Apr 8, 2015

Considering the machines' code is executed on the server, this is quite nontrivial, not even to start talking about sandboxing this. There has been some discussion about adding "shaders" or something similar, for more efficient drawing on screens, but that's kind of on the backburner right now.

Check out OCLights, maybe (no idea if that's still being updated though).

@fnuecke fnuecke closed this as completed Apr 8, 2015
@fnuecke
Copy link
Member

fnuecke commented Apr 8, 2015

Oh, right, also OpenGlasses.

Sorry, something went wrong.

@Tcll
Copy link
Author

Tcll commented Apr 8, 2015

I don't think the DNS tech pack has all of that

Sorry, something went wrong.

@gjgfuj
Copy link

gjgfuj commented Apr 8, 2015

Then consult with the author of the pack about adding it or deal with it.

On Thu, 9 Apr 2015 12:51 am Tcll notifications@github.com wrote:

I don't think the DNS tech pack has all of that


Reply to this email directly or view it on GitHub
#1031 (comment)
.

Sorry, something went wrong.

@Vexatos
Copy link
Contributor

Vexatos commented Apr 8, 2015

Or simply add the mods yourself. 😲

@Tcll
Copy link
Author

Tcll commented Apr 8, 2015

Then consult with the author of the pack about adding it or deal with it.

ouch

@Tcll
Copy link
Author

Tcll commented Apr 26, 2015

I know this is old and all, but I've just been curious of this and havn't asked... heh

Uhm... well.... that's a very, very, very very VERY bad idea.

I don't see why or how, all you're doing is writing the vertices, normals, etc you'd see displayed on the OC monitor in LUA (OC Lights may already do this)
T1 in B/W
T2 in dithered shading (like my 400MHz Celeron dino compy)
T3 in 24bit
or on the hologram projector, which OpenGlasses seems to more than cover, which the vertices could be drawn there.
T1 in B/W (of course)
T2 obvious

anyways, I'm curious as to why API OpenGL is a bad idea??
(why can't it have a native implementation)

if it's a vertex issue and it's because of the number of vertices and what not that would lag a server, then just limit the amount of data that can be drawn (perhapse as via the GPU RAM like how a real card works)

I'm sure a multiplayer game, something of N64 quality could be drawn on an OC monitor w/o killing a server. :)

also...
may I please ask that some of you guys respond a bit nicer :/
I never barked at anyone, so why bark at me

@Kubuxu
Copy link
Contributor

Kubuxu commented Apr 26, 2015

If this is not enough then I don't know what is:

  1. Because someone would have to whole sandbox to make OGL calls safe from Lua.
  2. Because OGL works in single threaded environment and OC's Lua is multithreaded.
  3. Because OGL is state machine and each change has to be reverted. One non reverted change -> crash of OGL context -> world crashes everyone who gets into your renderer range.
  4. Because it is already done in OpenGlasses which soon will allow you to use tesselator like object to draw even custom terrain.

@Tcll
Copy link
Author

Tcll commented Apr 26, 2015

1: you sandbox the environment for the OC monitors and hologram projectors, not GL itself ;)
2: shouldn't matter, just sync with the threads... shouldn't be hard :)
3: (most legit and prbly the most time consuming) just be careful and organize your work when syncing with the engine
4: sounds cool, but I'll leave that to OpenGlasses, I'm not asking for that much ;)

I've made a request to include OpenGlasses on the next update to DNS, so I'm still waiting to see how that goes.

I see no reason it can't be implemented, OCLights does implement it's own monitors right??
(I'm not really sure how this works, I just downloaded it, though I'm playing on a server atm)

@Kubuxu
Copy link
Contributor

Kubuxu commented Apr 26, 2015

I will just leave it w/o comment. Oh, it is a comment.

@Tcll
Copy link
Author

Tcll commented Apr 26, 2015

alright, I'll accept that as pending then

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

No branches or pull requests

5 participants