Results 1 to 2 of 2

Thread: Drawing WebGL back to 2D Canvas

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    21

    Drawing WebGL back to 2D Canvas

    Hi,

    I can draw some textures (use 2D canvas) in WebGL. However, I encounter another problem. If I want to rotate the object in WebGL and then draw the current view (after rotation) in 2D canvas, how can I implement it well? Is is possible for me to pass the WebGL object or just the view of WebGL object to 2D canvas?

    Thanks for your help.

  2. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    17

    Re: Drawing WebGL back to 2D Canvas

    Maybe you could use webgl_canvas.toDataUrl("image/png") method to get "screenshot" of the webgl canvas and then use it within canvas2d

Similar Threads

  1. Replies: 0
    Last Post: 02-27-2013, 12:26 AM
  2. Render texture to other webgl canvas element
    By klapsd in forum Developers Coding:Beginner
    Replies: 3
    Last Post: 02-13-2012, 02:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •