Click here to Skip to main content
15,888,579 members

Comments by Chillzy (Top 14 by date)

Chillzy 24-Jul-23 12:31pm View    
Deleted
Thanks for the help, but I'm now currently experiencing a weird bug with the code. When I compile and run it on my IDE (CodeBlocks), the program ends in a seg fault, while when I compile and run it on onlinegdb (Online C Compiler), the program runs normally, and ends without any errors. As for the `subdivision_amount`, in the original article that was used to copy over the contents from the `vertices` and `indices` arrays over to the `tmp` arrays, and then clear what was in the original arrays, then in the subdivision loop it then fills the `tmp` arrays with the computed vertices and indices, and through the use of the `add_vertices` and `add_indices` functions, copies over the newly computed data from the `tmp` arrays, back into the origial `vertices` and `indices` arrays. I linked the original article in the post if you'd like to check it out to see what I'm talking about. Also the indices array is supposed to get filled with indexes of the computed vertices, in the original article the shape gets drawn with the indices, not the vertices (the article was for OpenGL usage).
Chillzy 9-May-23 13:48pm View    
Ok, after going to a different forum, I got a correct answer, now everything's working👍
Chillzy 9-May-23 11:43am View    
Just finished implementing in the noise functions, and now the problem of nothing else drawing but black is back, gonna keep on doing some research and trying different ways of implementing it.
Chillzy 9-May-23 11:07am View    
Couldn't finish it yesterday because of errands but the source code from the blog just worked so I'm going to try to use it for the noise data, appreciate the help
Chillzy 8-May-23 15:48pm View    
Deleted
Ok I'll look at the blog and get back to you after I finished testing it