顯示具有 ios 標籤的文章。 顯示所有文章
顯示具有 ios 標籤的文章。 顯示所有文章

2015年10月9日 星期五

Develop VR App by Unity3D

前言:因為公司買了一些VR的設備,藉由之前用Unity開發遊戲的經驗,剛好替公司破億下載的派對做一個派對限定的APP。

Unity3D在5.1版後正式支援VR功能,而最近各個VR的平台紛紛做好Unity3D的Plugin,讓開發者能夠專心在處理想要呈現的世界,像Google Cardboard的在這,以及Samsung GearVR的在這,概念大概是把攝影機的Prefab拉到Unity的編輯世界裡就完成了,不過每家VR也有些特殊的功能通常也會提供,像Google Cardboard右邊有個拉環可以拉,它的SDK也包含這個觸發的Prefab。

Google Cardboard可以把程式甚至Deploy到iPhone上,用Cardboard就能得到跟Android一樣的體驗,只能說Google的想法真的很特別(民主);不像Oculus只想著如何綁硬體來賣,雖然用Unity開發,但只有Android而且還要Samsung S6跟Note4才能讓程式跑起來。

最後分享一下我的成品,概念是會把派對時,把大家拍的照片放在一個類似五次元的空間中(靈感來自星際效應的最後片段)。

https://github.com/bearprada/PicCollage100MPartyVRApp


2013年2月16日 星期六

Httpd on a App(Android and iOS)

    We found a lot of app contain http/ftp(the ftp protocol is not discuss today) server to upload file/video/music(like GPlayer). that's let me interest how to implement it on a app. according to my survey, if you want to do it on Android. you can use NanoHttp(implement by java.net.ServerSocket). on the iOS, you can use CocoaHTTPServer(implement by sys/socket). Btw those lib is not make sure fully support HTTP spec.

picture: the screenshot of upload page of GPlayer (support drop-n-upload feature!)


Reference: 
http://stackoverflow.com/questions/6804650/ios-devices-as-web-server

2013年2月5日 星期二

Pull Down to Refresh UI Design

   The action of pull down and refresh is normal feature in mobile app. but the official SDK isn't support it. so we find some  open source  :


i use the Android-PullToRefresh. because it support :
  • ListView
  • ExpandableListView
  • GridView
  • WebView
  • ScrollView
  • HorizontalScrollView
  • ViewPager

we just replace my GridView into PullToRefreshGridView, and setOnRefreshListener().

public static interface OnRefreshListener<V extends View>{
    public void onRefresh(final PullToRefreshBase<V> refreshView);
}

Remember, you should call onRefreshComplete() let the UI stop the animation.