Wednesday, November 22, 2017

Checking internet connection and showing result in Snackbar in android studio

Using Snackbar you need to add android support design dependencies. Copy below dependencies and add to your build.gradle file.


compile 'com.android.support:design:25.3.1'

Give an id to your layout. as I am using RelativeLayout so I give it an id like 'mylayout'

android:id="@+id/mylayout"

In MainActivity.java file inside onCreate() method added your layout id like

Tuesday, October 17, 2017

Making a complete game asset in Blender

Some steps need to be followed to make a game asset in blender.
I am describing these steps as below



  1. Creating Model: Creating Model is the first step of making game assets. You should give concentrate which types of game asset are you want to make. Low poly or high poly. If you want to make low poly game assets then use simple mess and try to avoid sub-division. But try to give details of your model. 
  2. Mark Seam: This is the interesting part. Before uv unwrapping you should mark your seam. That means differ your model part to paint to add texture. It's easy to mark seam in blender.
    first select any edge and press CLT+E and then mark seam. After marking your seam the edge will be turn red. 
  3. UV Unwrapping: Another interesting part is UV Unwrapping. After marking your seam select face mode and select whole the model by pressing A. and Then press U and select Unwrap .
    It's done. and in UV image editing you can see your uv map. then select UV>export UV layout and save that as PNG format. 
  4. Painting or Texturing:  After getting the PNG Image you can open this image on any image editor and paint it with your favorite color and save it. This is your texture. you can use this texture in blender. 
  5. Exporting as FBX: Export the whole file as fbx format and use it any of the game engine. 

Monday, September 11, 2017

A short time II

A Short Time II ( একটি স্বল্প সময় ২)

a short animation video


প্রায় আড়াই মিনিটের এই ভিডিও দেখার জন্য আপনাদেরকে দুইটা পদ্ধতি দিচ্ছি।
একটি হচ্ছে youtube এবং আরেকটি হচ্ছে mediafire
দুইটি পদ্ধতির কারন হলো, অরিজিনাল ভিডিওটা এমনিতেই নিম্ন রেজিলিউশনের। যখন ভিডিওটা youtube এ আপলোড করলাম সেটি আরো নিম্ন মানের হয়ে গেলো।  তাই কেউ যদি অরিজিনাল ফাইলটা দেখতে চায়, তবে তা mediafire থেকে ডাউনলোড দিয়ে দেখতে পারবে। সাইজ একটু বেশি। মাত্র আড়াই মিনিটের ভিডিওর সাইজ ৭৫.৫ মেগাবাইট। youtube এ দেখতে গেলে অবশ্যই 360p তে দেখবেন। PC তে দেখলে ফুল স্ক্রিন মোডে না দেখাই ভালো হবে।
পরিশেষে অগ্রিম ধন্যবাদ ভিডিওটি দেখার জন্য আর যে কোন মন্তব্য, মতামত শিরোধার্য।
Youtube Link: https://youtu.be/xP3VDvLzTjY?t=9




Saturday, September 9, 2017

Monday, August 28, 2017

Android Swipe Refresh


This article is about android swipe refresh with simple code.
To add Swipe Refresh we need to add android SwipeRefreshLayout widget under activity_main.xml file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.sagorsarker.addingswiprefresh.MainActivity">
<!--refresh layout-->
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swiperefresh"
android:layout_width="368dp"
android:layout_height="495dp"
tools:layout_editor_absoluteY="8dp"
tools:layout_editor_absoluteX="8dp">
<!-- <ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" />-->
<TextView
android:id="@+id/text_edit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="My Text" />
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>


Inside SwipeRefreshLayout we need to put our refresh widget such as ListView,TextView


Saturday, August 26, 2017

Interstitial Ads for Android



Today We are going to learn how to set interstitial Ads for android.
Our Steps of work describe below.


Creating An Android Project

Open your android studio and under File>New>New Project and name your Interstitial Demo. Press next and keep as it is and press next select Empty Activity. Then press next and then finish.

Monday, August 21, 2017

গিট(About git) সম্পর্কে একটু (For Windows)





