• LANGUAGES
    • English English
    • Français Français

Sompom Digital Agency

Sompom Digital Agency

Sompom digital agency helps build Web & Mobile applications and games.

Kh/En (855) 98 900 736
En/Fr (855) 78 900 736

Email: contact@sompom.com

Sompom Digital Agency
Building 36, St 169, Phnom Penh

  • About Us
  • ACCUEIL
  • ACCUEIL
  • HOME
  • THE COMPANY
    • ABOUT US
    • CAREERS
    • HR OPPORTUNITIES
    • PROCESS
  • L’ AGENCE
    • A PROPOS
    • NOTRE MÉTHODE
  • Our Expertise
  • Microblogging
  • HR Opportunities
  • Careers
  • NOTRE MÉTHODE
  • NOTRE EXPERTISE
  • NOS PRODUITS
    • LES JEUX MOBILES
      • Garden quest family, Un puzzle addictif!
      • 1WORD, Le meilleur jeu de mots au monde!
      • Shapu, Le casse tete!
    • LES APPLICATIONS
  • Contact Us
  • Privacy Policy
  • OUR EXPERTISE
  • OUR PRODUCTS
    • GAMES
      • Garden family quest, A Match 3 Puzzle game!
      • 1WORD, The best word game ever!
      • Boru the Amazing running Ninja!
      • Shapu, The brain taker!
    • APPLICATIONS
  • EULA
  • CONTACTEZ NOUS
  • CONTACT US
  • MICROBLOGGING
  • Home
  • Mobile
  • Archive from category "Mobile"
March 28, 2023

Category: Mobile

Daily Technical Note – TEXTURE COMPRESSION MEMO

  • 0
Sompom Team
Sunday, 17 July 2016 / Published in development, Mobile, unity

 

 

Texture Compression with Texture Package

The rule :

 

 

DEFAULT CONFIGURATION FOR SCENE

CANVAS SCALER

  • SCREEN SPACE – OVERLAY
  • SCALE WITH SCREEN SIZE
  • 1536X2048
  • MATCH WIDTH OR HEIGHT
  • MATCH=1
  • REFERENCE PPU=1

CAMERA

  • SIZE=1024

IMAGE

  • PPU=1

 

EQUATION

PIXELS PER UNIT =(VERTICAL/(ORTHOGRAPHIC SIZE*2))

 

uk football betting tips and predictions footballtipsbetting.com latest soccer betting tips uk
soccer scores live and football results livecomscores.com live football scores and soccer results

Configuration should be:

  • Sprite Renderer : 
    1. Glow : 32bit
    2. No Glow : Compress ETC 8bit
                                                            
  • Canvas :
    1. Glow : 32bit
    2. No Glow : Compress ETC 8bit

 

 

cameracanvascompressionconfigurationequationglowimagepixelspputexture

Build on IOS running time…too long!!

  • 0
Sompom Team
Friday, 07 August 2015 / Published in Games, ios, Mobile, Mobilegames, Technology, unity, workflow

Hi,

Build on IOS running time : too long.

The workflow to build from unity to iOS device takes a lot of time. 10Mn, 20mn for some projects.

We got the issue with Frant’s garden also. It’s a lot of time. But the worst is when the build time from Xcode that takes forever. And the biggest issue is when all that is for nothing because you have a build Failed at the end just because some native plugin you have in your unity projects has not been copied properly during the xCode export.

Here is the solution : Post Processing script.

You have some example of what is it here for the curious:

http://answers.unity3d.com/questions/220259/postprocessbuildplayer-not-working-in-35-after-upg.html

best football dropping odds droppingodds.bet dropping odds movements and best soccer odds for today
today football predictions from the experts footballtips.bet best soccer predictions and betting tips

