Garry's Mod

Garry's Mod

Procedural Terrain / Maps
 此主题已被置顶,因此可能具有重要性
Meetric  [开发者] 2022 年 7 月 3 日 下午 8:15
Custom Heightmap functions
give out your custom hightmap functions here if you want!
< >
正在显示第 1 - 10 条,共 10 条留言
Meetric  [开发者] 2022 年 7 月 3 日 下午 8:16 
return (sin(x)^2 + cos(y)^2) * 10
最后由 Meetric 编辑于; 2022 年 7 月 3 日 下午 8:29
stingpie 2022 年 7 月 3 日 下午 9:32 
xscale=1
yscale=4
zscale=0.05
steepness=0.25
zpos=-50
xpos=0
ypos=40
return zpos+ log ( zscale* sqrt((cos(y*yscale+ypos)*(x*xscale+xpos)+(y*yscale+ypos))^(sin(y*steepness+ypos)*(x*xscale+xpos)+(y*steepness+ypos)) ) )
::Рοϲκ:: 2022 年 7 月 4 日 上午 8:25 
return (( 2*x*y*(2*pi*sqrt(x^2 + y^2)) / sqrt(x^2 + y^2) )^2 /590)+6 four mnt. valley with flat top

return ( 2*x*y*(pi*sqrt(x^2 + y^2)) / ((x^2 + y^2)) ) + 10 two lakes & mountains / hills

return 3*cos(2*abs(x*2)+abs(y*2))*(sin(x)+sin(y))+5 swampy hill thingi

return cos(2*abs(x*2)+sin(y*2))*(sin(x)+sin(y))+4.6 worm lakes, variation of "swampy hill thingi

return (5*cosh(sin((x^2)*y -2 ))) just a cool pattern i like

return 2*sin(cos((x))) + 2*sin(cos((y)))+3 pillow islands, sadly due to tan the shadows get messy
最后由 ::Рοϲκ:: 编辑于; 2022 年 7 月 4 日 上午 8:25
stingpie 2022 年 7 月 4 日 下午 1:33 
local values =
{0, 1, 2, 3, 3, 2, 1, 0,
1, 2, 5, 5, 5, 5, 2, 1,
2, 5, 6, 7, 7, 6, 5, 2,
3, 5, 7, 9, 9, 7, 5, 3,

3, 5, 7, 9, 9, 7, 5, 3,
2, 5, 6, 7, 7, 6, 5, 2,
1, 2, 5, 5, 5, 5, 2, 1,
0, 1, 2, 3, 3, 2, 1, 0, }

ysize=8
xsize=8
xscale=1
yscale=1
localX=(floor((x-8)*xscale)/xscale )
localY=(floor((y-8)*yscale)/yscale )


return values[(localX *xsize*xscale + localY%ysize )%(xsize*ysize) + 1] *1
crazygamerguy10 2022 年 7 月 4 日 下午 4:21 
local values = {
1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,1,
1,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,
1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,1,
0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,1,
1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,
}
local localX = floor(-x * 2) + 7
local localY = floor(y * 2) + 2
if localX < 1 or localX > 16 then
return 0
end
return (values[localX + localY * 16] or 0) * 10
Cigarette 2022 年 7 月 4 日 下午 7:29 
If you guys can, describe what it is, i.e. Vally, mountain, massive spike, etc.
Takes away the boring part of waiting for it to generate to see what it is.
::Рοϲκ:: 2022 年 7 月 5 日 上午 5:15 
引用自 Sir. Vapenation
If you guys can, describe what it is, i.e. Vally, mountain, massive spike, etc.
Takes away the boring part of waiting for it to generate to see what it is.
but also adds a sense of cusiosity and mystery.
Dog of war 2022 年 7 月 5 日 上午 5:53 
引用自 crazygamerguy10
local values = {
1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,1,
1,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,
1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,1,
0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,1,
1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,
}
local localX = floor(-x * 2) + 7
local localY = floor(y * 2) + 2
if localX < 1 or localX > 16 then
return 0
end
return (values[localX + localY * 16] or 0) * 10
sus
Thas 2022 年 7 月 6 日 上午 10:18 
引用自 Sir. Vapenation
If you guys can, describe what it is, i.e. Vally, mountain, massive spike, etc.
Takes away the boring part of waiting for it to generate to see what it is.

You can just press the test changes button instead of fully generating it though
minty 2022 年 11 月 1 日 下午 5:18 
return (sin(sqrt((x * 8)^5 + (y * 5)^2)) + 2) * 20 Name: Farlands
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50