tag:blogger.com,1999:blog-5616321214723803595.post718247773447447337..comments2024-03-13T09:57:10.000-07:00Comments on Student Game Dev has moved!: Unity Voxel Tutorial Part 3: Perlin noise for terrainAnonymoushttp://www.blogger.com/profile/11218854695223703316noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-5616321214723803595.post-37975604670239945762019-03-24T17:47:43.262-07:002019-03-24T17:47:43.262-07:00It doesn't spawn random terrain the deposits o...It doesn't spawn random terrain the deposits of dirt and caves seem to generate in the same area every time.Anonymoushttps://www.blogger.com/profile/03887191219216138274noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-58329611803115104712015-08-25T10:35:39.579-07:002015-08-25T10:35:39.579-07:00Hey ! I don't know if you'll read it but m...Hey ! I don't know if you'll read it but maybe some one else can help me.<br /><br />How would i limit the height the terrain gets generated up to ?Anonymoushttps://www.blogger.com/profile/09315161966388937262noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-17984517007799911572015-02-07T11:10:04.234-08:002015-02-07T11:10:04.234-08:00Oh and one more question how do i add a grass laye...Oh and one more question how do i add a grass layer or is there a way to turn the dirt that hits air into grass?Anonymoushttps://www.blogger.com/profile/05452299659089194919noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-79802763638465182062015-02-07T10:30:46.722-08:002015-02-07T10:30:46.722-08:00Hay so i have 2 questions... well more like 3 so f...Hay so i have 2 questions... well more like 3 so first off do you see any of these newer posts? You dont reply as much. 2nd on my list is is there a way i can implement the marching square algorithm into this so it looks more smooth? and lastly is do you want me to make a youtube video saying the same stuff because i know that if i can see some one doing this while saying whats going on it will help me alot more as well as get this post viewed more and it would be fun to turn this into a youtube tutorial!Anonymoushttps://www.blogger.com/profile/05452299659089194919noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-47727036709521957002015-01-16T20:21:31.929-08:002015-01-16T20:21:31.929-08:00caves are not generating for mecaves are not generating for meAnonymoushttps://www.blogger.com/profile/16733326025320321749noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-10481009307828909242015-01-15T00:17:42.233-08:002015-01-15T00:17:42.233-08:00For those interested by going in depth with what p...For those interested by going in depth with what perlin noise is, there's a great explanation here : <br />http://freespace.virgin.net/hugo.elias/models/m_perlin.htm<br /><br />and to go more in peth , since perlin noise is a heavy concept to grasp : <br />linear interpolation : http://en.wikipedia.org/wiki/Linear_interpolation<br />to grasp linear interpolation formula, you can tackle it with an angle approach , tan(alpha) : <br />http://en.wikipedia.org/wiki/Triangle#Sine.2C_cosine_and_tangent<br /><br />Potentially after that, you can change the basic random formula used in order to have many different effects.<br />I hope it will helps people like me who lacks some maths and are willingly trying to go farther than this great tutorial ! Thanks a lot M. Stavrinou !<br />Seydoux Nicolashttps://www.blogger.com/profile/06442971238532761841noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-54745890431702663132014-12-28T08:52:04.398-08:002014-12-28T08:52:04.398-08:00Great tutorial so far. I think you should split th...Great tutorial so far. I think you should split the return line in the noise function into 4 or so lines to make it easier to read/understand/explain. I had to do that before I could tell what was going on.<br /><br /> float height = Mathf.PerlinNoise(x/scale,y/scale);<br /> height = height * magnitude;<br /> height = Mathf.Pow (height, exp);<br /> return (int) height;skeddleshttps://www.blogger.com/profile/17857663418579981813noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-88561071158199467102014-11-06T12:42:12.434-08:002014-11-06T12:42:12.434-08:00That's actually implemented later in this tuto...That's actually implemented later in this tutorial, and it's fairly simple.<br /><br />What I did is I just created a World GameObject that had a script attached which would instantiate a chunk prefab and then store it as an item in a two-dimensional array. From there I would change its position, biome, etc.<br /><br />Hope this helped you.Anonymoushttps://www.blogger.com/profile/09531128051918760343noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-81101246459932767192014-05-30T02:19:43.231-07:002014-05-30T02:19:43.231-07:00How would I go about implementing chunks and loadi...How would I go about implementing chunks and loading / unloading them ? I would like it to be an infinite terrain so we cannot store all the chunk data in one arrayashleychttps://www.blogger.com/profile/16025804646720358406noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-32394066648056537362014-03-19T17:48:07.446-07:002014-03-19T17:48:07.446-07:00Tks man! very cool! the result is greatTks man! very cool! the result is greatMarcius.Uranohttps://www.blogger.com/profile/06452888664251565758noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-36930771824344443642014-03-09T12:48:12.777-07:002014-03-09T12:48:12.777-07:00How do I actually get it to generate something all...How do I actually get it to generate something all it does its generate numbers but no blocks or anything.Anonymoushttps://www.blogger.com/profile/07119753108521113005noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-18308804047763733152014-03-09T07:34:32.750-07:002014-03-09T07:34:32.750-07:00Going into this a little bit more, a good seed to ...Going into this a little bit more, a good seed to use is the current time. Jason Cannonhttps://www.blogger.com/profile/05122447387273986937noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-1714601808165187292014-02-07T19:45:29.161-08:002014-02-07T19:45:29.161-08:00You could try creating a Public variable that acts...You could try creating a Public variable that acts like a seed for example:<br />public float NoiseSeed=0;<br /><br />and then use it like this:<br />dirt+= Noise(px,NoiseSeed, 100,35,1);<br />if you change Y, acting like a seed you will go over different parts of the perlin noise function and that will give you different results on the same spot.Ra1deNhttps://www.blogger.com/profile/03858180827936800881noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-90896878271751789772014-01-31T15:24:07.860-08:002014-01-31T15:24:07.860-08:00Thanks Alex for this awesome work, it really motiv...Thanks Alex for this awesome work, it really motivated me to try i harder.<br />Just one question arises in me while i'm working on this- the perlin noise is not really random, as it generates always the same output from the same input(and here we are giving always the same input). Could you give me some hint on how to work on your code to give it an random appearance? <br />Thank you very much once again for you great effort! ;-)Anonymoushttps://www.blogger.com/profile/11218108786174036983noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-68926556616440743412013-11-07T04:05:51.867-08:002013-11-07T04:05:51.867-08:00Mind if I ask what mistake it was? Maybe I could c...Mind if I ask what mistake it was? Maybe I could clear it up a bit for anyone else following the tutorial.Anonymoushttps://www.blogger.com/profile/11218854695223703316noreply@blogger.comtag:blogger.com,1999:blog-5616321214723803595.post-19208470011406793672013-11-06T15:44:28.158-08:002013-11-06T15:44:28.158-08:00Awsome, works well. But gee if I make a single li...Awsome, works well. But gee if I make a single little error when typing somewhere or it turns out quite wrong, its quite funny when I make a simple mistake and spend and hour going back over it all to find out what I didn't do lol.Anonymoushttps://www.blogger.com/profile/06460829594179273373noreply@blogger.com