void Start()
    {
        meshMaterial = parentMappedGameObject.renderer.material;

        PMappingControllerRef = parentMappedGameObject.GetComponent <PMappingController>();

        mainCamera          = PMappingControllerRef.mainCamera;
        isHomographyEnabled = PMappingControllerRef.enableHomography;
        MVP = mainCamera.projectionMatrix * mainCamera.worldToCameraMatrix;
    }
Example #2
0
    void Start()
    {
        PMappingControllerRef = parentMappedGameObject.GetComponent <PMappingController>();
        mainCamera            = PMappingControllerRef.mainCamera;

        normalColor   = PMappingControllerRef.normalColor;
        selectedColor = PMappingControllerRef.selectedColor;
        draggedColor  = PMappingControllerRef.draggedColor;

        gameObject.renderer.material.color = normalColor;
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        thisTransform          = transform;
        prevSelectedController = null;
        isControlPressed       = isEditButtonPressed = false;
        currentSelectedObject  = -1;

        projectionWallsControllers = new PMappingController[projectionWalls.Length];
        for (int i = 0; i < projectionWalls.Length; ++i)
        {
            projectionWallsControllers[i] = projectionWalls[i].GetComponent <PMappingController>();
        }

        pMappingKeyboardController = gameObject.AddComponent <PMappingKeyboardController>();
        pMappingKeyboardController.setActiveScreenController(projectionWallsControllers[0]);
    }
 public void setActiveScreenController(PMappingController pmappingControlRef)
 {
     activeProjectionScreenControllerRef = pmappingControlRef;
 }