shared_context issue

Dg's icon

Hello,

Could someone explain why the second render is blured?

Max Patch
Copy patch and select New From Clipboard in Max.

Zachary Seldess's icon

Hi Kyred,

Two things:

1. Videoplane was set to transform_reset 0, I set it to 1.

2. dim was 256x256, should match the dim of the original context's window (320x240). Now there's no blurring. Hope that helps.

best,
Zachary

Max Patch
Copy patch and select New From Clipboard in Max.

Dg's icon

Hi Zachary,

The problem with transform_reset 1 is we can't use camera $1 $2 $3, which is the goal of the patch.

About the texture dimension, it seems that the [jit.gl.texture] targeted by the "copy_texture" message, takes the native dimension from the context which copies its framebuffer to.

Look by yourself: there is no @dim in the texture, but the dims are 320*240*1. (I did not freeze the @)

I don't understand why this blur? This is not a dimension issue as what I understand.

---

However the circles are crenate, and with @fsaa 1 I get more a high res polygon than a real circle.

Any idea?

Max Patch
Copy patch and select New From Clipboard in Max.

Zachary Seldess's icon

Hi Kyred,

Yes, you're right about the texture taking the dimension of the copied context's window. Ok, move your camera to 0. 0. 2.42 in context B and see if you notice any blurring.

You're zooming in on a videoplane with a 320x240 dim texture. If the borders of the videoplane go beyond the 320x240 window, you get pixelation, as a subset of the 320x240 pixels are being stretched across the 320x240 window. It's essentially the same behavior as what happens in 2D matrix land.

best,
Zachary

Dg's icon

About the 2.42 I don't really see where from are you taking this value.
But it works fine but ... could you explain more?

Max Patch
Copy patch and select New From Clipboard in Max.