WebGLRenderTarget

Home Forums Programming WebGLRenderTarget

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #21611
    vincentvincent
    Licensee

    I work on custom a function like Replace Texture. I need to do appear camera view on a mobile phone.

    In the previous version of Verge3D (V9), we create a v3d.WebGLRenderTarget in order to render the scene in it :
    var bufferTexture = new v3d.WebGLRenderTarget( window.innerWidth, window.innerHeight, {minFilter: v3d.LinearFilter, magFilter: v3d.NearestFilter, antialias: true});
    appInstance.renderer.render(scene , camera, bufferTexture);

    But now there is a bug at the execution. (I work with Verge3D 16.0)

    • This topic was modified 5 months, 3 weeks ago by vincentvincent.
    #21619
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    But now there is a bug at the execution.

    what error is thrown in browser console?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #21624
    vincentvincent
    Licensee

    WebGL: too many errors, no more errors will be reported to the console for this context.
    1559v3d.js:1 v3d.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead.
    render @ v3d.js:1
    render @ visual_logic.js:920
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917
    requestAnimationFrame (async)
    render @ visual_logic.js:917

    #21625
    vincentvincent
    Licensee
    #21627
    Yuri KovelenovYuri Kovelenov
    Developer

    try this one:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #21630
    vincentvincent
    Licensee
    #21650

    Hi vincent,

    You can also try to restore the scene’s original render target after rendering into “bufferTexture”:

    From the error you posted it looks like “bufferTexture” is used in the scene on some object as a texture while still being the active render target for this scene, which isn’t alowed, but it’s difficult to tell what’s going on without knowing the actual code.

    Co-founder and lead developer at Soft8Soft.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.