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: Creating a a custom rendering engine

Previous Thread :: Next Thread 
jggames223 is not online. jggames223
Joined: 22 Sep 2012
Total Posts: 50
17 Dec 2016 05:09 PM
Hello, I've been scripting for a while now, and I've been experiencing issues with lag.. specifically, maps containing lots of trees..forest areas. I'm not asking for anybody to write a script for me, but instead to point me in the right direction towards creating my own.
I want to create a rendering engine that enables you to adjust your rendering distance, parenting specific objects (Trees, rocks, bases, animals, etc.) to another folder besides workspace, creating a world rendered quickly for each player. How would i begin scripting this? please help!
Report Abuse
lua_pointer is not online. lua_pointer
Joined: 15 Oct 2016
Total Posts: 179
17 Dec 2016 05:19 PM
That's not a rendering engine, sorry to disappoint you.
Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
17 Dec 2016 08:04 PM
reported ###### attempt to call girlfriend (a nil value) | (͠≖ ͜ʖ͠≖)👌 | nothin' like a good argument ¯\_(ツ)_/¯
Report Abuse
Bobby_Darin is not online. Bobby_Darin
Joined: 05 Jan 2013
Total Posts: 5587
17 Dec 2016 08:06 PM
yeah well i reported you for implying it's bad not to have a girlfriend which makes you an ONLINE DAAAA-TEEEER!!!
Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
17 Dec 2016 08:07 PM
reported ###### [2]


Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
17 Dec 2016 08:07 PM
rip filter

attempt to call girlfriend (a nil value) | (͠≖ ͜ʖ͠≖)👌 | nothin' like a good argument ¯\_(ツ)_/¯
Report Abuse
fear2213 is not online. fear2213
Joined: 20 Mar 2011
Total Posts: 235
17 Dec 2016 08:45 PM
Use FE and delete anything that's x studs away from the character? update every time the character moves 10 studs or something along those lines


Clans Admin > https://www.roblox.com/Clan-Admin-V1-6-Update-6-1-2016-item?id=419845359 < Clans Admin
Report Abuse
Real_Spooky is not online. Real_Spooky
Joined: 23 Oct 2013
Total Posts: 3149
17 Dec 2016 08:50 PM
"delete anything"

How would you re-render unrendered objects?

Please, proofread your own psots.

haha
Report Abuse
fear2213 is not online. fear2213
Joined: 20 Mar 2011
Total Posts: 235
17 Dec 2016 08:54 PM
how about this :

every time the character moves a certain distance, fire a remote event asking the server for a table of objects within x studs of the player

then check all current objects against the x studs limit, delete those that are out of distance

load in the table sent by the server

?


Clans Admin > https://www.roblox.com/Clan-Admin-V1-6-Update-6-1-2016-item?id=419845359 < Clans Admin
Report Abuse
buNcitsidaS is not online. buNcitsidaS
Joined: 02 Oct 2016
Total Posts: 4
17 Dec 2016 08:56 PM
i actually got banned, so congrats :)
Report Abuse
lua_pointer is not online. lua_pointer
Joined: 15 Oct 2016
Total Posts: 179
18 Dec 2016 03:31 PM
Steps (on RenderStepped, or better yet, every 2-3 seconds):

1. Check against current table and re-render parts if necessary (i.e. within X stud radius)
2. Create table of all parts & check distance.
3. If the distance is X stud radius, insert into table and parent to nil.
4. I think I forgot something but I'm pretty tired so idk, figure the rest out yourself. This is the basics.

To re-render, simply parent it back into the original parent. You can save that with the part using dictionaries, :GetFullName(), and some simple interpretation. Or use a table and save a pointer to the _actual_ object, much simpler and more efficient.
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
18 Dec 2016 03:32 PM
Set game.Workspace.StreamingEnabled to true.
Otherwise this is going to be next to impossible and won't be smart, at all.
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
18 Dec 2016 03:40 PM
thats not what a rendering engine is
and yeah use fe and delete anything that's a certain magnitude away from the character's torso?
Report Abuse
lua_pointer is not online. lua_pointer
Joined: 15 Oct 2016
Total Posts: 179
18 Dec 2016 03:42 PM
@Intended:
SE only does so much, creating your own rendering distance in addition to it is bomb.

@CP:
You copied me.
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
18 Dec 2016 03:43 PM
^ its what i do m9999 ^
you were correct though
Report Abuse
jggames223 is not online. jggames223
Joined: 22 Sep 2012
Total Posts: 50
21 Dec 2016 02:28 PM
Please explain to me what an SE is?
Report Abuse
lua_pointer is not online. lua_pointer
Joined: 15 Oct 2016
Total Posts: 179
23 Dec 2016 08:54 PM
It's a property, not a thing. It allows you to render only a certain radius of the world around the character.
Report Abuse
jggames223 is not online. jggames223
Joined: 22 Sep 2012
Total Posts: 50
27 Dec 2016 12:07 AM
Property of ..?
Report Abuse
Antcient555678 is not online. Antcient555678
Joined: 07 Nov 2011
Total Posts: 679
27 Dec 2016 12:08 AM
hi there


attempt to call girlfriend (a nil value) | (͠≖ ͜ʖ͠≖)👌 | nothin' like a good argument ¯\_(ツ)_/¯
Report Abuse
BillTrollberg is not online. BillTrollberg
Joined: 14 Nov 2013
Total Posts: 768
27 Dec 2016 01:15 AM
@Real_Spooky

Well. It's actually very simple,

-Enable Filtering!

-Make a list of all the currently un-rendered parts, When they are added to the list, set their parent to nil on the client.

-Then when you go to check their position on the server, if the player is close enough to it that it's within render distance...

-Tell the client to set the parent back to workspace!


#code print("Hey now, you're a Game Dev, make some ROBUX, Go play!")
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
27 Dec 2016 10:08 PM
^^ what ^^
use a localscript and set any part that has a magnitude from the player's torso greater than the renderdistance in studs to replicatedstorage
because then we can render them back without storing the positions and other properties in a table
Report Abuse
BillTrollberg is not online. BillTrollberg
Joined: 14 Nov 2013
Total Posts: 768
28 Dec 2016 06:31 AM
My way is even easier since you store the instance itself in the table. And it just sets the parent to nil.


#code print("Hey now, you're a Game Dev, make some ROBUX, Go play!")
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
01 Jan 2017 08:42 PM
oh nevermind i forgot setting parent to nil is the same as remove() which doesn't truly remove it from the game
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