PanoCamAdder Dollhouse Tutorial

In this tutorial I want to show, how to add a ‚dollhouse‘ to a virtual-tour with PanoCamAdder+ 1.7.

The dollhouse will be added to the existing tour from the Complete Workflow Tutorial.


If you have followed the tutorial, you should have a blend-file with a bunch of models, well aligned an sorted into different folders.

You can use this files for creating the uv-texture and the dollhouse.obj (You also can import a finished model, if you already have one).

How to prepare and embeed the model to the virtual tour:

  1. Create (or import) a model with UV texture
  2. Move to the TOUR3D arrangement
    • Apply loc/rot/scale
    • Export as OBJ
  3. Include to XML

Create model with UV texture:

I have used a copy from the ‚main-model‘ (where all cameras are on the right location) and created a UV-texture with it.

If you don’t know how to create UV’s and bake materials, check out the PanoramaTexture Baking tutorial.

When your baking is done, you can apply the UV-texture to the model: Select the model, press the ‚uv-texture‘ button (PCA/Helpers/Materials) and select your texture.

Import:

If you want to import an existing model, note that it must be a single object and that we can only use a single image texture in krpano so far (version 1.20.11).

Move to the TOUR3D arrangement:

The models in the TOUR3D folder represent the same arrangement as in krpano.

  • Move the dollhouse-model until it fits to the arrangement.
  • Apply all values for loc/rot/scale (Object/Apply/All Transforms).

All loc/rot values are 0.0 and scale=1.0 now. Therefore we don’t need any prealign settings in krpano for the dollhouse.

  • Now you can export the model as OBJ file (File/Export/Wavefront-OBJ).

Include to XML:

Dollhouse scene:

<scene name="Dollhouse" title="Dollhouse">
	<image>
		<sphere url="models/dollhouse.jpg" />
		<depthmap url="models/dollhouse.obj"
		  enabled="true"
		  rendermode="3dmodel"
		  textured="true"
		  scale="100"
		  />
	</image>
</scene>

Transition to dollhouse action:

<action name="transition_to_dh">	 		
	lookto(0,90,80,default,true,true);
	tween(view.ox|view.oy|view.oz, 0.0|0.0|1500, 2.0, easeinoutquad);
	tween(view.tx|view.ty|view.tz, 0.0|0.0|-200.0|, 2.0, easeinoutquad);
	loadscene(Dollhouse, null, MERGE|KEEPVIEW|KEEPMOVING, BLEND(1.0));
	set(control.invert,true);
</action>

<action name="dh_off">
	tween(view.oz|view.vlookat|, 0.0|0.0, 2.0);
	set(control.invert,false);
</action>

Next tutorial:

Panimator Logo

…coming soon!

How to add panimations with the Panimator addon.

Schreibe einen Kommentar

Spamschutz. Bitte die Aufgabe lösen * Time limit is exhausted. Please reload CAPTCHA.