Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GSoC blog posts for remaining weeks #496

Merged
merged 4 commits into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions docs/source/posts/2021/2021-08-02-week-9-antriksh.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Week #9: More Layouts!
======================

.. post:: August 02 2021
:author: Antriksh Misri
:tags: google
:category: gsoc

What did I do this week?
------------------------
Below are the tasks that I worked on:

* `Added Horizontal/Vertical Layout to the layout module <https://github.com/fury-gl/fury/pull/480>`_ : These PRs add support for Horizontal/Vertical layouts. These layouts allow the actors to be placed in a horizontal/vertical stack.

.. image:: https://user-images.githubusercontent.com/54466356/127688192-8412b604-d6c7-4da9-87c4-dfae044a136e.png
:width: 200
:height: 200

.. image:: https://user-images.githubusercontent.com/54466356/127620054-7e14f86e-1579-46ac-b4a6-ac98c109094a.png
:width: 200
:height: 200

* `Finalizing Card2D UI element <https://github.com/fury-gl/fury/pull/398>`_ : As panel border, wrap overflow PRs were merged this week I updated the Card2D UI to take advantage of these features.
* `Added GSoC blog posts <https://github.com/fury-gl/fury/pull/477>`_ : Added GSoC blog posts in .rst format for the FURY's blog website. Also reviewed the blog posts of other members.
* `Added support for dragging by label text/icon in Tree2D UI <https://github.com/fury-gl/fury/pull/460>`_ : Added support for dragging TreeNode2D by the label text/icon. This will help making the Tree2D as well as TreeNode2D UIs more mobile.

Did I get stuck anywhere?
-------------------------
For now I am not stuck anywhere but I have yet to start my work on freetype this could pose some trouble.

What is coming up next week?
----------------------------
Next week I will finish the remaining UI elements which includes Accordion2D, SpinBox2D.

**See you guys next week!**
36 changes: 36 additions & 0 deletions docs/source/posts/2021/2021-08-09-week-10-antriksh.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Week#10: Accordion UI, Support for sprite sheet animations
======================

.. post:: August 09 2021
:author: Antriksh Misri
:tags: google
:category: gsoc

What did I do this week?
------------------------
Below are the tasks that I worked on:

* `Added Accordion2D to UI sub-module <https://github.com/fury-gl/fury/pull/487>`_ : This PR adds the Accordion UI to the UI sub-module. This UI inherits from the Tree2D UI and can only be merged once the Tree2D UI is in. Here's a screenshot for reference:

.. image:: https://i.imgur.com/klI4Tb5.png
:width: 200
:height: 200

* `Adding X, Y, Z Layouts <https://github.com/fury-gl/fury/pull/486>`_ : It was pointed out in last week's meeting that in 3D space horizontal/vertical means nothing. Instead X, Y, Z are used, so, these three layouts were added on top of horizontal/vertical layouts. They also have functionality of changing the direction i.e. reverse the stacking order.
* `Added support of sprite sheet animation in Card2D <https://github.com/fury-gl/fury/pull/398>`_ : The image in Card2D was static in nature and wasn't very interesting. So, to make things a bit interesting support for animated images were added. These animations are played from a sprite sheet or a texture atlas. A buffer of processed sprite chunks is maintained and with the help of a timer callback the image in the card is updated after a certain delay which is dependent of the frame rate. Below is the demonstration:

.. image:: https://i.imgur.com/DliSpf0.gif
:width: 200
:height: 200

* **Researching more about Freetype/Freetype-GL**: Apart from coding stuff, i did some more research on custom font using freetype and freetype-gl. I found some examples that used the python bindings of the c++ library and displayed custom fonts that were transformable i.e. can be rotated by some angle. Hopefully I can create a working example by this weeks meeting.

Did I get stuck anywhere?
-------------------------
No, I did not get stuck anywhere.

What is coming up next week?
----------------------------
Next week I will finish up my remaining work. Which includes addressing all PR reviews and adding some more features.

**See you guys next week!**
26 changes: 26 additions & 0 deletions docs/source/posts/2021/2021-08-16-week-11-antriksh.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Week #11: Finalizing open Pull Requests
=======================================

.. post:: August 16 2021
:author: Antriksh Misri
:tags: google
:category: gsoc

What did I do this week?
------------------------
Below are the tasks that I worked on:

* `Created PR for sprite sheet animation <https://github.com/fury-gl/fury/pull/491>`_ : This PR adds support for playing animations from a sprite sheet. This feature will be used in Card2D to create a tutorial in which the card will show the animation in the image box. Previously, the utility functions for this were added directly inside the tutorial but now they are refactored to go in their respective modules.
* `Finalized the x, y, z layouts <https://github.com/fury-gl/fury/pull/486>`_ : The PR that adds these layouts needed some updates for it to work as intended. These changes were added and this PR is ready to go.
* `Resolved all conflicts in the GridLayout PR <https://github.com/fury-gl/fury/pull/443>`_ : As the Horizontal and Vertical layouts were merged this week the GridLayout PR had got some conflicts. These conflicts were resolved and the PR is almost ready.
* **Continuing the work on custom font rendering** : In the last meeting, a few points were brought up. Firstly, to position each glyph to their respective location in the atlas a seperate module is used which is freetype-gl. The python bindings for this module are not available which means either we have to write the bindings ourselves or the freetype team will be emailed about this and they will add bindings for that. On the other hand, I looked how latex is rendered in matplotlib. `This <https://github.com/matplotlib/matplotlib/blob/3a4fdea8d23207d67431973fe5df1811605c4132/lib/matplotlib/text.py#L106>`_ is the Text class that is used to represent the string that is to be drawn and `This <https://github.com/matplotlib/matplotlib/blob/3a4fdea8d23207d67431973fe5df1811605c4132/lib/matplotlib/artist.py#L94>`_ is the class that it inherits from. Everything is handled internally in matplotlib, to draw the rasterized text `this <https://github.com/matplotlib/matplotlib/blob/3a4fdea8d23207d67431973fe5df1811605c4132/lib/matplotlib/text.py#L672>`_ function is used. The text can be rendered in two ways, the first one is by using the default renderer and the second way is by using PathEffectRenderer that is used to add effects like outlines, anti-aliasing etc. It is a very rigid way of rendering text and is designed to be used internally.

Did I get stuck anywhere?
-------------------------
No, I did not get stuck anywhere.

What is coming up next week?
----------------------------
Hopefully everything is resolved by the end of this week and next week I will hopefully submit my final code in a gist format.

**See you guys next week!**
Loading