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


Tuesday, 17 November 2015

Creating custom filter in angular JS

In this tutorial we are going to create custom filter that will truncate text and add ellipsis at the end of modified input.

Create new controller.js.

We want to add new module called filters.

angular.module('filters', [])

.filter('truncate', function(){
      return function(input, limit){
         if(input){
           return (input.length > limit) ? input.substr(0, limit)+'…' : input;
         }
      };
})


As you can see .filter is accepting name of filter as first parameter and callback function as second parameter. First we want to check if input is not empty as that will through some nasty error, then we check if input length is greater than specified limit and if so we will truncate string and add ellipsis.

Now we want to inject filter into our controller.

.controller('App', function($scope, $filter, jsonFilter){


});


Now create index.html file in the same folder as controller.js(you can put it later in different folder to keep structure consistent).

< html lang="en" ng-app="filters" ng-controller="App">





< /html>

In first line of code we included module ng-app="filters" and base controller ng-controller="App".
In next 2 lines we added google angular reference and controller.js scripts.
In 4th and 5th lines we have ng-model which is basically variable name that will bind value.
In 7th line we are using truncate filter. Using double {{ basically means accessing angular js components. truncatedText is input then filter is being applied and finally limit.

{{ input | filter : value}}

Final result

Tuesday, 27 October 2015

PBR Metal Material Package - Available now on Unity 3d store

Available now on Unity 3d store

20 metal PBR materials.
Each material will have 4 textures : Albedo, Heigh, Ambient Oclusion and Normal.


All textures are seamless varies in resolution between 1024 and 2048.

Also available Multi Texture Pack & my asset store for other cool stuff.


Metal galvanized


Airplane 

Base dented metal

Base clean metal with scratches and rust

Metal with peeled off paint 

Metal with peeled off paint 

Bronze cooper

Damaged bronze cooper