Search Unity

Samsung Family Hub, trouble with screen orientation

Discussion in 'Tizen' started by wolfviking0, May 19, 2017.

  1. wolfviking0

    wolfviking0

    Joined:
    Jun 1, 2015
    Posts:
    8
    Hi,

    I am currently doing some test in order to launch unity application on the Samsung Family hub. The device support Tizen 3.0 Mobile profile.

    I was easily able to install unity app on the refrigerator, but I have some trouble with orientation.

    The device is using a resolution 1080x1920. I try to force the option inside the player settings to only use portrait mode but the application is always running using landscape mode so of course the rendering is incorrect.

    I try to change to force in C# the screen resolution but it's not working.
    If I force the screen orientation to portrait inside the code, the application hang with really weird rendering.

    I also try to override the tizen-manifest but so far no success.

    Did you have any tips to force starting Unity on Tizen device with a specific resolution ? Or may be some other way to force the rendering to be in portrait mode.

    Thanks

    Tony
     
  2. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81
    Maybe you can use native plugin for rotation. I have not Family hub now, but I'll try it on my mobile phone.
     
  3. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81
    How about these options?
    upload_2017-5-19_10-50-55.png
     

    Attached Files:

  4. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    Interesting. I haven't heard of anyone trying to install Unity on the Family Hub. Cool that it works somewhat.

    Unfortunately only the mobile phones are supported so you may run into issues that we can't resolve. So proceed at your own risk.
     
  5. wolfviking0

    wolfviking0

    Joined:
    Jun 1, 2015
    Posts:
    8
    @sukwon I tried to change this Default orientation parameter but Portrait give this weird landscape resolution.
    and when I try Landscape nothing happen.

    @Masterfalcon, I understand but just in case do you try on mobile to force the resolution, force the portrait mode or landscape.

    Anyway I will keep doing some experiment and let you know the issue or result I have.
    If I am using screen.resolution, is there any way to refresh Unity after that, when I settled a new Width and Height, Unity do not update the resolution.
     
  6. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81
    @wolfviking0

    Please find attached files.
    It used TIZEN native API.
    It was rendered as 90 degree rotated.

    Assets.zip > libtizenwindowrotate.so : TIZEN plugin lib
    Assets.zip > C# script binding TIZEN API.

    tizenwindowrotate.zip : TIZEN project on TIZEN STUDIO 1.2. You can get libtizenwindowrotate.so after build.
     

    Attached Files:

  7. wolfviking0

    wolfviking0

    Joined:
    Jun 1, 2015
    Posts:
    8
    @sukwon-suh Thanks for sharing the tizen plugin. Unfortunately it's not solving my trouble. I did different test but none of them work:

    TEST 1 : Player Settings set with orientation portrait only + Add tizenrotatewindow 90
    I/Unity (23007): Device Model : Tizen RF28M9580SG/AA,RF28M9580SR/AA,RF22M9581SG/AA,RF22M9581SR/AA
    I/Unity (23007): Device Name : [Refrigerator] Samsung
    I/Unity (23007): Device Orientation : LandscapeRight
    I/Unity (23007): Device Resolution : 1920x1080
    I/Unity (23007): >>>> TIZEN Device Resolution : 1920x1080
    I/Unity (23007): Resolution : 1920x1080


    TEST 2 : Player Settings set with orientation portrait only + Add tizenrotatewindow 180 or 270
    I/Unity (23227): Device Model : Tizen RF28M9580SG/AA,RF28M9580SR/AA,RF22M9581SG/AA,RF22M9581SR/AA
    I/Unity (23227): Device Name : [Refrigerator] Samsung
    I/Unity (23227): Device Orientation : LandscapeRight
    I/Unity (23227): Device Resolution : 1920x1080
    I/Unity (23227): >>>> TIZEN Device Resolution : 1x1
    I/Unity (23227): Resolution : 1x1


    TEST 3 : Adding c# Screen modification
    Screen.orientation = ScreenOrientation.Portrait;
    Screen.SetResolution(1080,1920,true);

    /Unity (23666): Device Model : Tizen RF28M9580SG/AA,RF28M9580SR/AA,RF22M9581SG/AA,RF22M9581SR/AA
    I/Unity (23666): Device Name : [Refrigerator] Samsung
    I/Unity (23666): Device Orientation : LandscapeRight
    I/Unity (23666): Device Resolution : 1920x1080
    I/Unity (23666): >>>> TIZEN Device Resolution : 1080x1920
    I/Unity (23666): Resolution : 1080x1920
    I/Unity (23666): Resolution : 1080x1920

    For Test 2 and Test 3, the result is the same :( IMG_0529.JPG IMG_0530.JPG
     
  8. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81
    responsible team is looking this issue.
     
  9. foutchy

    foutchy

    Joined:
    Jan 28, 2018
    Posts:
    1
    Hi wolfviking0,

    How did you get connected to your fridge? I'm trying to develop an app but didnt find how to transfert it to the fridge device. Didin;t work with tizen studio device manager.

    thanks
     
  10. jaejeongkim

    jaejeongkim

    Joined:
    Mar 14, 2016
    Posts:
    1
    Hello wolfviking0,
    Your experiment seems quite interesting.
    Could I get some information for install Unity app to Samsung Family hub?