Bigger on the Inside?

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

JustJimAZ
Posts: 2
Joined: Sun Sep 23, 2012 6:35 pm

Bigger on the Inside?

Postby JustJimAZ » Sun Sep 23, 2012 6:37 pm

Hi there!
I'm new to the forum.
I would like to find out how to create the "Bigger On The Inside" effect as seen here: http://www.youtube.com/watch?v=gFPOUXmvx_U

I do not want a trick where you put the small box against a wall and then hide the big box behind the wall.

Just a small blue box housing a BIG yellow box would be great.

Thanks!

dustractor
Posts: 15
Joined: Mon Dec 10, 2007 1:52 am
Location: arkansas

this is not exactly coding blender

Postby dustractor » Sun Oct 07, 2012 3:07 am

all you would do is make the inside of the box be a matte material. render the shot from the outside ( lets call it [A] ) and then using same camera animation, render what you want to see inside of the box (lets call that [B])

Then composite the two together so that B shows through A where the matte material is.

JustJimAZ
Posts: 2
Joined: Sun Sep 23, 2012 6:35 pm

Re: this is not exactly coding blender

Postby JustJimAZ » Thu Oct 11, 2012 2:02 am

dustractor wrote:all you would do is make the inside of the box be a matte material. render the shot from the outside ( lets call it [A] ) and then using same camera animation, render what you want to see inside of the box (lets call that [B])

Then composite the two together so that B shows through A where the matte material is.


Interesting. I don't know how to do a matte material. What's the best tutorial?

dustractor
Posts: 15
Joined: Mon Dec 10, 2007 1:52 am
Location: arkansas

idk if there is a tutorial so I'll explain

Postby dustractor » Thu Oct 11, 2012 9:34 am

first of all, sorry to confuse you with wrong info but I don't think it is called matte or if it is then it would be the wrong usage for this case...

I was reading the release notes for this blender (2.64) and stumbled across the solution.

Its called id-mask node and its in the compositor.

so heres how you would set it up:

scene 1:

This scene contains all the stuff that goes on the outside of the cube, including the cube. Perhaps a light, some ground, a camera... and a cube that has two materials on it, A and B.

The A material is whatever you want it to look like. Where you want there to be a hole into the other scene, you assign the B material to that face or faces. The setting you change to make the B material is its Pass Index. The default is zero so set it to one.

In the compositor now how to get this Pass Index as alpha...
You get to the node editor shift+F3 and make sure its showing compositing nodes and that they are enabled. home key zooms to fit the window once you get to the default node setup you make it like this
http://www.pasteall.org/pic/38758

There needs to be checked a box in the Render>Layers panel -- material index. That will make a node output show up IndexMA. You hook that up to and id-mask node. The id-mask node hooks up to the factor on an AlphaOver node. The two inputs on the AlphaOver node get the two scenes, and will mix between the two so that whereever there is material B showing, Scene 2 is showing, but for everything else, you see scene 1.

Your camera gets animated in scene 1 however you see fit. i put an empty where the hole was and damptracked the camera to it. once you create the second scene, you link this scene's camera to the other scene (ctrl+L), so they will share the same animation data. Ctrl+L is your amazing friend.

scene 2:
all the stuff that goes on the ''inside'' of the cube (even though not necessarily located inside). i went ahead and enabled mist mist here to add to the illusion.

When you are on scene 2, you would delete the blue/outside/small cube and on scene 1 you would delete the yellow/inside/big cube.

let me know if i missed anything but i think that's mostly it

dustractor
Posts: 15
Joined: Mon Dec 10, 2007 1:52 am
Location: arkansas

Postby dustractor » Thu Oct 11, 2012 9:38 am


dustractor
Posts: 15
Joined: Mon Dec 10, 2007 1:52 am
Location: arkansas

Postby dustractor » Thu Oct 11, 2012 10:02 am

https://docs.google.com/open?id=0B5DBgm1fYrU5eFB5eU5NcjMtaTQ


this thread should probably be moved, come to think of it.

CoDEmanX
Posts: 894
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Postby CoDEmanX » Mon Nov 26, 2012 8:55 pm

I did this with simple Mask alpha, the compositing isn't great though (used VSE, but there are probably better ways):

http://www.youtube.com/watch?v=T-gZmmxvARs

http://www.pasteall.org/blend/17736
I'm sitting, waiting, wishing, building Blender in superstition...


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 1 guest