generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: 3D Rendering

Previous Thread :: Next Thread 
ploop is not online. 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 is not online. 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 is not online. 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 is not online. iStone4S
Joined: 07 May 2012
Total Posts: 416
26 Apr 2013 01:12 AM
How about let's start a JP?
Report Abuse
ThePC8110 is not online. 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 is not online. 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 is not online. 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 is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
26 Apr 2013 06:49 AM
Who said anything about shaders?
Report Abuse
Tappier is not online. Tappier
Joined: 10 Apr 2013
Total Posts: 14077
26 Apr 2013 09:16 AM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image