গিটঃ 
git হচ্ছে ভার্সন কন্ট্রোল সিস্টেম। মানে ধরুন আপনি জাভাতে কোন প্রজেক্ট করছেন। ধরলাম আপনি জাভাতে একটি ক্যালকুলেটর তৈরি করছেন। আপনি সময়ে সময়ে সেই প্রজেক্টে সম্পাদন করবেন মানে নতুন কোন ফিচার যোগ করবেন কিংবা আগের কোন  কোডের সাথে আরো কিছু যুক্ত করবেন। এই যে মোডিফাই বা সম্পাদনা করলেন সেটা করতে গেলে আপনার প্রধান প্রজেক্টের আগের ভার্সনে কি ছিলো সেটা থাকবে না। বলতে গেলে থাকবে। কিন্তু বার বার আপনাকে আপনার প্রজেক্টটি কপি করতে হবে। সেই কপি ভার্সনে ইডিট করতে হবে। এটা অনেক ঝামেলার ব্যাপার। এই ঝামেলা থেকে বাঁচার জন্যেই ভার্সন কন্ট্রোল সিস্টেম বা গিটের আবির্ভাব। গিটে শুধু commit করলেই আপনার পুরনো ভার্সন তো থাকবেই , সাথে যতবার সম্পাদনা করবেন তার সব ভার্সনই থাকবে। এবং কী কী পরিবর্তন করেছেন সেটাও আপনাকে বুঝিয়ে দিবে। তো চলুন শিখি গিট সম্পর্কে।

Wednesday, August 16, 2017

How I added AdMob in my android applications(Banner Ads)


Image Download From google image search


1. First of all I modify build.gradle file. There under dependencies I added a code of line.
 2. Then I added another code of line under res/values/string




Sunday, August 13, 2017

একটি স্বল্প সময়(A Short Time)




আমার ছোট্ট অ্যানিমেশন ভিডিও "A Short Time" এর সিকুয়াল "A Short Time II" কিছু দিনের মধ্যেই ইউটিউবে আপলোড করা হবে।
A Short Time (একটি স্বল্প সময়) I এর লিংকঃ https://www.youtube.com/watch?v=GTFutwjHidw

Tuesday, August 1, 2017

===গতকাল===


তোমরা বলো, চিন্তা কর না গো
সে তো অস্তিত্বহীন গতকাল
আমি বলি, গত হয়নি গো
তার সঙ্গে কাটিয়েছি পুরোটা সকাল
তোমরা বলো, যা গেছে গেছেই গতকাল
আমি বলি, যায়নি গো
হাতে হাত রেখে হেটেছি সারাটি বিকাল
তোমরা বলো, ফিরে আসে কি গত হয়েছে যা?
আমি বলি, ফিরে এসেছে গো
গতকালই তো আমার অনুপ্রেরণা।

Sunday, July 16, 2017

Saturday, July 15, 2017

জীবনিশক্তির অপচয়

জীবনিশক্তি পরিধান বস্ত্রে অপচয় করিতে করিতে ভোলা ভাবিলো উহার সদ্ব্যবহার করিতে হইবে। তদুপলক্ষে ঘনিষ্ঠ হৃষ্ট সুঠাম দেহবিশিষ্ট বন্ধুবরকে লইয়া উপস্থিত হইয়াছিলো সখির সম্মুখে। এতদ্বারা পরিলক্ষিত করিয়া পরিশেষে বন্ধুবরের মুঠোযন্ত্রে সখির প্রেমবার্তা পড়িয়া বুঝিয়া লইলো অপচয় করিবার তরেই জীবনিশক্তি সঞ্চিত হইতেছে। সখি তাহার বন্ধুবরকেই অধিক পছন্দ করিয়াছে, তাহাকে নহে।

Friday, June 30, 2017

My Calculator API in Java


I just created a Calculator API in java. Here I am describing step by step.
Creating a java project

Monday, June 12, 2017

How I am using my Symphony mobile as android emulator

I am using my symphony android mobile(model roar e80) as emulator. But first I couldn't figure out how to use that. But now I can. I have followed some simple steps to use it as an emulator.

Step 1: I connected my symphony phone as USB with my desktop PC and in USB option selected USB Virtual Device. (Most probably it has nothing to select USB Virtual Device, Hence it work in Media device file transfer)
Step 2: In settings option under about phone, I tapped it several time to activate developer option. and turn on it and turn on USB debugger.
Step 3: In eclipse, as run configurations under target selected "always prompt to pick device" and run my application.
NB: For android studio it's automatically detect the device if USB debugger is on.

And finally I can run my application on my symphony device.

Friday, May 12, 2017

মৌলিক উৎপাদক(Prime Factor)

মৌলিক উৎপাদক হলো কোন একটি সংখ্যাকে উৎপাদকে বিশ্লেষণ করলে বা ভাঙ্গতে থাকলে শেষে যে মৌলিক সংখ্যার তালিকা পাওয়া যায় সেগুলো।
যেমন ঃ ১২ সংখ্যাটির মৌলিক উৎপাদক হলোঃ ২, ২, ৩
এখানে, ১২ = ২*৬
               =  ২*২*৩
