[Plugin] Video on a face using textured material
-
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.htmlAny 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 MBThanks
-
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
-
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
-
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
Advertisement