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: Objects to Terrain

Previous Thread :: Next Thread 
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
05 Jun 2015 03:56 PM
So I've got this kind of landscape: http://prntscr.com/7dkpim
(couldnt upload place to roblox of unknown reasons)

Any idea how I could make it a smooth terrain?
Scripts are very welcome :)


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
05 Jun 2015 04:01 PM
1. become hacker
2. create algorithm
3. click run
4. copy pasta
5. save
Report Abuse
SurfaceLight is not online. SurfaceLight
Joined: 06 Apr 2014
Total Posts: 7574
05 Jun 2015 04:06 PM
Might not be possible considering it isn't Terrain, and it only works with terrain. Unless you somehow manage to convert the bricks to Terrain. Which might not be possible. (Just saying)

I stole YOUR siggy m8.
Report Abuse
glurbman is not online. glurbman
Joined: 02 Nov 2010
Total Posts: 1903
05 Jun 2015 04:31 PM
it is possible !!! theres also some kind of example script on the smooth terrain wiki site!!!!! yesterday there was a therad about the same topic iam going to search it and post the link......
Report Abuse
glurbman is not online. glurbman
Joined: 02 Nov 2010
Total Posts: 1903
05 Jun 2015 04:32 PM
ha LoL amanda theres the firts thing where you cant help !!! oh is this funny^^ (:
Report Abuse
glurbman is not online. glurbman
Joined: 02 Nov 2010
Total Posts: 1903
05 Jun 2015 04:36 PM
ok sorry i cant find the thread its already too old .....but it is maybe possible to add terrain on the position of a part using a script !
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
05 Jun 2015 04:44 PM
Are you generating this terrain, or was it built manually? In the former case, the solution is simple: just have it output smooth terrain instead of triangles. Problem solved.

In the latter case, it'll be a little more complicated. Loop through every triangle and call Terrain:FillBlock(Part.CFrame, Part.Size, Enum.Material.[Whatever]). This should give you the surface of the terrain. Then use a flood fill algorithm, bounded by the edges of your original terrain and by some minimum y-value, to fill in the "underground" with terrain. The wiki page even has an example (unbounded, granted) implementation: http://wiki.roblox.com/index.php?title=Smooth_terrain#Flood_Fill
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
05 Jun 2015 04:54 PM
There is no snow terrain.


gg XD
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
06 Jun 2015 06:23 AM
13:23:03.543 - Smooth terrain API is not available
13:23:03.544 - Script 'local Terrain = game.Workspace.Terrain for _, Object in pai', Line 1
13:23:03.544 - Stack End


what


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
06 Jun 2015 06:24 AM
Tried to use what jode said, used this script;

local Terrain = game.Workspace.Terrain for _, Object in pairs(game.Workspace:GetChildren()) do if Object:IsA("BasePart") then Terrain:FillBlock(Object.CFrame, Object.Size, Enum.Material.Sand) Object:Destroy() end end


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
06 Jun 2015 06:36 AM
I simply had to click on convert to smooth terrain.
oops


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
06 Jun 2015 06:47 AM
Any idea how to fill up everything under the terrain? I tried with the flooding but I have no idea what it should do.


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~
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