A-Frame experience in a nutshell

Lately, I have been developing with A-Frame, a web framework for VR development on web. You can checkout my blogpost on VR, WebVR & A-Frame to read basics. I played with different components and capabilities of A-Frame in my VR-Ram repository which is deployed at gh-pages. It was really easy to get started with A-Frame. This repository is demonstrating different capabilities of A-Frame – The home page of the repository shows curved images and gazing on each of them takes to different section of the app to demonstrate that part. One of the apps in the repository called Lyrics VR, plays a song in background & lyrics of the song are displayed floating around. I also created an app for virtual tour of an office, which is hosted on this github page. This was very interesting to make these apps more interactive by providing many input/feedback options to user (including gazing and clicking method).

screen-shot-2016-09-30-at-3-59-03-am

Listing here few of the Concepts / APIs used for the demo:

  • <a-scene>: The scene is the global root object, and all entities are contained within the scene.
  • <a-sky>: The sky primitive adds a background to a scene or display a 360-degree photo. It is an entity that prescribes a large sphere with the material mapped to the inside. Checkout the source code to see how panorama is added as background image of the panorama demo page & simple colored is added as sky for the vr-ram demo page.
  • camera component – to define perspective the user views the scene
  • looks-control component – to make the scene rotate when mouse is moved (when you have it mounted on cardboard) or when user clicks & drags the screen
  • wasd-controls component – to enable W-A-S-D keys to move in-out-left-right of/on the scene
  • <a-animation>: Defined as child to and entity to animate. The API is roughly based after the Web Animationsspecification. Following piece of code is used to rotate the Rubiks cube from ‘0 0 0’ xyz position to ‘360 180 360’ position as shown on the demo page.
    <a-animation easing=”linear” attribute=”rotation” fill=”forwards” to=”360 180 360″ dur=”3000″ repeat=”indefinite”></a-animation>
  • AFRAME.registerComponent(): To register custom component which can be used with an entity. E.g. I have added auto-enter-vr custom component to vr-ram demo’s apps. It is added to a-scene so that whenever we load this page it automatically enters in the VR mode (user doesn’t have to click on VR mode icon in bottom right corner of the scene on mobile phone for VR mode). Checkout the source code to see the definition & use of auto-enter-vr custom component.

Here and here you can access source code of my demo repositories, refer to Arame Docs to learn more about the API & Concepts used here. Let me know if you have any other questions.

post-splash

My observations:

My interaction with the community over Slack & StackOverflow was very supportive. From my experience & exploration, following are my observations about A-Frame:

What is making A-Frame very popular?

  • It is very simple to get started with A-Frame. — All boilerplate involved with setting up WebGL, three.js, and WebVR is reduced to one line of HTML: `<a-scene>`.
  • It is very easy to use with existing languages and web frameworks: – HTML, JavaScript, DOM APIs, and it integrate easily with existing frameworks and libraries.
  • It can be used alongside 3D tools – Create models and scenes in tools like MagicaVoxel, Blender, Maya etc and export them to A-Frame.
  • With its declarative entity-component-system framework, it is also very powerful.

What is the community like?

  • There is a very active GitHub community: 60+ contributors, 3000+ stargazers
  • There are active discussions on Slack: 1300 members
  • There is a lot of active development: hundreds of projects featured on awesome-aframe (a GitHub repository) and A Week of A-Frame (a weekly roundup on the A-Frame blog)
  • The community is also active on StackOverflow

Few cool sites built using AFrame:

Contributing to A-Frame:

Being an open source project, A-Frame welcomes volunteers to join. If you are interested, check out the Contributing Guide to jump in!

Advertisements

A-Frame for VR development on Web

14445226_1126693510700233_3449558365570537616_o-copy

Virtual Reality:

Virtual reality is the technology that can simulate a user’s physical presence in a realistic virtual environment. Virtual reality has been creating a lot of buzz for quite some time now. Oculus Rift & Google Cardboard were the early platforms whose launches made developers & consumers realize VR’s practical potential. VR is being considered as next platform after we moved from PC to Smartphone, and this will change how we work, play and community digitally.

