Welcome, Guest.
Username: Password: Remember me

TOPIC: [SOLVED] Is it possible to do what I'm trying to do here?

Is it possible to do what I'm trying to do here? 1 year 9 months ago #1

  • Ioxa
  • Ioxa's Avatar
  • Offline
  • Posts: 267
  • Thank you received: 245
I'm trying to scale a texture down by half and then apply a blur to it. The way I have it set up now it blurs and then scales the image but when I try to apply another blur pass it returns a black screen. Can I only apply effects to the buffer image or am I doing something wrong?

Warning: Spoiler! [ Click to expand ]


Ultimately I'd like to pass the already scaled image to the first blur pass or maybe pass the image to another scaled texture. Also, is it possible to upscale an image? When I tried using values < 1 it would cause an error.
The administrator has disabled public write access.

Is it possible to do what I'm trying to do here? 1 year 9 months ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
Pass Q1 writes to frameTex2D, but at the same time samples from that texture (in GaussianBlurPS2). That's impossible, you can only read or write from/to a texture, but not both at the same time.
A way around would be to create two textures and switch between them (first write to the first, then read from that one while writing to the second, etc.).
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: Ioxa

Is it possible to do what I'm trying to do here? 1 year 9 months ago #3

  • Ioxa
  • Ioxa's Avatar
  • Offline
  • Posts: 267
  • Thank you received: 245
Sweet, it worked! Thanks Crosire, you da man!
The administrator has disabled public write access.