Posts by sxgaoyi

    Hello:
    In the ThreeJS: Dancing Cat (Animations) case, roaming in a room with collision detection function, using 3D software to generate three files: tourmodel.obj, texture.jpg, and texture_preview.jpg. Can this be achieved with just the following code?

    include url="%VIEWER%/plugins/depthmap_navigation.xml" />

    <image>
    <preview url="../depthmap/depthmap-textured/texture_preview.jpg" />

    <depthmap url="../depthmap/depthmap-textured/tourmodel.obj" texurl="../depthmap/depthmap-textured/texture.jpg" scale="100" hittest="true" />
    </image>

    Hello, engineer. In the case of "pops example", a pop-up window is opened, and there is no close button in the upper right corner. What is the reason? Thank you.


    xml: popups. xml


    Popups with iFrames / HTML / Images and a blurred background


    A demo of how to blur the background using the Blur Postprocessing Plugin and how to open several different popups (HTML, Websites, Panos, Videos, Images).

    Hello everyone, moderator good


    For example, the following effect is achieved, but there is no response in 1.19
    <! - mouse cursors mouse cursor ->
    <Cursors standard = "default"
    Dragging = "move"
    Moving = "move"
    Url = "% SWFPATH% / skin / drag-cursors.png"
    Type = "drag"
    Move = "2 | 0 | 30 | 32"
    Drag = "37 | 0 | 30 | 32" />

    Copy the following code to tour.xml scenario can be realized click on the pop-up text box hot scene, as if each scene so the code too much, how only into a hot spot in the code tour.xml, Other external file into another go?


    <hotspot name="text_spot1" url="%FIRSTXML%/skin/book.png" ath="0" atv="0" onhover="showtext(显示文字,STYLE4);" scale="0.5" onclick="switch(layer[textfield].visible)" />
    <layer name="textfield" visible="false" zorder="2" url="%FIRSTXML%/skin/textfield.png" align="center" x="0" y="0" width="50%" height="300" scale9grid="6|6|268|188">
    <!-- the scrolling text -->
    <layer name="textmask" type="container" align="lefttop" x="5" y="5" width="-30" height="-10" maskchildren="true">
    <layer name="textscroller" url="%FIRSTXML%/plugins/scrollarea.swf" alturl="%FIRSTXML%/plugins/scrollarea.js" mwheel="true" direction="v" overscroll="0" align="lefttop" width="100%" height="100%" onscroll="if(hoverflow GT 0, div(yp,toverflow,hoverflow);Math.min(yp,1);Math.max(yp,0); copy(th,layer[scrollbar].pixelheight);sub(th,layer[scrollup].pixelheight);sub(th,layer[scrolldown].pixelheight);sub(th,layer[scrollslider].pixelheight); mul(yp,th);add(yp,layer[scrollup].pixelheight); copy(layer[scrollslider].y,yp); );">
    <layer name="text" url="%FIRSTXML%/plugins/textfield.swf" align="lefttop" x="0" y="0" width="100%" autoheight="true" background="false" border="false" onautosized="copy(layer[textscroller].height, height);" padding="10 15"
    html="data:text-01"
    css="color:#000000; font-family:Arial; font-size:14px;"
    />
    </layer>
    </layer>
    <!-- the scrollbar -->
    <layer name="scrollbar" type="container" bgcolor="0x000000" bgalpha="0.25" align="righttop" x="5" y="5" width="19" height="-10">
    <layer name="scrollup" url="%FIRSTXML%/skin/dirbutton.png" align="righttop" x="19" rotate="-90" crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19" ondown="asyncloop(pressed, layer[textscroller].scrollby(0,+1));" />
    <layer name="scrolldown" url="%FIRSTXML%/skin/dirbutton.png" align="rightbottom" x="19" rotate="+90" crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19" ondown="asyncloop(pressed, layer[textscroller].scrollby(0,-1));" />
    <layer name="scrollslider" url="%FIRSTXML%/skin/sliderbutton.png" align="righttop" x="0" y="19" crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19" ondown="if(layer[textscroller].hoverflow GT 0, copy(cy,y);copy(sy,mouse.stagey);dragging(); );" dragging="if(pressed, sub(dy,mouse.stagey,sy);add(ny,cy,dy);Math.max(ny,layer[scrollup].pixelheight); copy(th,layer[scrollbar].pixelheight);sub(th,layer[scrolldown].pixelheight);sub(th,layer[scrollslider].pixelheight);Math.min(ny,th); copy(y,ny); sub(ny,layer[scrollup].pixelheight);sub(th,layer[scrollslider].pixelheight);div(ny,th); copy(fh,layer[textscroller].hoverflow); mul(fh,-1); mul(ny,fh); layer[textscroller].stopscrolling(); copy(layer[textscroller].y,ny); delayedcall(0,dragging()); );" />
    </layer>
    <layer name="text_close" type="image" url="%FIRSTXML%/skin/btnClosePanel.png" visible="true" zorder="1" align="righttop" x="20" y="265" scale="1.0" alpha="1.0" onhover="showtext(关闭,STYLE4);" onclick="set(layer[textfield].visible,false);" />
    </layer>
    <-! The text for testing ->
    <Data name = "text-01">

    <P> Along with the warm spring in March, this morning, a lecture entitled "Beautiful Taiwan" Taiwan masters of modern classical art exhibition in the Museum of Fine Arts and the majority of mainland Chinese audience. Exhibition by the Chinese Culture Association, China Federation of Taiwan Compatriots, Taiwan Cultural Center Foundation, the China Art Gallery, co-sponsored by China National Art Gallery. </ P> </ data>

    Engineers Hello, in the case concerning scrollingtextfield use can not be achieved in practice, is to have both a hot spot in each scene, click on the hot text box pops up, each scene separately display different text, and buttons shut down.
    One problem: in tour.xml, it has been added to a button, but click = "" how to write?
    Second problem: the case of the XML file how to call?
    Question three: each scene has character, how these words are concentrated in one file and call? .


    Thanks for help My e-mall:2210509@163.com

    02 folder panoramic 01xm.tiles folder and krpanotools32.exe tool, use the command line: krpanotools32.exe maketiles 001xm.tiles / f / l3 /% v / l3_f_% v_% h.jpg pano_f.tif 0 -insize = 1910x1910 -intilesize = 512
    Results:
    E: \ LS \ 02> krpanotools32.exe maketiles 001xm.tiles / f / l3 / v_h.jpg pano_f.tif 0 -insi
    ze = 1910x1910 -intilesize = 512

    kmaketiles 1.17.2 - 32bit (build 2014-05-09)
    ERROR: unable to open inputimage 001xm.tiles / f / l3 / v_h.jpg
    done.
    E: \ LS \ 02>

    I used the system is win7 Professional Edition, 64-bit, and this relationship? Thank you! ! !

    Klaus Hello, I wrote: krpanotools32.exe maketiles ys/l3_%s_%v_%h.jpg abc.tif 0 -insize=1910x1910 -intilesize=512, can not be generated, what is the reason? Please advise, thank you!!!
    Below is the original message of the picture:

    <image type="CUBE" multires="true" tilesize="512" progressive="false">
    <level tiledimagewidth="1910" tiledimageheight="1910">
    <cube url="panos/001xm.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="955" tiledimageheight="955">
    <cube url="panos/001xm.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="512" tiledimageheight="512">
    <cube url="panos/001xm.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
    </level>

    Engineers Hello, you can tell me about krpanotools Maketiles Tool's detail approach? Thank you! ! !
    The main image of the cut pieces into one ball and then the panorama.

    E:\LS\02>krpanotools64.exe maketiles tiles/%s/l3/%v/l3_%s_%v_%h.jpg retiled.tif
    0 -insize=3183x3183 -intilesize=512
    kmaketiles 1.17.2 - 64bit (build 2014-05-09)

    ERROR: unable to open inputimage tiles/%s/l3/1/l3_%s_1_1.jpg
    done.
    E:\LS\02>

    What are the reasons can not be implemented?

    Good image fragment had been cut and stored according to the original folder structure, or all in one directory?


    my email:2210509@163.com