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:
Flower
Wall Lamp
Bench
Windows
Door
Coving
Skirting
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.

<configuration>
<configsections>

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


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

<DatabaseConfig>
    <add key="google.com" value="Google_123"></add>
</DatabaseConfig>

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 : http://www.telerik.com/fiddler


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.

https://www.jetbrains.com/decompiler/

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 : http://u3d.as/70w











Wednesday, 3 February 2016

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



Solar System project that is available http://u3d.as/70w has been used to create Nintendo Wii exclusive game - Asteroid Challenge - http://nintendonuggets.com/asteroid-challenge-coming-exclusively-to-wii-u-eshop/

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.







Wednesday, 30 December 2015

Mars Lander 3d model in Unity 5

Mars Lander Phoenix available now on unity 3d store.
Lander contain 4 separate animations for Antenna, Receiver, Arm Controller and Solar Panels.

Most of the materials have 4 textures - Albedo, Normal, Occlusion and Metallic (4096px x 4096px) .
Normal maps have been baked from very high poly model to reduce polygons.
Lander Body base got 4347 tris, Solar Panels 772 tris.

I focused on attention to details as I tried to recreate Mars Lander Phoenix that was used in one of Nasa's Mars missions - https://www.nasa.gov/mission_pages/phoenix/main/index.html


















Wednesday, 18 November 2015

Dogmeat from Fallout 4 in Unity 5 Engine

I am currently working on companion follower asset and decided to use Dogmeat from Fallout 4 for concept demo.

Few screenshots

Dogmeat Fallout 4 in Unity engine