Interior mapping

Could someone implement a Unity version of this:
http://interiormapping.oogst3d.net/

Yes, I can think of someone who can…
Or, as a wise man once said, (and I as I paraphrased because I can’t think of the exact quote to save my life): the hen that lays the egg hatches it.

In plain English: Why don’t you give it a shot and show us what you can do?

Yes, that would be an option…but not a very good one I’m afraid with my less than stellar coding skills.
I meant my post more of a; “Look what cool technology I found…and it’s free to use and includes sourcecode”, ready to be ported to Unity by some brighter mind than mine.

Yeah, I looked at converting it; but, the CG file is 1300 lines long…
D:

I think it would be cool :slight_smile:

I am just not that good a programmer yet :frowning:

i don’t know how to code something like that but i don’t see it being all that tough to just model in some interior rooms (maybe have some planes to use for a cardboard cutout deal for characters inside if they’re not going to move.) it might mean that the load on the CPU might go up but with a little finagling i’m sure it could be done efficiently… and depending on which modeling package you’re using to do it, it might be as easy as just cloning one room over multiple window areas.

though, to be honest, i’m a newb to unity so that might not be the most efficient way to do it. dunno…

Assuming it uses a form of render to texture, you could fake it this by creating a few 3D rooms with frontal instead of backface culling to see through the walls. Then use a few camera tricks and render to texture to do the same thing by placing the camera at the right angle to the room and then rendering the room to texture with a repeating pattern. The perspective might get thrown off a bit however. It would be interesting to try none the less. I don’t have pro so I can’t. Anyone up for playing with render to texture to emulate this effect?

Maybe you could put the rooms on one layer, then the buildings on another. Draw the interiors first with one camera, then the exteriors with the second using holes in the meshes or textures of the buildings using another camera? That would result in a fair bit of unwanted drawing, but might work out OK, it certainly wouldn’t run well.

All this seems to be rather missing the point of the article, though, which is to do all of it cheaply on the GPU via the shader without the cost or overhead of having all that additional geometry rendering.

That’s true, Laurie, but do you have any recommendations?

Just did a port of this “interior mapping”-shader as my first Unity3D experiment. Found this thread when I wanted to show it to someone. Post is on the way on my blog. Meanwhile, here is a demo: http://www.inear.se/city/demo1

Well this blew my mind away. I still can not comprehend how it works. The only fault in the interior mapping shader is that its appears to be unable to render a secondary window inside on corner rooms. Otherwise this is really amazing. Ran crystal smooth for me too and I was surprised to see room lights interact according to the time of day. I could only guess that it uses a cubemap? but however its done thanks for showing it can be done in unity.

@InEar : just wow. Can’t wait to see it at the Asset Store… :smile:

Argh, the link to the demo just gives me a gray blank page.
I guess I’ll have to wait…

Got it working with Firefox. First I used IE and it didnt work.
Looks great. I really hope you will share or sell this.

@starpaq: Yeah I know, maybe the shader can be a transparent one and you will be able to control that if it’s the last wall, but that’s beyond my knowledge right now. I guess this shader will come to it’s best when passing by with some speed, taking focus from what actually is inside, since it’s pretty flat and repetitive.

@yann: I will provide the source/package at my blog, since this is an extension of others work. When it’s more optimized and reviewed by someone that knows Unity3d better than me maybe the AssetStore is the right place.

@Pixero: Explorer issue fixed. First time publishing a web-player, so thanks for noticing.

And here is the post on my blog: Interior mapping in unity3d

I’m not explaining the technique in depth since the original one is doing that in a great way. Link to the paper provided in the post.

You are F****** AWESOME! :open_mouth: worships at feet

@inEar:

very good work!!!

If you release a good component in asset store I will buy by sure … and I think many other people too :slight_smile: