Search found 13 matches
- Tue Sep 11, 2018 3:15 am
- Forum: Libraries and Tools
- Topic: N3N, a small helper script for creating seeds.
- Replies: 9
- Views: 8977
Re: N3N, a small helper script for creating seeds.
Wow, this implementation outdoes what I came up with, great work! I'll rename my function to injection with the new info you provided.
- Sun Sep 09, 2018 11:18 pm
- Forum: Libraries and Tools
- Topic: N3N, a small helper script for creating seeds.
- Replies: 9
- Views: 8977
Re: N3N, a small helper script for creating seeds.
Ok, so with the constraint of r never exceeding 262144 the limits on the coordinates are (-17, -17, -17) to (18,18,18) for 3d and (-27, -27) to (28, 28) for 2d. I comapred every mapping in the 2d area coordinates and the 3d volume coordinates and found no collisions. This function is now truly bijec...
- Sat Sep 08, 2018 11:50 pm
- Forum: Libraries and Tools
- Topic: N3N, a small helper script for creating seeds.
- Replies: 9
- Views: 8977
Re: N3N, a small helper script for creating seeds.
I started adding constraints on the coordinates, I should have this actually working in a day or two.
*edit* I added a lazy constraint on the coordinates and I calculated the maximum absolute value of the magic number.
*edit* I added a lazy constraint on the coordinates and I calculated the maximum absolute value of the magic number.
- Sat Sep 08, 2018 10:30 pm
- Forum: Libraries and Tools
- Topic: N3N, a small helper script for creating seeds.
- Replies: 9
- Views: 8977
Re: N3N, a small helper script for creating seeds.
Thanks Zorg, this clarifies even further. I guess the stackexchange post I found was wrong about the formula being bijective. Math isn't exactly my strong point.
- Sat Sep 08, 2018 10:21 pm
- Forum: Support and Development
- Topic: Problems with Moonshine shaders
- Replies: 2
- Views: 2624
Re: Problems with Moonshine shaders
Uncommenting line 216 will attach the black screen shader to the background entity.
Commenting out line 214 Will remove the background from the world, so there isn't a duplicate image when adding the code I posted to main.lua
Commenting out line 214 Will remove the background from the world, so there isn't a duplicate image when adding the code I posted to main.lua
- Sat Sep 08, 2018 9:37 pm
- Forum: Support and Development
- Topic: Problems with Moonshine shaders
- Replies: 2
- Views: 2624
Problems with Moonshine shaders
I'm having a problem with the Moonshine modules. Attempting to draw the shader causes the screen to go black instead of correctly applying the shader. I have a few draw wrapper functions in the Kernel module, drawShader, drawQuadShader, and drawTextShader. These wrapper functions call Moonshine. The...
- Sat Sep 08, 2018 7:32 pm
- Forum: Support and Development
- Topic: Determine requirements for game
- Replies: 5
- Views: 3797
Re: Determine requirements for game
Log your game's performance during a play test.
For memory, on windows at least you can use perfmon to record memory usage. https://success.scribesoft.com/s/articl ... mory-Usage
For getting the amount of texture memory on the video card you can call love.graphics.getStats().
For memory, on windows at least you can use perfmon to record memory usage. https://success.scribesoft.com/s/articl ... mory-Usage
For getting the amount of texture memory on the video card you can call love.graphics.getStats().
- Sat Sep 08, 2018 4:47 pm
- Forum: Libraries and Tools
- Topic: N3N, a small helper script for creating seeds.
- Replies: 9
- Views: 8977
Re: N3N, a small helper script for creating seeds.
Thanks for posting info on the magic number affecting collision chances. I didn't consider it too important to mention that it is only for mapping integers since I wrote it mainly to work with a chunking system. Also thanks for pointing out that I accidentally added a few globals.
- Fri Sep 07, 2018 4:00 am
- Forum: Libraries and Tools
- Topic: N3N, a small helper script for creating seeds.
- Replies: 9
- Views: 8977
N3N, a small helper script for creating seeds.
I created a small helper function for mapping vectors to whole numbers. https://github.com/IAmSegfault/N3N This is useful for creating a deterministic rng for each chunk in your game world, for example the procedurally generated universe in the 1984 version of Elite. I haven't tested it thoroughly, ...
- Thu Sep 06, 2018 5:07 pm
- Forum: Support and Development
- Topic: Need help creating equality metamethod
- Replies: 2
- Views: 2168
Re: Need help creating equality metamethod
Thanks, this is the correct answer.