<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pranjal Lokhande on Medium]]></title>
        <description><![CDATA[Stories by Pranjal Lokhande on Medium]]></description>
        <link>https://medium.com/@pranjallokhande?source=rss-14ad2b2fa8c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sBOpXV7WZNqYMAJOg7vblg.png</url>
            <title>Stories by Pranjal Lokhande on Medium</title>
            <link>https://medium.com/@pranjallokhande?source=rss-14ad2b2fa8c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:44:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pranjallokhande/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating a Pokémon Unite Build Tracker using ASP.NET Core Web App (Model-View-Controller): Step 4]]></title>
            <link>https://pranjallokhande.medium.com/creating-a-pok%C3%A9mon-unite-build-tracker-using-asp-net-core-web-app-model-view-controller-step-4-b842f900bd7c?source=rss-14ad2b2fa8c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b842f900bd7c</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[model-view-controller]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[Pranjal Lokhande]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 09:21:40 GMT</pubDate>
            <atom:updated>2024-10-21T09:21:40.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step 4 — ViewModels</h3><p><em>This is more of a devlog than a guide. I created a very basic MVP to calculate the stats after items are attached to a pokemon.</em></p><p>In the fourth step of developing the Pokémon Unite Build Tracker, I focused on implementing ViewModels and enhancing the application to support relational CRUD operations. This step builds upon the previous work, further improving the user interface and data presentation.</p><h3>ViewModels Implementation</h3><p>ViewModels serve as a bridge between the data models and the views, allowing for a more tailored representation of data for the UI. I created three main ViewModels:</p><h3>PokemonViewModel</h3><pre>public class PokemonViewModel<br>{<br>    public int PokemonId { get; set; }<br>    <br>    [Display(Name = &quot;Image URL&quot;)]<br>    public string PokemonImgLink { get; set; }<br>    [Required]<br>    [Display(Name = &quot;Name&quot;)]<br>    public string PokemonName { get; set; }<br>    [Display(Name = &quot;Role&quot;)]<br>    public string PokemonRole { get; set; }<br>    [Display(Name = &quot;Style&quot;)]<br>    public string PokemonStyle { get; set; }<br>}</pre><h3>HeldItemViewModel and BattleItemViewModel</h3><p>Similar structures were created for HeldItemViewModel and BattleItemViewModel, each containing properties relevant to their respective entities.</p><h3>Enhancing Controllers for Relational CRUD</h3><p>The PokemonController was updated to handle more complex operations, including:</p><ol><li>Creating and editing Pokémon with associated items</li><li>Displaying available Held Items and Battle Items</li><li>Implementing a Build creation feature</li></ol><h3>Build Creation</h3><p>A new action method CreateBuild was added to the PokemonController:</p><pre>[HttpGet]<br>public async Task&lt;IActionResult&gt; CreateBuild()<br>{<br>    var model = new BuildViewModel<br>    {<br>        AvailablePokemons = await GetPokemons(),<br>        AvailableHeldItems = await GetHeldItems(),<br>        AvailableBattleItems = await GetBattleItems()<br>    };<br>    return View(model);<br>}<br>[HttpPost]<br>public async Task&lt;IActionResult&gt; CreateBuild(BuildViewModel model)<br>{<br>    // Validation and stat calculation logic<br>    CalculateTotalStats(model);<br>    return View(model);<br>}</pre><p>This method allows users to create a build by selecting a Pokémon, Held Items, and a Battle Item, then calculates the total stats for the build.</p><h3>Handling Relationships</h3><p>The controller now handles the relationships between Pokémon, Held Items, and Battle Items:</p><pre>private async Task&lt;List&lt;HeldItemViewModel&gt;&gt; GetHeldItems()<br>{<br>    var heldItems = await _httpClient.GetFromJsonAsync&lt;List&lt;HeldItemViewModel&gt;&gt;(&quot;api/helditemapi/listhelditems&quot;);<br>    return heldItems ?? new List&lt;HeldItemViewModel&gt;();<br>}<br>private async Task&lt;List&lt;BattleItemViewModel&gt;&gt; GetBattleItems()<br>{<br>    var battleItems = await _httpClient.GetFromJsonAsync&lt;List&lt;BattleItemViewModel&gt;&gt;(&quot;api/battleitemapi/listbattleitems&quot;);<br>    return battleItems ?? new List&lt;BattleItemViewModel&gt;();<br>}</pre><p>These methods fetch related items for display in the UI and for use in build creation.</p><h3>Error Handling and Validation</h3><p>The controller includes error handling and validation to ensure data integrity:</p><pre>if (ModelState.IsValid)<br>{<br>    try<br>    {<br>        // API call logic<br>    }<br>    catch (HttpRequestException ex)<br>    {<br>        ModelState.AddModelError(string.Empty, $&quot;Network Error: {ex.Message}&quot;);<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*QMW07OPUZH4pIuzzjAQDPA.png" /><figcaption>Base API Controller</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b842f900bd7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Pokémon Unite Build Tracker using ASP.NET Core Web App (Model-View-Controller): Step 3]]></title>
            <link>https://pranjallokhande.medium.com/creating-a-pok%C3%A9mon-unite-build-tracker-using-asp-net-core-web-app-model-view-controller-step-3-3dc462c11548?source=rss-14ad2b2fa8c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dc462c11548</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[model-view-controller]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <dc:creator><![CDATA[Pranjal Lokhande]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 08:15:42 GMT</pubDate>
            <atom:updated>2024-10-21T08:15:42.942Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step 3 — Services and Relational CRUD</h3><p><em>This is more of a devlog than a guide. I created a very basic MVP to calculate the stats after items are attached to a pokemon.</em></p><p>In the third step of developing the Pokémon Unite Build Tracker, I focused on implementing services and handling relational CRUD operations. This step builds upon the previous work, further enhancing the application’s architecture and functionality.</p><h3>Service Interfaces</h3><p>I started by defining interfaces for each service:</p><pre>public interface IPokemonService<br>{<br>    Task&lt;IEnumerable&lt;PokemonDTO&gt;&gt; ListPokemons();<br>    Task&lt;PokemonDTO&gt; FindPokemon(int id);<br>    Task&lt;PokemonDTO&gt; CreatePokemon(PokemonDTO pokemonDTO);<br>    Task&lt;bool&gt; UpdatePokemon(int id, PokemonDTO pokemonDTO);<br>    Task&lt;bool&gt; DeletePokemon(int id);<br>}</pre><p>Similar interfaces were created for IBattleItemService and IHeldItemService. These interfaces define the contract for each service, ensuring consistency and enabling dependency injection.</p><h3>Service Implementation</h3><p>For each interface, I created a corresponding service class. Here’s an example from the PokemonService:</p><pre>public class PokemonService : IPokemonService<br>{<br>    private readonly ApplicationDbContext _context;<br>}<br>public PokemonService(ApplicationDbContext context)<br>    {<br>        _context = context;<br>    }<br>    public async Task&lt;IEnumerable&lt;PokemonDTO&gt;&gt; ListPokemons()<br>    {<br>        var pokemons = await _context.Pokemons.ToListAsync();<br>        return pokemons.Select(p =&gt; new PokemonDTO<br>        {<br>            // Mapping properties<br>        });<br>    }<br>    // Other method implementations...<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*pyVClQtZ08_xWhqfTsYRJQ.png" /></figure><h3>LINQ and Entity Framework Core</h3><p>The services extensively use LINQ and Entity Framework Core for database operations:</p><ul><li>ToListAsync() for retrieving all entities</li><li>FindAsync(id) for finding a specific entity</li><li>Add() for creating new entities</li><li>Remove() for deleting entities</li></ul><h3>Asynchronous Programming</h3><p>All service methods are implemented asynchronously, improving the application’s responsiveness:</p><pre>public async Task&lt;PokemonDTO&gt; CreatePokemon(PokemonDTO pokemonDTO)<br>{<br>    var pokemon = new Pokemon<br>    {<br>        // Mapping properties<br>    };<br>}<br>_context.Pokemons.Add(pokemon);<br>    await _context.SaveChangesAsync();<br>    pokemonDTO.PokemonId = pokemon.PokemonId;<br>    return pokemonDTO;<br>}</pre><h3>Error Handling</h3><p>The services include basic error handling:</p><ul><li>Checking for null values</li><li>Verifying entity existence before updates or deletions</li><li>Using try-catch blocks for concurrency issues</li></ul><pre>public async Task&lt;bool&gt; UpdatePokemon(int id, PokemonDTO pokemonDTO)<br>{<br>    if (id != pokemonDTO.PokemonId) return false;<br>}<br>var pokemon = await _context.Pokemons.FindAsync(id);<br>    if (pokemon == null) return false;<br>    // Update properties<br>    try<br>    {<br>        await _context.SaveChangesAsync();<br>        return true;<br>    }<br>    catch (DbUpdateConcurrencyException)<br>    {<br>        if (!PokemonExists(id)) return false;<br>        else throw;<br>    }<br>}</pre><h3>Data Transfer Objects (DTOs)</h3><p>The services continue to use DTOs for data transfer between layers, maintaining a clean separation of concerns.</p><h3>Dependency Injection</h3><p>The services are designed to be easily injected into controllers or other components that need them, promoting loose coupling and easier testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dc462c11548" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Pokémon Unite Build Tracker using ASP.NET Core Web App (Model-View-Controller): Step 2]]></title>
            <link>https://pranjallokhande.medium.com/creating-a-pok%C3%A9mon-unite-build-tracker-using-asp-net-core-web-app-model-view-controller-step-2-bc43d71921da?source=rss-14ad2b2fa8c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc43d71921da</guid>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[model-view-controller]]></category>
            <dc:creator><![CDATA[Pranjal Lokhande]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 07:23:12 GMT</pubDate>
            <atom:updated>2024-10-21T07:23:56.479Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step 2 — LINQ and Data Transfer Objects</h3><p><em>This is more of a devlog than a guide. I created a very basic MVP to calculate the stats after items are attached to a pokemon.</em></p><p>In the second step of developing the Pokémon Unite Build Tracker, I focused on implementing Language Integrated Query (LINQ) and Data Transfer Objects (DTOs) to enhance data manipulation and presentation. This step builds upon the foundation laid in Step 1, leveraging Entity Framework to create a robust API.</p><h3>API Controllers</h3><p>I created three main API controllers to handle CRUD operations for Pokémon, Battle Items, and Held Items. Each controller follows a similar structure, implementing five key endpoints:</p><ol><li>List all items</li><li>Find a specific item by ID</li><li>Create a new item</li><li>Update an existing item</li><li>Delete an item</li></ol><h3>PokemonAPIController</h3><p>The PokemonAPIController demonstrates the implementation of these endpoints:</p><pre>[HttpGet(&quot;ListPokemons&quot;)]<br>public async Task&lt;ActionResult&lt;IEnumerable&lt;PokemonDTO&gt;&gt;&gt; ListPokemons()<br>{<br>    var pokemonDTOs = await _pokemonService.ListPokemons();<br>    return Ok(pokemonDTOs);<br>}<br>[HttpGet(&quot;FindPokemon/{id}&quot;)]<br>public async Task&lt;ActionResult&lt;PokemonDTO&gt;&gt; FindPokemon(int id)<br>{<br>    var pokemonDTO = await _pokemonService.FindPokemon(id);<br>    if (pokemonDTO == null)<br>    {<br>        return NotFound();<br>    }<br>    return Ok(pokemonDTO);<br>}</pre><h3>LINQ Implementation</h3><p>Although not directly visible in the controller code, LINQ is extensively used within the service layer (_pokemonService, _battleItemService, _heldItemService) to perform database operations. LINQ provides a powerful and intuitive way to query and manipulate data, offering parity with traditional database operations like List, Find, Add, Delete, and Update.</p><h3>Data Transfer Objects (DTOs)</h3><p>DTOs play a crucial role in this step, serving as a bridge between the API and the client. They offer several benefits:</p><ol><li>Data Encapsulation: DTOs allow us to control exactly what data is exposed to the client, enhancing security and reducing unnecessary data transfer.</li><li>Flattening Complex Objects: For relationships between entities (e.g., Pokémon and its Held Items), DTOs can present a flattened, easy-to-consume structure.</li><li>Versioning: DTOs provide flexibility in evolving the API without changing the underlying data model.</li></ol><h3>Asynchronous Programming</h3><p>All API methods are implemented asynchronously using async and await, improving the application&#39;s scalability and responsiveness:</p><pre>[HttpPost(&quot;CreatePokemon&quot;)]<br>public async Task&lt;ActionResult&lt;PokemonDTO&gt;&gt; CreatePokemon(PokemonDTO pokemonDTO)<br>{<br>    if (pokemonDTO == null)<br>    {<br>        return BadRequest();<br>    }<br>}<br>var createdPokemon = await _pokemonService.CreatePokemon(pokemonDTO);<br>    return CreatedAtAction(nameof(FindPokemon), new { <br>    id = createdPokemon.PokemonId }, createdPokemon);<br>}</pre><h3>Error Handling</h3><p>The API includes basic error handling, returning appropriate HTTP status codes:</p><ul><li>NotFound() for items that don&#39;t exist</li><li>BadRequest() for invalid input</li><li>NoContent() for successful updates and deletions</li></ul><p>Using Swagger UI, I tested all the API endpoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X9Q8VKfom_3bcAkt1QtmIQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc43d71921da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Pokémon Unite Build Tracker using ASP.NET Core Web App (Model-View-Controller): Step 1]]></title>
            <link>https://pranjallokhande.medium.com/creating-a-pok%C3%A9mon-unite-build-tracker-using-asp-net-core-web-app-model-view-controller-933d659d20a3?source=rss-14ad2b2fa8c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/933d659d20a3</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[model-view-controller]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <dc:creator><![CDATA[Pranjal Lokhande]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 06:46:56 GMT</pubDate>
            <atom:updated>2024-10-21T07:24:20.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step 1 — Entity Framework and Model Design</h3><p><em>This is more of a devlog than a guide. I created a very basic MVP to calculate the stats after items are attached to a pokemon.</em></p><p>In the first step of developing the Pokémon Unite Build Tracker, I focused on setting up the foundation using Entity Framework and designing the data models. This crucial phase laid the groundwork for the entire application.</p><h3>Entity Framework Setup</h3><p>I began by implementing Entity Framework, a powerful Object-Relational Mapping (ORM) tool, to simplify database operations and improve overall architecture. This decision addressed several pain points from previous projects, such as manually connecting C# data controllers with a MySQL database.</p><h3>Model Design</h3><p>The core of the application revolves around three main entities: Pokemon, HeldItem, and BattleItem. Each model was carefully crafted to represent the game’s mechanics accurately.</p><h3>Pokemon Model</h3><p>The Pokemon class serves as the central entity, containing essential attributes such as:</p><ul><li>Basic information (Name, Role, Style)</li><li>Image link for visual representation</li><li>Stats (HP, Attack, Defense, Sp. Attack, Sp. Defense)</li><li>Special attributes (Crit Rate, CDR, Lifesteal, Attack Speed, Move Speed)</li></ul><pre>public class Pokemon<br>{<br>    // pokemon table is registered with a PK<br>    [Key]<br>    public int PokemonId { get; set; }<br>    public string PokemonImgLink { get; set; }<br>    public string PokemonName { get; set; }<br>    public string PokemonRole { get; set; }<br>    public string PokemonStyle { get; set; }<br>    public int PokemonHP { get; set; }<br>    public int PokemonAttack { get; set; }<br>    public int PokemonDefense { get; set; }<br>    public int PokemonSpAttack { get; set; }<br>    public int PokemonSpDefense { get; set; }<br>    public int PokemonCritRate { get; set; }<br>    public int PokemonCDR { get; set; }<br>    public int PokemonLifesteal { get; set; }<br>    public int PokemonAttackSpeed { get; set; }<br>    public int PokemonMoveSpeed { get; set; }<br><br>}</pre><p>Additionally, I established relationships between Pokemon and other entities:</p><pre>public ICollection&lt;HeldItem&gt; HeldItems { get; set; }<br>public ICollection&lt;BattleItem&gt; BattleItems { get; set; }</pre><p>These collections allow a Pokémon to have multiple held items and battle items, reflecting the game’s build system.</p><h3>HeldItem and BattleItem Models</h3><p>Both HeldItem and BattleItem classes follow a similar structure, including:</p><ul><li>Unique identifier</li><li>Image link</li><li>Name</li><li>Various stat modifiers</li></ul><p>To establish the many-to-many relationship with Pokemon, I included:</p><pre>public ICollection&lt;Pokemon&gt;? Pokemons { get; set; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26lrxDb4Jy9DpHfS7sl0Ig.png" /><figcaption>Database for Battle Item dbo</figcaption></figure><h3>Data Transfer Objects (DTOs)</h3><p>For each model, I created corresponding DTOs (PokemonDTO, HeldItemDTO, BattleItemDTO). These DTOs serve several purposes:</p><ol><li>Data encapsulation</li><li>Improved performance by transferring only necessary data</li><li>Flexibility in API responses</li></ol><pre>public class PokemonDTO<br>{<br>    public int PokemonId { get; set; }<br>    public string PokemonImgLink { get; set; }<br>    public string PokemonName { get; set; }<br>    public string PokemonRole { get; set; }<br>    public string PokemonStyle { get; set; }<br>    public int PokemonHP { get; set; }<br>    public int PokemonAttack { get; set; }<br>    public int PokemonDefense { get; set; }<br>    public int PokemonSpAttack { get; set; }<br>    public int PokemonSpDefense { get; set; }<br>    public int PokemonCritRate { get; set; }<br>    public int PokemonCDR { get; set; }<br>    public int PokemonLifesteal { get; set; }<br>    public int PokemonAttackSpeed { get; set; }<br>    public int PokemonMoveSpeed { get; set; }<br>}</pre><h3>Code-First Migrations</h3><p>With the models in place, I utilized Entity Framework’s code-first approach to create the database schema. This method allows for easy updates and maintenance of the database structure as the application evolves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=933d659d20a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making a short film on Unreal Engine 5.1 — Part 2]]></title>
            <link>https://pranjallokhande.medium.com/making-a-short-film-on-unreal-engine-5-1-part-2-4e453199d95c?source=rss-14ad2b2fa8c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e453199d95c</guid>
            <category><![CDATA[filmmaking]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[blender]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[unreal-engine-5]]></category>
            <dc:creator><![CDATA[Pranjal Lokhande]]></dc:creator>
            <pubDate>Wed, 22 Feb 2023 00:56:42 GMT</pubDate>
            <atom:updated>2024-10-10T14:23:48.085Z</atom:updated>
            <content:encoded><![CDATA[<h3>Working with Metahumans in Unreal Engine 5.1</h3><p>Part 2: Character (<em>MetaHuman</em>)</p><p>(This is not a tutorial)</p><p><a href="https://www.unrealengine.com/en-US/">Unreal Engine</a> has provided enough materials and resources to make a complete game to an entire film. One such tool that I used for the next part of my project is <a href="https://metahuman.unrealengine.com/"><em>Metahuman Creator</em></a>. I created a character that I wanted to use and imported it in the engine using Quixel Bridge (&gt; MetaHuman &gt; My MetaHumans).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qrElrDh5QKuxuJThFF-7Uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmOFh4PTqgBE1vGHyqC1_w.png" /></figure><p>After importing, I enabled all the missing plugins but still got some errors in the character BP <em>Event Graph. </em>I was able to solve it by adding <em>GetSkeletalMeshAsset() </em>instead of <em>SkeletalMesh() </em>component wherever required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*idXdApZnMn8FuMYImC88rA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PaQFeCxKAUuxcGEN_fD0MQ.png" /></figure><p>Also, in the viewport for character BP, changing the value of <em>Forced LOD </em>from -1 to 0 will set the player to be used in the level. The negative value means that the model is loading in a lower level of detail which will make the model look incomplete when the camera is zoomed out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*uGylfQMfYiFC5BDOamAyyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*RQchbI0T1si5MVdvDFnh_g.gif" /><figcaption>The model looks perfect in the level!</figcaption></figure><p>Now that the main character and the room is loaded, the next step is to make the surrounding environment. So my story has 2 environments; a city in a spaceship and a space level. In next part, I will talk about how I created both the environments, lighting, and post-processing to get the final look and feel as I imagined.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e453199d95c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making a short film on Unreal Engine 5.1 — Part 1]]></title>
            <link>https://pranjallokhande.medium.com/making-a-short-film-on-unreal-engine-5-1-b987a8797367?source=rss-14ad2b2fa8c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b987a8797367</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[blender]]></category>
            <category><![CDATA[unreal-engine-5]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[filmmaking]]></category>
            <dc:creator><![CDATA[Pranjal Lokhande]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 07:26:58 GMT</pubDate>
            <atom:updated>2024-10-10T14:22:14.241Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to add Sketchfab models in Unreal Engine 5 and edit it to your needs in Blender</h3><p>Part 1: The Pod Room</p><p>(This is not a tutorial)</p><p>Hi! My name is Pranjal Lokhande. I am a <em>technical game designer, </em>currently levelling up Unreal Engine 5 skills. While browsing here and there on YouTube, a tutorial video for creating <a href="https://www.youtube.com/watch?v=dW9baOfDS9k"><em>Cinematic 3D film with Unreal Engine 5</em></a><em> </em>by <a href="https://www.youtube.com/@dustypixels501"><em>Dusty PIxels</em></a><em> </em>inspired me to make a short film/cinematic. I instantly started noting down any idea that came to my mind.</p><blockquote>Improvisation is completely normal during development process.</blockquote><p>I absolutely love creating story-driven games. So I knew what is to be expected with the engine and the quality of assets that were required for my project. The first asset kit that I used is by <em>denis_cliofas.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsketchfab.com%2Fmodels%2Fa60be41028b049b6a488f5c6effcb6f8%2Fembed&amp;display_name=Sketchfab&amp;url=https%3A%2F%2Fsketchfab.com%2F3d-models%2Ffuturistic-room-a60be41028b049b6a488f5c6effcb6f8&amp;image=https%3A%2F%2Fmedia.sketchfab.com%2Fmodels%2Fa60be41028b049b6a488f5c6effcb6f8%2Fthumbnails%2Ff72cf67d016f414e9970e633434a85b9%2F9cc70ce58dcf4e3abafc63f88a098143.jpeg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sketchfab" width="640" height="360" frameborder="0" scrolling="no"><a href="https://medium.com/media/508be7b17b5506d54fe25fe5ab630ff0/href">https://medium.com/media/508be7b17b5506d54fe25fe5ab630ff0/href</a></iframe><p>I imported the model (.fbx) in Blender, modified it a little and exported it to use it in Unreal Engine. There are two ways to import the fbx models using the <em>FBX import settings</em>; applying the texture materials to the model in Blender (best for skeletal meshes and animations) and then export it OR applying the texture materials to the model in the engine itself. I went with the latter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCBGTFojHsKxsT1cFeTOyA.gif" /></figure><p>While importing the textures, the engine crashed multiple times. I was able to fix it by simply changing the default graphics RHI to DirectX 11 and increasing texture streaming pool to 3000 mb (this may vary depending on the system) using the command:</p><pre>r.Streaming.Poolsize 3000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*k5SV-Subz3gQo14XNpc_ng.png" /><figcaption>Import setting which made my life much easier</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6l7S7BQl8z9k-wHIKnEcBQ.png" /></figure><p>The model looked good enough to apply the textures. I looked for and tried multiple solutions to not apply individual textures manually, but figured this was the best and least time-consuming method for me. *cries on my chair because UE crashes*</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9gd5zXLRTNjH5gZXY-ByvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxmURl0Dbv_ud5pgpldxSw.png" /></figure><p>I definitely liked how it turned out, at least for now. The next step was to make a <em>Metahuman </em>character using the <a href="https://metahuman.unrealengine.com/"><em>Metahuman creator</em></a> and setting it up in the project. This will be covered in the next part of the blog.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b987a8797367" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>