February 18th, 2015, 09:11 AM
This is the output from iteration 1-5. 7 is the max.
Iteration 1
33295
Iteration 2
33297
Iteration 3
33299
February 18th, 2015, 09:04 AM
The noise isn't created correctly and it seems to be not shifting like it's jiggled.
Problems as also mentioned by the original author when my conversion code.
A image of the output is...
February 17th, 2015, 07:31 PM
Current not working full code.
This is the code so far I converted to C++ (Olsen 2D)
http://pastebin.com/qbgBL0Hq
This is the image produce
http://imgur.com/i6Lbr1P
Original source code...
February 17th, 2015, 01:46 PM
It should. I changed it. It was that code. I think I changed it to try to find out whats wrong with the code.
February 17th, 2015, 01:32 PM
Hmmm. Actually I made it one dimensional ...,....,... thats why i have j+(k*m)
The old code
http://pastebin.com/gh6P5zf3
My code is. I know its missing the memory deletion code.
February 17th, 2015, 01:23 PM
The outer loop is controlled by j < m and m=cwidth;
Thats what you mean?
February 17th, 2015, 01:09 PM
I can give the full code if needed.
February 17th, 2015, 01:08 PM
Hello
Two questions.
The second line m=field.length. What is the actual length?
The line n=field[j].length what is the second value?
I'm trying to convert some java code to c++.