Gustavo Maciel
Reputation
3,492
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
 Feb 18 comment Cycling through colors with the same brightness I'm on a bus, so I better not write a formal answer, but here's what lies underneath the problem: you're going to need to solve a equation system where you plug three variables: Hue, Luminance and Saturation. So here you're searching for a specific Value, given H and S, that meets the condition of having certain luminance. Not quite hard. But you'll soon find out that some colors can't get as luminous as some (try finding a blue as luminous as a 100V yellow), so you may want to clamp the values, in order to get values representable on the screen. Jan 8 comment 2D and 3D Perlin Noise Terrain Generation @ToXeye Yep! If you look at my answer, this is exaclty how it goes! The default lacunarity is `2.0`, which would yield octaves as 1, 2, 4 and 8, 16, 32, 64 and 128. You could change the lacunarity to rand numbers each iteration to have a more random look. Dec 25 revised How do I generalise Bresenham's line algorithm to floating-point endpoints? added 276 characters in body Dec 25 comment How to pitch, yaw, roll, an object like a flight simulator in OpenGL? Any particular reason why you're using GL11 instead of GL20 or greater? The old pipeline is pretty much deprecated, you'll be much better of learning GL20 and shaders, Dec 14 awarded Yearling Nov 19 awarded Enlightened Nov 19 awarded Nice Answer Nov 3 reviewed Edit 8 Directional Character Spritesheet Generator Nov 3 revised 8 Directional Character Spritesheet Generator Clearer, more specific title and better formating. Sep 22 comment Weighted Random Distribution this is awesome. I always made `sqrt(random())` my entire life but I came to it empirically. Trying to tie a random number to a curve, and it did work. Now that I'm a little more Math skilled, knowing why it works is very valuable! Sep 12 comment Is there a practical reason for saving game data in %UserProfile%\Documents instead of %AppData%? I remember SPORE saving its data to my documents folder instead of the `%appdata%` back when I got it. When I looked into its folder, my creatures were all saved as png images, that was quite amazing, and I think it was put on the documents folder on purpose, so people could easily share and download more creatures and vehicles. With that said, I have no idea why games that only use a crude `save.dat` decide to put their stuff there. Sep 7 asked I'm making a networked game for mobile. Should I worry about cheating? Sep 5 comment How to implement bullet physics in libgdx @NishantAnindya I know I'm like 2 years late, but for documentating purposes: for 2D games, use Box2D, it's a lot simpler and enough for 2D physics. Let Bullet only for your 3D games. Aug 21 awarded Revival Aug 21 reviewed Close How can I convert the 3D Object designed in MAYA or 3D Max to OpenGL Object? Aug 21 answered LibGDX, Box2D , Destroy body into parts Aug 21 reviewed Close NodeJS setTimeOut - How to run callback before delay time exceeded Aug 18 awarded Nice Question Aug 13 awarded Custodian Aug 12 reviewed Leave Closed Where are all the tutorials for libGDX?