CairoCreativeStudios's Recent Forum Activity

  • I make your words mine: If one is going discussing stuff in forums, even if they think they know what they're talking about, they should learn to check the freaking facts first. You're welcome.

    When did I ever say that? I may have acted like a smart ass, but I never said anything like this.

  • Gigatron, thanks for your time! Yeah, I actually modified this depth effect to modify X and Y shift amount based on the distance from the center of the screen, and then used the stepping that that parallax shader I linked used to make all the pixels line up correctly, and it's all working.

    Yeah, the way I was going to about it is going to sound stupid to anyone that knows anything about GLSL, I was just trying to hack the displacement to do what I'd just stated above. It doesn't make much sense not to just use this Depth Map effect and extend it though.

    Regardless, I'll be uploading this new effect here soon.

  • Ah! Haha there have been a few on another topic that were quite confused as to why this was set up the way it was, but explaining it that way makes a lot of sense.

    If it'd be easier you could just add to the manual to state that the upper bound is exclusive. That way if anyone ran into the issue they'd simply have to check the manual.

    Thanks for your time!

  • dop2000, Well, I definitely look like an ass. It simply seems practical that "between" wouldn't be inclusive by nature, but I guess that most people would disagree considering that all of the "between" functions we're seeing are inclusive.

  • Problem Description

    "Is Between Angles" does not return true if the value is equal to the upper bound.

    Attach a Capx

    https://www.dropbox.com/s/ipe8nen5g6ozq0s/Is%20Between%20Bug.capx?dl=0

    Description of Capx

    There are four text boxes.

    The first two use the "Is Between Values" condition, if(0<=0/10<=10){Set Text}

    The first two use the "Is Between Angles" condition, if(0<=0/10<=10){Set Text}

    Steps to Reproduce Bug

    Compare upper bound value in "Is Between Angles"

    Observed Result

    Setting the value to the upper bound of "Is Between Angles" does not return true.

    Expected Result

    The same result as "Is Between Values"

    Construct 2 Version ID

    r244

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wait a second. This is totally a bug. I'm going to report this correctly.

    "Is Between Values" and "Is Between Angles" work the same way. They're both logically wrong as it includes the bounds and the result is not implied in the title of the condition, but it would appear that this is very much a bug.

  • dop2000, I suppose that's a good argument. Though, the OP states the manual misinforms you about what the condition does, in the case of "Is Between Values", the manual explains that the lower and upper bounds are included.

    "Is between values

    Test if a number is between two values (greater or equal to a lower value and less or equal to a higher value)."

    I suppose this really could lead to quite a bit of confusion, although it seems to be a simple problem to work around. Still, "Is between values" is logically wrong as it includes the outside bounds, and not only what is between them. Sadly, it's impossible to change this, as changing it would likely break many projects upon updating to a newer version of the engine.

  • totoe, ah that's quite alright, thanks for the help you've given me!

  • brunopalermo, the manual says exactly this, simple logic dictates that in a list: 1,2,3,4,5; the numbers in between 1 and 5 are: 2,3,4. This is always the case. If one is going into programming anything, even in C2, they should learn this kind of thing first. If you wanted to test if a number was between two others in programming, using this example, it'd look like this:

    var num;

    var lowbound;

    var highbound;

    if(num>lowbound&&num<highbound){

    return true;

    }

    This will always be the case. If you were sitting next to a friend, sat a cup in between you two, and someone asked what was BETWEEN the two of you, would your answer include you and your friend? Of course not. Your answer would only be the cup. It's not very complicated.

  • totoe, I just need this http://apoorvaj.io/exploring-bump-mapping-with-webgl.html in a form usable in C2. I took the fragment shader and repurposed in C2, but have ran into a problem that in Chrome and Edge states is that there is "no precision specified for float", but when I specify the precision is simply states that type is a syntax error. I really don't understand what's going on.

    If you know a thing or two about these things can you help me here? The page I linked has the fragment shader, all I did was replace the tex_diffuse and tex_depth variables with SamplerBack and SamplerFront respectively.

  • totoe, thanks a lot for sharing this, though sadly the displacement doesn't work the way I was hoping. I had hoped that someone had made an effect similar to parallax displacement, but it doesn't appear as if it's been done at all yet, which makes me think I'm gonna have to shell out some cash to make it happen.

CairoCreativeStudios's avatar

CairoCreativeStudios

Member since 22 Feb, 2014

Twitter
CairoCreativeStudios has 9 followers

Connect with CairoCreativeStudios

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • x9
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • x2
    Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

18/44
How to earn trophies