Video background with background image and object rotate

I created the example on this link:
The questions:

  1. How can I combine the video of the clouds with the background image so the video will replace the clouds on the image?
  2. how make the objects “disappear” after the background image like the building is hide them and make the “reappear” after passing the building?
    I think the image shouldn’t rotate around itself and just move

Does it work if you apply an instance of VideoTexture to `Scene.backgroud?

It show the video but remove the background image and push the objects down.
this is the code for the background
loader = new THREE.TextureLoader();

		bgTexture = loader.load("img/house-bg.jpg",
		function ( texture ) {
			var img = texture.image;
			bgWidth= img.width;
			bgHeight = img.height;
		scene.background = bgTexture;
		bgTexture.wrapS = THREE.MirroredRepeatWrapping;
		bgTexture.wrapT = THREE.MirroredRepeatWrapping;
		var videobg = document.getElementById( 'videoBG' );

		var texturebg = new THREE.VideoTexture( videobg );
		texturebg.minFilter = THREE.LinearFilter;
		texturebg.magFilter = THREE.LinearFilter;
		texturebg.format = THREE.RGBFormat;
		scene.background = videobg;

Other question is can I move the house from the right and stop it where it position on the image?

Can you please demonstrate your current progress as a live example?

I have a link if this OK.‏‏rotate2-movie.html
The video on the top need to be instead of the skies in the background image

I would prefer a codepen or fiddle so the code is actually editable.

I don’t think it’s possible with the current assets to blend the moving sky behind the buildings of the texture. Probably easier to make a video that contains all in one.

Thanks, that is what I also think, can I create moving clouds with and add them to the background?
(I think the client will back out of the video, it still cost bandwidth)
If I want to rotate the house and the object around it so the objects disappear behind the house and reappear in front of it, using something like solar system will be good?

But that does not work if you define the skyline texture as a background. All other 3D objects in your scene will always be in front of it.

Thanks for the help.
The client want to have simple background (go it),
make the house come of the right and stop and middle of screen and after the stop the objects will start spinning while the house do not move.
(how I add images the to jsfiddle code if I need? just full path to the images?

I always upload them to and then use the HTTPS URL. In this way, you won’t have any security or CORS issues.

Thanks I going to try…
I created my first

I not getting the right result, what is wrong?

What I need to to bring the house from the right, rotate it few times and then stop it and bring the objects rotating it.

Here is a link of what I made
it is the same as the jsfiddle

(index):42 Uncaught ReferenceError: TweenLite is not defined

It seems you have not included TweenLite.

Thanks, How I include it?
It can be download from their site

Feel free to use CDN:


Thanks, I think I missing something, it is still don’t work.
How I see errors?

Just open the browser console (part of the dev tools).

think I fixed the errors