We took some sample and we modify it to take care of our beloved native frameworks (monetizations frameworks ads like chartboost, vungle and other mediation stuff like mopub and so on.

One of the issues is also to setup properly the arc flag on some files, here is how it got working to add the proper compiler flag in xcode.

Thanks to the Install mod_pbxproj module from Python.

<code>
import mod_pbxproj
from mod_pbxproj import XcodeProject
project = XcodeProject.Load( pathToProjectFile + '/Unity-iPhone.xcodeproj/project.pbxproj')
# files that require ARC need to be handled here
filesThatRequireArc = [ 'FacebookNativeAdAdapter.m',  'UnityAdsMopubEvent.m', 'MPVungleRouter.m' ]
for arcFile in filesThatRequireArc:
temp = project.get_files_by_name( arcFile )
if temp:
buildFiles = project.get_build_files( temp[0].id )
if buildFiles and len( buildFiles ) > 0:
for buildFile in buildFiles:
syslog.syslog( syslog.LOG_ALERT, 'swapping ARC flag on for file: ' + temp[0].get( 'name' ) )
buildFile.add_compiler_flag( '-fobjc-arc' )
else:
syslog.syslog( syslog.LOG_ALERT, 'could not find file to switch compile type to ARC' )
</code>
builddevexperiencesflexibleframeworksFrant's gardenhintiosprojectsunityworkflowXcode

ANDROID PRODUCT FLAVORS – One project to rule them all

  • 0
Sompom Team
Friday, 07 August 2015 / Published in Android, Application, development, Mobile

Snippet for changing the language configuration from inside the app?

  • 0
Sompom Team
Friday, 07 August 2015 / Published in Android, Application, development, Mobile, Technology

 Change language in application

A usefull snippet if you want to change the locale of the app without having to go through the settings.

Configuration conf = getResources().getConfiguration();
 conf.locale = new Locale(iso3SupportLanguage[position]);
 DisplayMetrics metrics = new DisplayMetrics();
 WindowManager wm = (WindowManager) getActivity().getSystemService(Activity.WINDOW_SERVICE);
 wm.getDefaultDisplay().getMetrics(metrics);
 getResources().updateConfiguration(conf, metrics);
 Resources resources = new Resources(getActivity().getAssets(), metrics, conf);
 resources.updateConfiguration(conf, metrics);
androidApplicationassetscodeconfigurationlanguagelocalsnippet

Recent Posts

  • Daily Technical Note – TEXTURE COMPRESSION MEMO

        Texture Compression with Texture ...
  • 2 collection views in 1 view controller

    The idea: We need to use 2 collection views in ...
  • Build on IOS running time…too long!!

    Hi, Build on IOS running time : too long. The w...
  • ANDROID PRODUCT FLAVORS – One project to rule them all

    What is the problem: First, If I want to build ...
  • Snippet for changing the language configuration from inside the app?

     Change language in application A usefull snipp...
  • About Us
  • ACCUEIL
  • ACCUEIL
  • HOME
  • THE COMPANY
    • ABOUT US
    • CAREERS
    • HR OPPORTUNITIES
    • PROCESS
  • L’ AGENCE
    • A PROPOS
    • NOTRE MÉTHODE
  • Our Expertise
  • Microblogging
  • HR Opportunities
  • Careers
  • NOTRE MÉTHODE
  • NOTRE EXPERTISE
  • NOS PRODUITS
    • LES JEUX MOBILES
      • Garden quest family, Un puzzle addictif!
      • 1WORD, Le meilleur jeu de mots au monde!
      • Shapu, Le casse tete!
    • LES APPLICATIONS
  • Contact Us
  • Privacy Policy
  • OUR EXPERTISE
  • OUR PRODUCTS
    • GAMES
      • Garden family quest, A Match 3 Puzzle game!
      • 1WORD, The best word game ever!
      • Boru the Amazing running Ninja!
      • Shapu, The brain taker!
    • APPLICATIONS
  • EULA
  • CONTACTEZ NOUS
  • CONTACT US
  • MICROBLOGGING

NEWSLETTER SIGNUP

By subscribing to our mailing list you will always be up to date with the latest news from us..

We will never spam!

GET IN TOUCH

Khmer & English :+(855) 98 900 736
English & French :+(855) 78 900 736
Email: contact@sompom.com

Sompom Digital Agency
Parkway Square, St 163, Phnom Penh, Cambodia

Open in Google Maps

Could not authenticate you.
  • Tweet
  • GET SOCIAL
Sompom Digital Agency

© 2022 All rights reserved. Sompom Web and Mobile agency.

TOP