Jump to content

MRT not supported on IOS?


BMWPilote
 Share

Recommended Posts

@BMWPilote

I used this Github code when I had a similar issue:

https://github.com/BabylonJS/Babylon.js/blob/master/dist/previous releases/babylon.2.4.d.ts

Check lines 45, and 172. Worked on my Mac Pro ( with some modifications). Written by @Deltakosh - so I'm not certain why he doesn't believe it's possible. Of course, a modification of the code that actually runs is far more difficult to write. There are literally 100s of apps utilizing MRT for IOS - just do a search and get whatever code you need. I can't share what I did, as it is the property on Sony Electronics.

DB

Link to comment
Share on other sites

Well I confirm that multi render target are not supported on iOS (I've just checked a few minutes ago to make sure iOS 11 did not change anything)

Link to comment
Share on other sites

In WebGL, it's not simple at all, but you can disable Z-buffering, and build your own Z-buffer functions. This will work, but again is quite an advanced solution to write. Perhaps new Z-buffering computations could be written into babylon.js? Of course, by far more talented devs than myself. @Deltakosh? I know you have a fantastic team!

DB

Edit - I had this in my bookmarks, and realize now that the links are outdated. Still, I'd love to see the changes made to the Z-buffer computations to permit MRT.

Link to comment
Share on other sites

This being done, but every link I find uses a fragment shader. Here's a useful link:

https://webglfundamentals.org/webgl/lessons/webgl-drawing-multiple-things.html

and

https://webglstats.com/webgl/extension/WEBGL_draw_buffers

But it looks as though we'll be waiting for WebGL 2.0 - although I personally believe we will still be waiting before this is standard.

And now I will avoid this topic, as I must refer to @Deltakosh . If anyone knows more about this than him, then I a rubber ducky...?

DB

Link to comment
Share on other sites

11 hours ago, Deltakosh said:

We do have complete support for MRT even in webgl1 if the draw buffers extension is here. This is how this demo is done: https://www.babylonjs-playground.com/#7D2QDD#0

But to refer to OP question: this does not work on iOS because the draw buffer extension is not present

Thanks you for your confirmation boss.

Link to comment
Share on other sites

11 hours ago, Deltakosh said:

We do have complete support for MRT even in webgl1 if the draw buffers extension is here. This is how this demo is done: https://www.babylonjs-playground.com/#7D2QDD#0

But to refer to OP question: this does not work on iOS because the draw buffer extension is not present

Thanks you for your confirmation boss.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...