newt's Recent Forum Activity

  • Evil spam bot technology is advancing at a rapid pace. Why someone would click on his sig is beyond me.. Who would actually buy something like clothing or jewelry from a sig link... Futile spammers. I'll keep an eye out for this sneaky bot.

    Well the spamers usually don't own those sites, they are just using some sort of affiliates program.

    Talk about evil.

    The site owners can deny all responsibility, and the spamers can simply create a new account even if the site owners were to terminate the account for violating tos.

  • I've had no issues, other than it not working when the octaves, and frequency were set too high.

    But that's only when the size was set low.

  • > It's alright, I don't mind answering questions!

    >

    Then why are you ignoring my PM?

    Ok, now that's funny.

  • Why not both?

    I know people probably get tired of me touting the benefits of distort maps, but the thing is its just so versatile.

    I recently realized that its possible to take an image like this:

    <img src="http://ronenix.com/wp-content/uploads/2008/04/oglrpg_4.jpg">

    And make an entire map out of just the one image using a distort map.

    Then for collision detection, you could just paste the sprite into the canvas and update its collision mask.

    Of course you would only want to make a simple background out of it, and creating an editor would be quite an undertaking, but the benefits would be very nice. The map could be just about any size, and your ram would be that of the the one sprite, and canvas. Once the map is generated, you could destroy the sprite.

  • Ok figured out something I was doing wrong. Instead of doing is even, or is odd on just y, I should have had it set to x, and y.

    I've also had an epiphany. You could actually have several textures all on one sprite, then set u, and v based on the noise that was generated. Although the math for that is a bit much for my feeble mind.

    But imagine an almost infinitely scaleable map, with as many textures as you please. Land, trees, water, all in semi 3d, and all taking the ram of just the one sprite!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Either my understanding of how U, and V work, or how to implement a tiled texture on a distort map, using either a loop, or array is wrong.

    In the cap here:

    http://dl.dropbox.com/u/666516/perlintiledsprite.cap

    perlin noise plug here:

    http://www.box.net/shared/3y6ogomhbi

    I've tried to set the u and v coords with the thinking they are either one of two, then the rows are even or odd.

    In a distort map set 4 columns/ rows it would start like this:

    0,0 |1,0 |0,0 |1,0 for the first row

    then

    0,1 |1,1 |0,1 |1,1 for the second.

    And then making a bigger map should be fairly straight forward following the formula:

    (y is even or odd, then a variable is either 1 or 2)

    Well apparently not, in the cap I've tried it in a loop, and an array with limited success, but it's far from being right.

    If any one would like to take a look at it and see if they can figure out what I'm doing wrong I'd appreciate it.

    Keep in mind you need the perlin plug to open the cap.

    http://www.scirra.com/phpBB3/viewtopic.php?f=2&t=4836&st=0&sk=t&sd=a&hilit=perlin

  • Ok, well that's simple enough.

    First I thought zeropad would give me to the ones position, and I could just compare to 2,4,6,8,0, strangely enough zeropad only pads with zero's... imagine that.

    I even thought of using len and then converting it back and forth from a string.

    Thanks

  • Again, loving the sounds.

    Is the music your own creation? And if it is how are you doing the vocals...VST plug perhaps?

  • Um yeah thought it might be nice to be able to pick based on whether a number is even or odd.

    Unless there's some simple way I'm just not seeing.

  • Sorry to bring this old thread up, but Mipey's example answered a question on arrays for me.

    That being if the for each condition cycled each z. Apparently it does.

    It's also a good example of the order for which each is called.

    Thanks

  • Well Im using a distort map set higher than 2 columns/rows, plus z heights. What Im wanting is more like 50.

    The problem is arranging the quadrants within the loop, or I should say loops.

    In a loop you first define the distort maps size.

    50 in this case so 49 columns/rows.

    That also gives me how many steps x, and y wise.

    Within a nested loop its:

    For x= 0 to 49

    for y= 0 to 49

    >distort map set relative displacement at loopindex(x), loopindex(y)

    The problem is for each x,y step I have to set u, and v to one of four quadrants 0,0| texture size,0 | 0,texture size | texture size,texture size.

    So I either need to add two more loops or devise a way using private variables.

  • Egad making a tileable texture using loops is going to be a nightmare!

newt's avatar

newt

Member since 12 Nov, 2008

Twitter
newt has 26 followers

Trophy Case

  • 16-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

31/44
How to earn trophies