[Plugin] Video on a face using textured material

[Plugin] Video on a face using textured material

Postby morisdov » Wed Jun 11, 2008 12:30 pm

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/ ... orter.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
0

morisdov 
 

Re: [plugin] Video on a face using textured material

Postby tbd » Wed Jun 11, 2008 12:55 pm

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
0
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
tbd 
 

Re: [Plugin] Video on a face using textured material

Postby princedragoncok » Wed Jun 18, 2008 5:41 pm

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
0

princedragoncok 
 

Re: [Plugin] Video on a face using textured material

Postby tbd » Wed Jun 18, 2008 7:11 pm

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 ;)
0
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
tbd 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Floriannn and 7 guests

Visit our sponsors: