Thursday, 4 August 2016

Piano Room PBR - Unity 3d asset

PBR Piano Room package was released to Unity3d store.

Piano is the main of focus of this package. It is divided into few submeshes:
Piano Bottom Body : 702 tris
Keys : 2724 tris in total (separate keys - 7 octaves) 51 white keys, 36 black
Piano Note Reader : 154 tris
Piano Top : 872 tris
Piano Interior Details : 312 tris
Piano Wheels and Details : 4860 tris
Piano Name : 252 tris

Each submesh material contains 4 textures(albedo, normal, ambient oclusion, metallic).
Normal maps are baked from very high poly(over 600k tris).

Room interior scene included:
Wall Lamp
Wall Details
Wooden Floor

Additional features:
Set time of a day dynamically
Set glowing background for exterior

Future planned release : 

- Map all keys to Midi output
- Play songs from tab notes
- Enable VR

Get the package here.

Thursday, 28 July 2016

Getting enum values to list of string List<string> C#

So you created an enum and you want to extract all the values to List<string>?

Example enum:

public enum FilterTypeLookup {
            Textbox = 1,
            Standard_Dropdown = 2,
            Extended_Dropdown = 3,
            Normal_Dropdown = 4,
            Link = 5,
         Label = 6,
         Checkbox = 7,
         Dropdown_with_Textbox_and_Button = 8,
            Textbox_with_text_before_and_text_after = 9,
            Radio_Button = 10,
            Date_Picker = 11,
         Month = 12,
            Year = 13,
            Customer_Dropdown = 14,
            AutoComplete = 15

Probably the easiest way to do it is to use GetNames method on Enum.

return Enum.GetNames(typeof(FilterTypeLookup )).ToList();

If we want to make it more generic we can write helper method.

 public static List<string> GetNamesForEnums<T>()
            //Type type = t.GetType();
            return Enum.GetNames(typeof(T)).ToList();

Wednesday, 20 July 2016

PBR Wood Textures Pack

Recently I released PBR Wood texture for Unity 3d store. Each material will contain at least 4 textures(albedo, normal, ambient oclusion, height). Some material will also contain gloss and metallic texture. All textures are seamless and at least 1024x1024 px.

You can grab them at Unity store

For last 2 months it is top paid wood texture pack.

Monday, 18 July 2016

Adding multiple appSettings to webConfig file and getting value in ASP.MET MVC

Let's say we want to add few app settings file to a webconfig file, so if we have to change value of the key on the server, IIS does not have to recompile the whole application leading to better client/customer experience.

1. In webconfig add new section.


<section name="DatabaseConfig" type="System.Configuration.NameValueFileSectionHandler, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">

2. Create new config file in solution, let's call it CodeBasedOnReferer.config.
3. Add new key

    <add key="" value="Google_123"></add>

4. To obtain the code in aplication in controller:

NameValueCollection settings = (NameValueCollection) ConfigurationManager.GetSection("DatabaseConfig");
string code = settings (Request.UrlReferrer.Authority);

5. You can test your application using for instance fiddler. To create request open fiddler. Just in case you do not have it :

6. Your code should be Google_123.

Wednesday, 11 May 2016

Reading content from dll - c# or vb

So you ever wanted to read code from dll regardless if it was written in c# or vb?

There is very good free tool on the market provided by JetBrains.

1. After installation open application.
2. Shortcut ctrl + O, or click on first left icon under Assembly Explorer and choose dll.

3. Double click on class to see the code.

Wednesday, 17 February 2016

Solar System version 3.0 update - [Released]

I decided to improve one of my top assets in Unity 3d store. Added new UI, planets info, atmosphere shader, 5 types of Sphere meshes (super low, low, medium, high poly, super high), realistic day/night transition for planet Earth. Info for planet is being read from txt file which can be very easily modified.

Current version of Solar System :

Wednesday, 3 February 2016

Solar System Unity 3d Asset Used In Asteroid Challenge Game Exclusive For Nintendo Wii

Solar System project that is available has been used to create Nintendo Wii exclusive game - Asteroid Challenge -

I am really glad too see that my project have been used in successful commercial environment.

I am working currently on new release of Solar System that will include new shader that will give realistic atmosphere for planets, better UI, 5 different Meshes(Super Low(400 tris), Low (1000 tris), Medium(5000 tris), High(20000 tris) and Super High(120000 tris)) and mobile shader for Sun.

Saturday, 16 January 2016

Buddha Statues Collection - Damaged, Silver and Gold

Recently I released my latest work on Unity 3d asset store.

Buddha Unity 3d

It contain 1 model with 3 different materials(damaged stone, gold, silver).
Each texture is 4096x4096 and materials are using PBR metallic setup so model will contain Albedo, Normal, Oclussion and Metallic textures.