Native VR experiences available today have a several downsides such as needing to go through gatekeepers at app stores for distribution, users having to do large downloads and installs, and consisting of proprietary and closed cultures. There are also a lot of cross-compatibility issues because of the fragmented VR ecosystem today.

VR is leading towards a drastic makeover of the computer industry, and the Web has already proven itself as the most open platform, it will be exciting to see how VR will change the web also. During this era of reformation, the Web is not going to remain an exclusively 2D environment. In fact, VR has already arrived to the browser. It is incredibly fun to play and work with! Mozilla & Google have launched https://mozvr.com/ and https://vr.chromeexperiments.com/ websites with some experimental VR experience environments/apps.

Screen Shot 2016-09-30 at 3.59.03 AM.png

WebVR & A-Frame:

WebVR is an open virtual reality platform with all of the advantages of the Web: – open, connected, and instant. More technically, WebVR is set of standard browser APIs that enable direct WebGL rendering to headsets and access to various VR sensors for pose (i.e., position and rotation) and input.

Though WebVR has made it possible to create VR content on the web, but it’s too difficult to create WebVR experiences. With three.js, the most popular 3D library, it takes over 100 lines of boilerplate per project; which is an obstacle if we want to do a small prototype or experiments. The boilerplate also needs to be updated with new versions of WebVR, three.js & needs to handle cross-browser & cross-platform compatibility related issues. What if we could encapsulate all that boilerplate to just one line of HTML and quickly go from idea to prototype without hassle!  Let me introduce you A-Frame, a vehicle to kick start WebVR development.

A-Frame is open-source framework, launched in December 2015 by Mozilla, for easily creating 3D and VR experiences on the Web. A-Frame puts VR content creation into our hands by allowing us to create scenes with declarative HTML that work across desktop, smartphones, Oculus Rift, and the HTC Vive. It takes just one line of code ‘<a-scene></a-scene>’, instead of heavy boilerplate code, to get started; which is very motivating to experiment and prototype. It also saves a lot of boilerplate for creating objects, and similarly does many other magics. We can manipulate scenes with vanilla JavaScript just as we would with ordinary HTML elements (e.g. by inspecting elements on browse), and we can continue using our favorite JavaScript libraries and frameworks (e.g. d3, React). Here is sample code for Hello World program –

Hello World code:

Output:

screenshot_2015-12-20-14-11-23

You can checkout blogpost on my experience about getting started with A-Frame to see why I loved working with A-Frame. Few more related links –

 

Contributing to A-Frame:

Being an open source project, A-Frame has an awesome community of volunteers. If you are interested, check out the Contributing Guide, join WebVR-India Telegram group or A-Frame Slack channel. Looking forward to see you there, #HappyContributing 🙂

aframe

Kalavantin Durg Trek

Monsoon is what trekkers always wait for & last weekend we chose Kalavantin Durg trek to explore. The Durg is located near Mumbai on western ghats at elevation of 2700 ft. This trek is also known as one of most dangerous treks because the for summitting the peak mostly we have to follow steps which are treacherous. This was quite dangerous to choose peak monsoon time for this trek because its very slippery over there at this time & its raining most of the time. But we found these points which made us more interested in this trek at this time, and this was really super adventurous. Here are few aerial view pictures of the durg taken from internet.

We started our journey by train from Hyderabad to Karjat, then took bus for Shedung & then took auto to reach Kalavantin base. Then 2-3 hours hiking to the base village. We did lunch near beautiful water stream, round of introduction& lot of fun on the way to village.

Reached base village by evening and had dinner there. We again had a lot of fun (including an interesting ghost story telling session) before sleeping. Then we woke up at 5 & started trek to Kalavantin Pinnacle at 6. It took us around 1 hour to reach the top. It was very pleasant there (unfortunately because of lots of clouds we were not able to see other forts from this peak)