একইভাবে ৩১৫ সংখ্যাটির মৌলিক উৎপাদক হলোঃ ৩,৩,৫,৭
৩১৫ = ৩*১০৫
        = ৩*৩*৩৫
        = ৩*৩*৫*৭
এখন জাভাতে কীভাবে একটি নির্দিষ্ট সংখ্যার মৌলিক উৎপাদক বের করা যায় তা আলোচনা করবোঃ

Sunday, April 16, 2017

শুভ নববর্ষ (১৪২৪)

একতারা (Design Engine: blender)
click on the image to see full size
শুভ নববর্ষ। সবাইকে বাংলা ১৪২৪ বর্ষের শুভেচ্ছা। 

Sunday, April 9, 2017

Lantern(Blender Design)

click on the image to see full size

After Completing Blender Guru's Realistics Texturing Tutorial
The Final Render Image

Monday, April 3, 2017

মুভি রিভিউঃ হোটেল রুয়ান্ডা(Hotel Rwanda (2004))

হোটেল রুয়ান্ডা ব্রিটিশ, ইতালিয়ান,দক্ষিন আফ্রিকান ঐতিহাসিক সিনেমা যেটি ২০০৪ সালে মুক্তি পায়।সিনেমাটি মূলত রুয়ান্ডার একটি চারতারা হোটেলের ম্যানেজার পল রুসুসেবাগিনা (Paul Rusesabagina) এর বায়োগ্রাফি।
সিনেমাটিতে অভিনয় করেন ডন সিডল, সফি অকিনিডো সহ আরো অনেকে। 


সংক্ষিপ্তসারঃ  সিনেমাটির গল্প মূলত আফ্রিকার ছোট্ট দেশ রুয়ান্ডার গনহত্যা নিয়ে। ১৯৯৪ সাল। ছোট্ট দেশ রুয়ান্ডার একটি হোটেল নাম মি কলিন্সের ম্যানেজার পল রুসুসেবাগিনা। বিভিন্ন বিদেশী আর দেশীও পর্যটকের দেখাশুনা করতে ব্যস্ত হোটেল ম্যানেজার। 

Thursday, March 16, 2017

Building Vertex Group Particle System in Blender

First of all we need to take a plane and sub-divide it in several time.

Tuesday, February 14, 2017

ভালোবাসা



ইন্টার্সটেলার নামক একটা সায়েন্স ফিকশন মুভিতে দেখেছিলাম ড. ব্রান্ড(Anne Hathaway) যিনি একজন নাসার বিজ্ঞানী তিনি বলছেন,

Monday, February 13, 2017

Depression and Aim

I have already spend my four years in learning computer. Still I need two years to complete my graduation. In this four years knowledge , I have a big question.

Monday, January 23, 2017

মুভি রিভিউঃ জুটোপিয়া(Zootopia(2016))

Zootopia(image from Wikipedia)

জুটোপিয়া(Zootopia) আমার দেখা অ্যানিমেশন মুভি গুলোর মধ্যে সেরা মুভি। শুরুতেই সেরা উপাধি দিয়ে আমি মোটেও ভুল করিনি। একটি মুভি বা সিনেমা সেরা হতে গেলে(আমার মত সাধারণ দর্শকের চোখে) যে সব গুণাবলি  থাকা দরকার তার সব গুলোই এই সিনেমাতে আছে।
শুরুতেই বলে নেই জুটোপিয়া হলো থ্রিডি কম্পিউটেড অ্যানিমেটেড সিনেমা।মানে হলো এটি কোন জীবন্ত মানুষ দিয়ে অভিনয় করানো হয়নি, বরং পুরো সিনেমাটিই হাতের কারসাজি। যাবতীয় চরিত্র, পরিবেশ, আলো ইত্যাদি সব কম্পিউটার গ্রাফিক ইঞ্জিনিয়ারিং এর ফল। সিনেমাটি তৈরি করেছে অ্যানিমেশন জগতের জায়ান্ট প্রতিষ্টান Walt Disney Pictures ।

Tuesday, January 3, 2017

অ্যান্ড্রয়েড এর জন্য একটি সিম্পল ব্রাউজার তৈরি করা


অ্যান্ড্রয়েড এর ওয়েব ভিউ ফিচারের একটি সহজ টিউটরিয়াল হলো কিভাবে একটি সিম্পল ওয়েব ব্রাউজার তৈরি করবেন।
সেটি করার জন্য প্রথমেই আপনাকে একটি নতুন প্রজেক্ট নিতে হবে।
ধরি , আমাদের সেই প্রজেক্টটির নাম Simple Browser

Recent Post