sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [Plugin] Video on a face using textured material

    Scheduled Pinned Locked Moved Plugins
    4 Posts 3 Posters 5.8k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      morisdov
      last edited by

      This is a work in progress unfinished version.

      Since i have no experience with Open-GL and need ads billboards in SketchUp
      I thought of sending the screen coordinates of the four corners of a
      face as a video dispaly canvas to an external Java class of video play.
      The problem arrises if you need the video to be partially blocked by a
      sketchup body in front of it.
      As a simpler solution i am trying to use changing textured materials, but
      If i preemtively load the textures they are a memory hog.
      When i load them in real time they are a cpu hog.
      I think the "importer" implements much less cpu taxing process but
      the documentation about the Importer is missing -
      http://download.sketchup.com/OnlineDoc/gsu6_ruby/Docs/ruby-importer.html

      Any ideas where the cpu cycles are wasted ?
      i will try later - threading, loading blocks of 10, more ideas ?

      http://morisdov.googlepages.com/SketchUp.video.tex1.zip - main program and 10sec of video - 1.5 MB
      http://dovmoris.googlepages.com/SketchUp.video.tex2.zip - more frames for above video 6 MB

      Thanks

      1 Reply Last reply Reply Quote 0
      • tbdT Offline
        tbd
        last edited by

        I tried the same path when I played with video textures - I ditched the idea as it is slow and dont have all the control needed for video playback.

        how about having 10 images stiched on horizontal and then play with UV mapping - this way will not waste time in drive access/image decompress/material assignment. also it will load the big texture in GPU and it will be faster.

        the disadvantage is that you need a preprocessing stage to stich the images

        SketchUp Ruby Consultant | Podium 1.x developer
        http://plugins.ro

        1 Reply Last reply Reply Quote 0
        • P Offline
          princedragoncok
          last edited by

          Hey TBD, is your video texture ruby open source? If so where can I get it? I saw your youtube vid - it has huge potential imo

          1 Reply Last reply Reply Quote 0
          • tbdT Offline
            tbd
            last edited by

            not yet. I am still keeping it private for the moment for when I get some time to extend it. but I think I will open it as the free time is nowhere in sight πŸ˜‰

            SketchUp Ruby Consultant | Podium 1.x developer
            http://plugins.ro

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement