Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jjevol

Pages: [1]
1
The location is not the page you want to represent the mesh renderer game screen on the UI.
Still need a representation that the other camera thinking about that you understand the answer.
The well had come up with
This problem occurs in all situations, nor haneunge.
Even before I wanted to regulate and control the camera area outside the viewport of the UI screens, I used to ask afterwards is cleared.
But then the answer even if you're going to do this using the NGUI game yiyeotda answers that have the screen.
So let a review as well for the cause of separate processing Although newly created camera problems.

The problem I have is not a problem to contact us arising from any device. Are issues that occur only with a specific device. How does awry'd think if I use this a common problem that occurs in all of the devices, the use of a particular device weird part is difficult to accept the wrong group anything. I know.

I had been frequently expressed CharacterModel wanted to express the UI for the past two years in the UI MeshRenderer camera, first saw this issue at this time.
Why I do not know why that express the UI MeshRenderer and NGUI a single camera, and if LoadLevelAsync is called when the screen is turned off and look NGUI once again.

2
I do not speak English.
So I use a translator.
Please forgive me.

I made the loading screen. Using the NGUI and Mesh Renderer

The problem occurred. In the Application.LoadLevelAsync

NGUI screen flashes once.

Without the Mesh Renderer problem does not occur.

But the character models are used to show the loading screen

This is a topic that was identified in GALAXY S5. There was no problem in the other device.

Troubleshooting is necessary because NGUI screen, the screen turns off to look after the cleanup is untested.


3
NGUI 3 Support / Re: camera viewport settings problem
« on: November 10, 2014, 02:15:28 AM »
In addition to in-game representation of the UI screen and camera illuminates the screen Depth 0
The UICamera Depth 1.

If you set as your comment seems to do this in-game screen

I understand trying to make it look smaller screen thinking about that set the view port rect haejwoya Having had cleared it again
And this problem arises from the specific device

There was no problem in NGUI 3.5.6.

I want the camera to cut road area ratio to fit the screen.

----------------------------------------------------------------------------
if ((float)Screen.width / (float)Screen.height < ManualWidth / ManualHeight)
        {
            height = Screen.width * (ManualHeight / ManualWidth) / (float)Screen.height;
            yPos = (1 - height) / 2f;
            //height -= 0.00001f;
        }
        else
        {
            width = (float)Screen.height * (ManualWidth / ManualHeight) / (float)Screen.width;
            xPos = (1 - width) / 2f;
            //width -= 0.00001f;
        }

        Util.SetScissorRect(uiCamera, new Rect(xPos, yPos, width, height));
        uiRoot.manualHeight = Mathf.FloorToInt(Mathf.Max(ManualHeight, ManualHeight * (ManualWidth / (Screen.width * (ManualHeight / Screen.height)))));


public static void SetScissorRect(Camera cam, Rect r)
    {
        if (r.x < 0)
        {
            r.width += r.x;
            r.x = 0;
        }

        if (r.y < 0)
        {
            r.height += r.y;
            r.y = 0;
        }

        r.width = Mathf.Min(1 - r.x, r.width);
        r.height = Mathf.Min(1 - r.y, r.height);

        cam.rect = new Rect(0, 0, 1, 1);
        cam.ResetProjectionMatrix();
        Matrix4x4 m = cam.projectionMatrix;
        cam.rect = r;
        Matrix4x4 m1 = Matrix4x4.TRS(new Vector3(r.x, r.y, 0), Quaternion.identity, new Vector3(r.width, r.height, 1));
        Matrix4x4 m2 = Matrix4x4.TRS(new Vector3((1 / r.width - 1), (1 / r.height - 1), 0), Quaternion.identity, new Vector3(1 / r.width, 1 / r.height, 1));
        Matrix4x4 m3 = Matrix4x4.TRS(new Vector3(-r.x * 2 / r.width, -r.y * 2 / r.height, 0), Quaternion.identity, Vector3.one);
        cam.projectionMatrix = m3 * m2 * m;
    }
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
It uses the code above problem occurred
Initially found it 's fresh because of projectionMatrix


However, even when a problem occurs to change the viewport rect without using "SetScissorRect"
To receive feedback about the solution to the problem.

4
NGUI 3 Support / camera viewport settings problem
« on: November 06, 2014, 05:19:22 AM »
ViewPort Rect strangely drawn this setting screen.


<ViewPort Setting ( 0.2, 0.2, 0.6, 0.6)>

The problem is that the device comes out in galaxynote1.



<OtherDevice>
The latest model of the device has not yet been confirmed.

Do I need to solve this problem
Thank you for the feedback on the issue.

Pages: [1]