effect question

This forum is currently in read-only mode.
  • are effects still processed on an invisible object? I suppose they don't, but i'm not sure.

  • Not for invisible objects. I'm pretty sure, anyway, since if it's marked invisible then it's not processed by the GPU.

    But for visible objects that have 0 opacity, yes they are.

  • ok, here's another one..

    Will an object with effects that is larger than the screen waste processing power by rendering the sprite area which is outside the screen? (let's say half of the object is onscreen, and half is offscreen)

    Does the runtime draw an effect rendering boundary which borders the screen co-ordinates, so rendering time isn't wasted?

  • How would the runtime know the effect isn't going to flip a sprite which is half off screen? It has to process the whole image.

  • How would the runtime know the effect isn't going to flip a sprite which is half off screen?

    true... never thought about flipping.

    I was just asking because it appeared that the particle object used some sort of clipping boundary, but now i realize that that's probably only to determine size.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Will an object with effects that is larger than the screen waste processing power by rendering the sprite area which is outside the screen?

    No. Graphics cards are way too optimised to do something as inefficient as process offscreen pixels. The case Rich described will cause only the visible area to be flipped, which could appear incorrect. However, this is a limitation imposed by Construct (the clever coordinate systems graphics cards use can cope with that situation), but I don't see a need to fix it, since you don't need a shader to flip an image.

  • Really? A lot of shaders replace pixels or modify their position.

  • That's what causes solid-colour edges to some effects like Magnify when near the edge of the window (the offscreen pixels are not available so it clamps to the viewport) but it would only break shaders which uniformly alter texture coordinates. Almost all shaders like magnify etc. don't uniformly alter texture coordinates so they get away with it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)