Sie sind nicht angemeldet.

1

Donnerstag, 15. September 2022, 02:58

obj model scene on top of equirectangular image scene

I have an equirectangular scene of stars:

Quellcode

1
2
3
4
5
6
7
<scene name="space1obj" title="starsequi" autoload="true"  thumburl="panos/starsequi.tiles/thumb.jpg" lat="" lng="" heading=""  music="always" >
<preview url="panos/starsequi.tiles/preview.jpg" />
 <image prealign="0|260|0" > <cube url="panos/starsequi.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,256" />	 </image>
               <hotspot name="spot1" style="skin_hotspotstyle" ath="-14.194" atv="14.734" linkedscene="space2obj" />
 <!-- change the scene by pressing SPACE: -->

 <events onkeyup="if(keycode == 32, loadscene(space2obj,null,MERGE|KEEPMOVING|KEEPSCENES, BLEND(1)));" />	</scene>	



Then I have a second scene of obj models:

Quellcode

1
2
3
4
5
6
7
8
<scene name="space2obj" music="saga1" >
 <image prealign="0|10|0" > 
 <sphere url="uvfinalmat14.png" />

 <depthmap url="panos/uvfinalG14.obj" rendermode="3dmodel" scale="100" textured="true" waitforload="true" /> 		</image>

               <hotspot name="spot2" style="skin_hotspotstyle" ath="-14.194" atv="14.734" linkedscene="space1obj" />
 <!-- change the scene by pressing SPACE: -->	 <events onkeyup="if(keycode == 32, loadscene(space1obj,null,MERGE|KEEPMOVING|KEEPSCENES, BLEND(1)));" />	</scene>



I want the first equirectangular image to be the background image for the obj models that I made in Blender.

How do I do this? I'm thinking it might have something to do with creating parent/child layers, but really I'm just making guesses in the dark.

Thanks for any help.


(More to say)
Seems like this is possible:
https://krpano.com/forum/wbb/index.php?p…ad&postID=86947


"Btw - a nice new usage case therefore is a background image (e.g. by using a layer with parent=BGLAYER) for 3D 'doll-house'-views."



I just don't know how to start.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Dennis Dixon« (15. September 2022, 04:23) aus folgendem Grund: more information


2

Donnerstag, 15. September 2022, 09:46

hi dennis,

what you're trying to do is not possible with krpano alone.
you can not have a background equi and place 3d models with textures.
it might be possible in a future version, we'll see...

there are some threads in this forum about combining krpano and threejs
but it probably needs advanced knowhow in js, krano and threejs ...

best, index

3

Dienstag, 20. September 2022, 16:37

You can do it with Three.js.
or another 3d api in js.
Best regards,

Damien

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden