Search results

  1. socram8888

    Hi everybody

    Can I set Checkstyle's lineSeparator to "LF"? Currently it is set to "system" and it causes loads of warnings when grabbing the source code using the Git from Cygwin, which uses "LF" for newlines, while the default system newline (and therefore the one used by Checkstyle) is "CRLF". Also, is...
  2. socram8888

    Hi everybody

    I use braces always but for increments or decrements ("var++" or "var--"), "break" and "continue", mostly because they're quite small and they're hardly ever modified. For function calls and more complex operations, even when they only take a single line, I encase them in braces too. I put the...
  3. socram8888

    Hi everybody

    Actually I'm also handling negative integers (which is only a simple inversion beforehand) About the code, you mean complainments about how the code looks, or about the code itself?
  4. socram8888

    Hi everybody

    Can somebody compile and try this code? It's a custom power function I've written. In my setup (Intel i5 2320 with Windows 7 x64 and Java 7 x64), this yields: Which IMO is a substantial perfomance gain (20x) over the current Math.pow used in several terrain generation methods. There's one...
  5. socram8888

    Hi everybody

    L-Systems here in Terasology have a probability float whose finality is to let the generator create random trees. My goal is to make that ratio to actually have an effect. I don't want to code a thousands of different trees (for a same species), I want Terasology to be able to create those for...
  6. socram8888

    Hi everybody

    Well, I can modify the function to remove the probability of randomness and make all of them have a random iteration count, so there would not be any "normal" tree. From: int iterations; if (minIterations == maxIterations) { iterations = minIterations; } else {...
  7. socram8888

    Hi everybody

    Hi again. I've already figured out a way to add more diverse trees, without losing the current ones. How? Well, here are two modifications to the tree generator that can do this: First of all: variable iterations. When creating a new L-system tree generator, you have to specify two values for...
  8. socram8888

    Hi everybody

    I would like to modify the current tree generation system. Making trees look a bit different, because I've noticed that most trees only have minor variations. By removing the depth counter, we could make trees have variable height (right now this is not possible, as each child axioms must have...
  9. socram8888

    Hi everybody

    Hmm, I would like to modify a bit the tree generator, removing the depth counter and maximum depth, making the probability linear. Therefore trees would be more variated, relying on the probability value only to stop recursion. This will also add small probabilities of creating extralarge or...
  10. socram8888

    Hi everybody

    Name: Marcos Vives Del Sol, also know as "socram8888" Social: https://github.com/socram8888 and https://twitter.com/socram8888 From: I am from Valencia, Spain Skills / Tools: I know a dozen of languages, ranging from JavaScript to Microchip assembly (and yes, I've also coded in brainf*ck)...
Top