Descending the hill was very tricky and challenging. We reached base village by 9, had breakfast & reached to base (main road) by 11 and caught our train back to Hyderabad at 3. This was a lot of fun & we got many new friends from the trek (thanks HTC for organizing this trek).

IMG_1321.jpg

Filing ITR

Instructions for filing ITR through official website (for simple Form 16)

  1. Register and login to website https://incometaxindiaefiling.gov.in/.
  2. Under ‘My Account’ menu select ‘View Form 26AS (Tax Credit)’ to check Form 26AS from which Tax details will be prefilled into your ITR form. Note, you will be redirected to TDS-CPC website to view the 26AS form.
  3. Click on ‘Filing of Income Tax Return‘ from dashboard or choose ‘Income Tax Return’ from ‘e-File’ menu.
    • Select Assessment Year as next one for which ITR is being filed
    • ITR Form Name will be ‘ITR-1’ for Salaried individuals
    • Select submission mode as ‘Prepare and Submit online ITR’
    • You will see a panel where you can opt for few fields in your ITR form to be pre-filled from sources like Latest ITR, Form 26AS etc (Preferably select all checkboxes here).
    • Select AADHAAR OTP or ‘Already Generated EVC’ as option to verify the ITR.
  4. ITR Form Tab 6: 80G
    • If you have made any donations, mention relevant information in 80G tab. It will auto-populate the amount in deductions section on Tab 3.
  5. ITR Form Tab 5: Tax Paid And Verification
    • Check if tax details are already populated as per your form 16
    • Fill Exempt income details from Form 16
    • Enter bank accounts details
  6. ITR Form Tab 4: Tax Details
    • Check if tax details are already populated as per your form 16
  7. ITR Form Tab 3: Computation of Income and Tax
    • B1 (Salary/Pension) columns: All 6 sub-columns to be filled from Form 16.
    • Part C – Deductions to be mentioned here from Form 16 (Deductions under Chapter VIA)
    • If all of above is done then value mentioned in column Total income (C2) should match with Form16, and columns D12 & D13 (Amount payable & Refund) should be zero if you would have already paid exact tax amount.
    • Income from other sources: You can mention interest earned on saving accounts. SBI credits interest on savings account on 25th of every quarter end and Citibank credits interest at the last day of every quarter. You can request deduction on above income under 80 TTA upto 10,000 Rs (basically if your savings account earning is less than 10,000 Rs then you need not to pay any tax on this)
  8. ITR Form Tab 1 & 2: Instruction & Part A General Information
    • Just go through these tabs and make sure all fields are filled correctly.
  9. Before submitting the form finally you can check Tab 5. If you see some amount being showin in D14 (Refund), you will receive this in your bank account once your ITR is processed (which usually takes few months). If you see an amount in D13 (Amount Payable), you can pay the tax by clicking ‘e-Pay Tax’ & note down the challan details from the payment page which are to be filled in Tab 4 (section – Details of Advance tax and self-assessment tax), after filling this details you will see zero in D13.

* Post updated as per latest ITR form introduced in 2018.
* This post will help only in case of simple Form 16.

CMR Marketplace Day

Mozilla Hyderabad conducted Marketplace Day event at CMR-IT College. This event was planned long back and as we approached near the event date, Mozlando got us some news about Firefox OS. With this news of Firefox OS being pivoted to Connected Devices, we tweaked the event to focus on IoT instead of Marketplace.

In the event we (myself and Dyvik Chenna) covered following topics –

The event was a great fun – we played games, learned new things and interacted with many amazing people there. I would like to thank each one of the participants to help us make this amazing. Feel free to get in touch with us for any queries. Special thanks to Sistla Madhukar and Raghavendra Abhilash to take this initiative and organise this event, you and your club is really doing great. Many congratulations to your club for winning FSA Club of the month award, you guys really deserve this.

IMG_1854