struggling with 3dmodel

  • been looking at examples from textured-model ant it has 2 was of showing an obj

    the obj refers a mtl that has the jpg declared

    all the obj, mtl, jpg are in same folder


    with this image tag the model shows


    <image autoload="true" prealign="0.0|0.0|0.0" ox="0.0" oy="0.0" oz="0.0" >
    <sphere url="panoramapalace/model/capuchos.jpg" />
    <depthmap url="panoramapalace/model/capuchos.obj"
    enabled="true"
    background="none"
    scale="10"
    offset="0.0"
    subdiv="0"
    cull="front"
    axis="+x+y+z"
    origin="0|0|0"
    align="0|0|0"
    hittest="true"
    hittestmode="cpu"
    rendermode="3dmodel"
    textured="true"
    mapmode="1"
    curve="1.0"
    farscale="1.0"
    />

    </image>


    and with this it does not. i dont even see the jpg loading in the "network". I dont have any related errors on browser console or krpano log. I tried with and without texturl. ->


    <image autoload="true" prealign="0.0|0.0|0.0" ox="0.0" oy="0.0" oz="0.0" >
    <preview url="panoramapalace/model/capuchos.jpg" />
    <depthmap url="panoramapalace/model/capuchos.obj"
    texturl="panoramapalace/model/capuchos.jpg"
    enabled="true"
    background="none"
    scale="10"
    offset="0.0"
    subdiv="0"
    cull="front"
    axis="+x+y+z"
    origin="0|0|0"
    align="0|0|0"
    hittest="true"
    hittestmode="cpu"
    rendermode="3dmodel"
    textured="true"
    mapmode="1"
    curve="1.0"
    farscale="1.0"
    />
    </image>

    It has to be a really dumb thing.
    thank you.

  • hi,

    mtl is not retrieved (not event tried)

    obj opens nice in windows 3dmodel viewer and opens in the working example (although there the texture is declared in the other tag)

    working -> https://panoramapalace.com/preview/objtest/

    I simply copied the tag from the example and maintained the scale tag

    not working -> https://panoramapalace.com/preview/objtest/notworking.html


    thank you for your help

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!