SA-MP Forums [Include] Simplex Noise Generator
 New Account Members List Search Today's Posts Mark Forums Read

17/04/2016, 02:40 PM   #21
kristo
Banned

Join Date: Jun 2012
Location: Estonia
Posts: 352
Reputation: 179
Re: Simplex Noise Generator

Quote:
 Originally Posted by Crayder Made these with it:

 17/04/2016, 02:40 PM #22 Pottus High-roller     Join Date: Jun 2012 Posts: 4,893 Reputation: 1321 Re: Simplex Noise Generator That is cool, it takes skill to transcribe code from one platform to another
 18/04/2016, 12:16 PM #23 Crayder Banned   Join Date: Sep 2013 Location: Flames of Hell Posts: 3,329 Reputation: 652 Re: Simplex Noise Generator Here are some of the 3D function representations. Each layer is a frame, so it's technically 256x256x256. These are best viewed on imgur since apparently they make simplified versions for the direct links. So here is the album: http://imgur.com/a/H0Ko8 I'll upload the 2D and 1D later.
 18/04/2016, 10:17 PM #24 Crayder Banned   Join Date: Sep 2013 Location: Flames of Hell Posts: 3,329 Reputation: 652 Re: Simplex Noise Generator Ok, so here is the 1st dimension functions: And here are the second dimension functions: The gifs above are the third dimension. However, I also made a 3D cube using the 3D functions: (editing soon) I don't know how I would represent the 4th dimension.
 24/08/2016, 03:15 PM #25 Crayder Banned   Join Date: Sep 2013 Location: Flames of Hell Posts: 3,329 Reputation: 652 Re: Simplex Noise Generator Just generated this with the dFlowNoise2D functions. Code: pawn Code: `#include #include #include new myIMG[10][10] = {    {0, 1, 0, 0, 0, 0, 0, 0, 1, 0}, //   |   #             #   |    {0, 1, 1, 1, 0, 0, 1, 1, 1, 0}, //   |   # # #     # # #   |    {0, 0, 0, 1, 0, 0, 1, 0, 0, 0}, //   |       #     #       |    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, //   |                     |    {0, 0, 0, 0, 1, 1, 0, 0, 0, 0}, //   |         # #         |    {0, 1, 1, 1, 0, 0, 1, 1, 1, 0}, //   |   # # #     # # #   |    {0, 1, 1, 1, 1, 1, 1, 1, 1, 0}, //   |   # # # # # # # #   |    {0, 1, 1, 1, 0, 0, 1, 1, 1, 0}, //   |   # # #     # # #   |    {0, 0, 1, 1, 1, 1, 1, 1, 0, 0}, //   |     # # # # # #     |    {0, 0, 0, 1, 0, 0, 1, 0, 0, 0}  //   |       #     #       |};const MAX_X = 2000, MAX_Y = 2000;new Bitmap:bmpf;public OnGameModeInit(){    bmpf = Bitmap_Create(MAX_X, MAX_Y);        for(new x; x < MAX_X; x++) {        for(new y; y < MAX_Y; y++) {            Bitmap_WritePixel(bmpf, x, y, GetAvatarPoint(x, y));        }    }        Bitmap_Write(bmpf, "thing.bmp");    Bitmap_Destroy(bmpf);    return 1;}stock GetAvatarPoint(x, y){    new pX = floatround((x / float(MAX_X) * 10.0), floatround_floor),        pY = floatround((y / float(MAX_Y) * 10.0), floatround_floor);        new Float:nX, Float:nY, Float:nZ;    if(myIMG[pY][pX]) {        dFlowNoise2D(x * 0.006, y * 0.006, 0.0, nX, nY, nZ);                nY /= 4.1;        nZ /= 3.75;                return (            (floatround(((nX + 1.0) / 2.0 * 255.0), floatround_floor) / 8 << 24) |            (floatround(((nY + 1.0) / 2.0 * 255.0), floatround_floor) << 16) |            (floatround(((nZ + 1.0) / 2.0 * 255.0), floatround_floor) / 8 <<  8) |            0xFF        );    }    else {        dFlowNoise2D(x * 0.006, y * 0.006, 30.0, nX, nY, nZ);                nY /= 4.1;        nZ /= 3.75;                return (            (floatround(((nX + 1.0) / 2.0 * 255.0), floatround_floor) / 8 << 24) |            (floatround(((nY + 1.0) / 2.0 * 255.0), floatround_floor) / 8 << 16) |            (floatround(((nZ + 1.0) / 2.0 * 255.0), floatround_floor) / 8 <<  8) |            0xFF        );    }}`
 24/08/2016, 04:17 PM #26 izeatfishz Huge Clucker     Join Date: Jun 2012 Posts: 231 Reputation: 43 Re: Simplex Noise Generator ;o i love it
 05/01/2017, 03:08 PM #27 corne Huge Clucker     Join Date: Jul 2010 Location: The Netherlands Posts: 293 Reputation: 205 Re: Simplex Noise Generator I just wanted to share this here, as some people wanted to see an example of this in action and I currently have a testing server up and running. I just implemented the first biome that's generated using 3D simplex ridged noise, here is a map to view the different biomes on the map, and the light green biome (which is plains) is generated using noise. If you'd like to see this in action, here are the details for the testing server. It's just the beginning, I can't wait to see things improve and change over the time I'll be working on this. __________________
 06/01/2017, 10:59 AM #28 Wolfe Big Clucker   Join Date: Feb 2015 Posts: 131 Reputation: 60 Re: Simplex Noise Generator Here's an in game screen shot for the curious; Credits to Corne for supplying the test server. It's a really nice addition considering things don't look misplaced, and it's also really unique. Good work.
 06/01/2017, 01:56 PM #29 IllidanS4 Big Clucker     Join Date: Feb 2013 Posts: 199 Reputation: 275 Re: Simplex Noise Generator Interesting, if we had a material map similar to MapAndreas but returning the type of material on the ground there (sand, grass, seafloor etc.), we could reimplement the (for some reason) removed singeplayer bushes, grass and rocks. __________________ You have stolen my dreams and my childhood, and you have stolen my sleep hours.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Dusan01 Everything and Nothing 5 01/11/2014 11:33 PM dstryr Client Support 10 01/09/2011 03:06 PM UTvern Help Archive 0 07/06/2011 05:12 AM AiVAMAN Everything and Nothing 9 27/09/2009 12:23 PM

All times are GMT. The time now is 02:50 PM.

 -- (EN) English -- (RU) Русски SA-MP - Archive - Top