Tuesday 31 December 2019

Unity 3D - Project Settings >> Player Settings >> Other Settings >> Auto Graphics API >> Vulkan Support


Use case - Using Vuforia within Unity-2019 ,  Packages , to create a basic "hello world" AR app .

Followed path - Unity 3D - Project Settings >> Player Settings >> XR Settings >> ...



get to see Error / Warning - "XR is currently not supported when using the Vulkan Graphics API . Please go to other settings and remove Vulkan "

As seen below choosing - Auto Graphics API - also gives an error . 





thus have deleted Vulkan from the Graphics API - and also changed the Color Space to GAMMA from LINEAR






Add the AR CAMERA - delete the MAIN CAMERA



Within INSPECTOR for the AR CAMERA - OPEN VUFORIA ENGINE CONFIGURATION .

Dont need any DATABASES within the AR CAMERA settings - None are Checked by default - So OK .

Again within the - OPEN VUFORIA ENGINE CONFIGURATION >> DEVICE TRACKER >> Track device Pose - Check this option.



Sunday 29 December 2019

Unity 3D - Audio Listener on the Main Camera / CCTV Camera

Within the standard assets which were downloaded and added to current project from the Unity Assets store , there is a CAR scene with three inbuilt cameras .

The Audio Listener on the Main Camera / CCTV Camera , is the only Audio Listener in this scene . Which is OK as Unity instructions provide for only one Audio Listener for a scene .

Am still wondering - how this Audio Listener comes into play , when the cameras being used during play mode are the other two and Not the - CCTV Camera , which bears the TAG - Main Camera.






Unity 3D Editor - Git Status - What all it shows and where in which Directory are my files ?

Learning Unity and also moved back to using Windows after @5 Years .... so yes things seem to be new ;)


Unity 3D Editor - Git Status - What all it shows and where in which Directory are my files ?



The New Scene when created gets saved - within the Project DIR at the actual path as seen below -

C:\Win_UnityProjs\SueBlackman_book_1\Assets



Which is OK - but as per the discussion here - seems need to be careful about downloading assets from the Unity store and not able to keep them off the SSD which has the Win10 OS , or also to copy them within the Current Project DIR - manually .

So best option for now seems to get assets from the asset store and Import them within Current Project and not just Download .

Source -- https://forum.unity.com/threads/asset-store-download-folder.83620/

Tuesday 17 December 2019

Unity Editor - Align Animation States , within the Animator

Notes to self - Unity Editor .

In case we are not able to see the - Animation States , within the Animator Window. If these are hidden and cant really find the - Horizontal Scroll Bar. Do a CTL + A - this will center align the Animation States


Saturday 14 December 2019

Apport Ubuntu - Crash Reports and Debugging with APPORT

The Apport crash Logs show nothing - my Ubuntu whose config is as seen below crashed every time i tried to Build the Unity 2D game .

The apport created - crash log files , at the location - /var/crash/ - are empty.


-rw-r----- 1 syslog            adm           383558885 Dec 15 09:53 syslog
dhankar@dhankar-VPCEB44EN:~$ ls -ltr /var/crash/
total 988
-rw-r----- 1 dhankar whoopsie 945683 Dec 13 15:32 _usr_bin_evince-thumbnailer.1000.crash
-rw-r----- 1 dhankar whoopsie  62319 Dec 14 23:26 _usr_share_apport_apport-gtk.1000.crash
dhankar@dhankar-VPCEB44EN:~$ sudo nano _usr_share_apport_apport-gtk.1000.crash
[sudo] password for dhankar:
dhankar@dhankar-VPCEB44EN:~$ sudo gedit _usr_share_apport_apport-gtk.1000.crash

** (gedit:5984): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported
dhankar@dhankar-VPCEB44EN:~$ sudo gedit _usr_bin_evince-thumbnailer.1000.crash

** (gedit:6000): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported
dhankar@dhankar-VPCEB44EN:~$ sudo nano _usr_bin_evince-thumbnailer.1000.crash
dhankar@dhankar-VPCEB44EN:~$



As realized now after reading the APPORT manual page - Apport is not enabled as a default its disabled , even though its installed - cool . So for now enabling Apport and hoping it provides me further intelligence on the next Unity Build Crash . Crash it will as its happened thrice already - seems i dont have enough system RAM and / or GPU / CPU memory available to create a build of a very basic Unity 2D game with just 1Scene/ 1 Level.

Seems my - apport - is enabled ?

$ cd /etc/default/
$ ls -ltr | grep apport
-rw-r--r-- 1 root root  149 Mar 31  2016 apport

# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=1

If its enabled then why nothing logged within the file - _usr_share_apport_apport-gtk.1000.crash  ??

Source  = https://wiki.ubuntu.com/Apport

Monday 2 December 2019