ploop
|
  |
| Joined: 01 Dec 2007 |
| Total Posts: 1601 |
|
|
| 26 Apr 2013 01:01 AM |
| Would this even be practical to make? I was thinking of trying to emulate the way the way things are rendered in OpenGL/Direct3D using GUI objects on Roblox. The "screen" would be a bitmap made up of a bunch of frames. Each vertex would contain information such a vertex color, normal direction, position, and what not, which would be changed and/or generated by a vertex program. Then each triangle would be broken up into fragments (each pixel on the screen that the triangle would take up) with data resulting from interpolations between the three vertices' data. That data would then be used by a fragment program to determine a final color for the fragment, and the pixel on the screen. I have no idea if Roblox's hideously inefficient Lua engine could handle this or if this could even be coded in a reasonable amount of time though. All I really want is a frame (128x128 possibly?) to be rendered in under ten minutes, while not having to dedicate every waking moment of my life to programming it. Do you think this is possible? |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 26 Apr 2013 01:03 AM |
| That would be insanely slow. Simply having enough frames inside the GUI would make your client slow down. |
|
|
| Report Abuse |
|
|
ploop
|
  |
| Joined: 01 Dec 2007 |
| Total Posts: 1601 |
|
|
| 26 Apr 2013 01:07 AM |
| I've made a 128x128 bitmap out of GUI objects before. It slows down the game a little, but not as much as you might expect. |
|
|
| Report Abuse |
|
|
iStone4S
|
  |
| Joined: 07 May 2012 |
| Total Posts: 416 |
|
|
| 26 Apr 2013 01:12 AM |
| How about let's start a JP? |
|
|
| Report Abuse |
|
|
ThePC8110
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 486 |
|
|
| 26 Apr 2013 01:58 AM |
"Roblox's hideously inefficient Lua engine" I'd like to see you try to make a better one.
It is possible to make a fast 3D renderer in Roblox, ask Upquark (he has recently made one). |
|
|
| Report Abuse |
|
|
Aerideyn
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 1882 |
|
|
| 26 Apr 2013 02:09 AM |
Lua is not the bottleneck.
i can get a 100*100 pixel frame to render an animated triangle and 30 fps.
Most of the render time is spent in the roblox C side - depth sorting / projecting / rasterizing with plain Lua math takes a fraction of the time compared to the time it takes to actually apply those updates to the Gui pixels.
I have seen oysi render a full screen gui maze but i believe he stretches each line across the length of the triangle instead of having a field of ready made pixels.
Thats all great but you are limited to flat shading and a flat colour. |
|
|
| Report Abuse |
|
|
iStone4S
|
  |
| Joined: 07 May 2012 |
| Total Posts: 416 |
|
|
| 26 Apr 2013 02:13 AM |
| ^ Why would you even want shaders? You do know that this is processed in the CPU, right? |
|
|
| Report Abuse |
|
|
Aerideyn
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 1882 |
|
|
| 26 Apr 2013 06:49 AM |
| Who said anything about shaders? |
|
|
| Report Abuse |
|
|
Tappier
|
  |
| Joined: 10 Apr 2013 |
| Total Posts: 14077 |
|
| |
|