My first FPS, Model in Blender and some Experiences

3 posts / 0 new
Last post
goncaloperes
goncaloperes's picture
My first FPS, Model in Blender and some Experiences

Hey everyone! smiley

 

In order to explore more potentialities of Unity, I have decided to build an FPS.

For that, I have started by working with the materials and textures, and then I built the terrain with all its details (as grass and trees) [1].

I have used a First Person character [1].

Then I added a gun ]2} and configured the crosshair [3] and the shooting sound [4].

Figure 1. Scene FPS, with gun and crosshair.

 

I have built a script, taking advantage of the raycast [8], so that we can shoot and destroy objects (I made the range public so that I could edit in the Game Engine dashboard):

Figure 2. Script made on Visual Studio 2019.

 

The objects that can be destroyed will have the tag "Enemy" and, in this case, they will be a model that I made on Blender [10] and Substance Painter [11] (I used this last one for the texture and material).

Figure 3. Model on Blender

Figure 4. Textures and Materials on Substance Painter.

 

In order for it to work as expected, once in Unity, I added Box Colliders to the eggs. Some of the eggs will be on top of some crates - the crates will also have the Box Collider, however their tag won't be "Enemy", so we won't be able to destroy them.

Figure 5. Scene with the crates.

 

As the lighting is a really important component, I took some time to explore each of them. Unity gives us the ability to use different lights and each one affests the scene in a specific way. I will leave some advantages that I have seen for each light bellow:

• If goal is to distribute the light to all areas, I suggest Point Light.

• If the goal is to distribute the light in a specific direction, I suggest Spot Light.

• If the goal is to illuminate the whole scene, like a sun, I suggest Directional Light.

 

Took care of the post processing and added eggs all over the scene with the "Enemy" tag so that we can destroy them:

Figure 6. Scene Intro.

 

For this whole project I have used the following assets:

Standard Assets [1].

Machine Guns [2].

Simple Modern Crosshairs: Pack 1 [3].

Post Apocalypse Guns Demo [4].

Wood Crate [5].

 

Here you can see the scene and have some fun shooting the eggs [6].

I'll try to update my portfolio [7] with this new projects tomorrow. It takes time to do everything.

Best regards,

Gonçalo Peres


References:

[1] Unity Asset Store (2019). Standard Assets (for Unity 2017.3). Disponível online em: https://assetstore.unity.com/packages/essentials/asset-packs/standard-as... (acedido em: 25 de novembro de 2019).

[2] Unity Asset Store (2019). Machine Guns. Disponível online em: https://assetstore.unity.com/packages/3d/props/guns/machine-guns-20611 (acedido em: 25 de novembro de 2019).

[3] Unity Asset Store (2019). Simple Modern Crosshairs: Pack 1. Disponível online em: https://assetstore.unity.com/packages/2d/gui/icons/simple-modern-crossha... (acedido em: 25 de novembro de 2019).

[4] Unity Asset Store (2019). Post Apocalypse Guns Demo. Disponível online em: https://assetstore.unity.com/packages/audio/sound-fx/weapons/post-apocal... (acedido em: 25 de novembro de 2019).

[5] Unity Asset Store (2019). Wood Crate. Disponível online em: https://assetstore.unity.com/packages/3d/props/wood-crate-4428 (acedido em: 25 de novembro de 2019).

[6] Peres, G. (2019). First Game. Disponível online em: https://xr4.goncaloperes.com (acedido em: 27 de novembro de 2019).

[7] Peres, G. (2019). XR Portfolio. Disponível online em: https://xr.goncaloperes.com (acedido em: 27 de novembro de 2019).

[8] Unity Documentation (2019). Physics.Raycast. Disponível online em: https://docs.unity3d.com/ScriptReference/Physics.Raycast.html (acedido em: 25 de novembro de 2019).

[9] Visual Studio (2019). Disponível online em: https://visualstudio.microsoft.com/ (acedido em: 25 de novembro de 2019).

[10] Blender (2019). Disponível online em: https://www.blender.org/ (acedido em: 25 de novembro de 2019).

[11] Substance Painter (2019). Disponível online em: https://www.substance3d.com/products/substance-painter/ (acedido em: 25 de novembro de 2019).

Visibility: 
Public - accessible to all site users
artur
artur's picture
Oh wow! Great work!

Oh wow! Great work!

goncaloperes
goncaloperes's picture
Thank you for the feedback.

Thank you @artur!

I have been working on something more related with Christmas and I will share with the community once done.

I was working on the game design and ideas on the past days and right now I just need to make it work.