We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Shopping Centre Directory

Home Forums Projects Shopping Centre Directory

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #55387
    Aubrey
    Customer

    I would like to share my latest project that I’ve just completed. Along with the website I built alongside some designers I also built a 3d directory. Please let me know what you think and if you may suggest something that I can make better, criticism is welcome.

    Eaton Fair Shopping Centre

    #55388

    great job! :good: :good: :good:

    Chief 3D Verger | LinkedIn | Twitter

    #55437
    haris
    Participant

    Really nice one :) , just a pro tip disable rendering when the camera is not moving it will make the performance and experience better :good:

    #55438
    Aubrey
    Customer

    Thanks for the tip haris, I didnt know that this even existed and would be wonderful as this will be used on kiosks in the centre. I tried to enable this but when the camera is activated again the annotations come up in the top left of the container. Is there a way to stop that from happening?

    #55439
    haris
    Participant

    Can you share a screenshot

    #55440
    Aubrey
    Customer

    I have set up a test map to show this.

    Test Map

    #55441
    haris
    Participant

    I checked you can simply enable rendering when the mouse hover’s over a building, use loop to make it done with less puzzles :good:

    #55445
    Aubrey
    Customer

    yep, using loop already. Thanks, its working again. How would i test this to see the difference that its making? I personally cannot see a difference.

    #55473
    haris
    Participant

    Can you share your puzzles so i know if it is working correctly or not :good:

    #55474
    kdv77kdv
    Participant

    Disabling rendering on when hovered out makes rotation rather jerky. It disables rendering while I’m trying to rotate the scene. Looks not good. Check if the mouse buttons are not pressed.

    #55479
    Aubrey
    Customer

    I have noticed the jerkiness as well but when I try what you suggested kdv77kdv the annotations go to the top left again.
    Here is the puzzle configuration I’m using.

    Attachments:
    You must be logged in to view attached files.
    #55488
    kdv77kdv
    Participant
    whenMoved(getActiveCamera(), 0.001, function() {
      cameraMoving = true;
      enableRendering();
    }, function() {}, function() {
      cameraMoving = false;
      disableRendering(false);
    });
    // Hover over store to get custom parameter
    registerOnHover(['GROUP', 'Properties'], false, function() {
      if (!cameraMoving && event.which == 0) {
        enableRendering();
        /* change material and remove annotation after tweenCam */
        if (tweenCamUsed) {
          assignMat(prevObject, 'base');
          handleAnnot(false, '', prevObject, '', '', undefined);
          tweenCamUsed = false;
        }
        property = getObjCustomProps(_pGlob.hoveredObject);
        setHTMLElemStyle('cursor', 'pointer', ['BODY'], false);
        if (dictGet(property, 'tenant') != '') {
          assignMat(_pGlob.hoveredObject, 'highlighted');
          handleAnnot(true, dictGet(property, 'tenant'), _pGlob.hoveredObject, '', '', undefined);
        }
      }
    }, function() {
      if (!cameraMoving && event.which == 0) {
        setHTMLElemStyle('cursor', 'default', ['BODY'], false);
        assignMat(_pGlob.hoveredObject, 'base');
        handleAnnot(false, '', _pGlob.hoveredObject, '', '', undefined);
        disableRendering(false);
      }
    });
    // Click on store
    registerOnClick(['GROUP', 'Properties'], false, false, [0,1,2], function() {
      if (!cameraMoving) { 
        assignMat(['GROUP', 'Properties'], 'base');
        assignMat(_pGlob.pickedObject, 'highlighted');
        if (dictGet(property, 'tenant') != '') {
          handleAnnot(false, '', prevObject, '', '', undefined);
          handleAnnot(true, dictGet(property, 'tenant'), _pGlob.pickedObject, '', '', undefined);
        }
        getJSFunction('openModal')(_pGlob.pickedObject);
        property = getObjCustomProps(_pGlob.pickedObject);
        setHTMLElemAttribute('className', 'unhide_reset', 'reset_camera', true);
        if (dictGet(property, 'camera-z') != '') {
          tweenCamera([dictGet(property, 'camera-x'), dictGet(property, 'camera-y'), dictGet(property, 'camera-z')], _pGlob.pickedObject, 1, function() {}, 0);
          tweenCamUsed = true;
          prevObject = _pGlob.pickedObject;
        }
      }
    }, function() {});

    https://v3d.net/ai3

    #55509
    Aubrey
    Customer

    Sorry, but that removes all my annotations when hovering.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.