Quantcast

Jump to content

» «
Photo

[WIP]GTAModding Introduction: How GTA Works

6 replies to this topic
MenuET
  • MenuET

    Maxscript Modeler

  • Feroci
  • Joined: 27 Nov 2008
  • Panama
  • Best Total Overhaul 2017 Contribution [GTA: Underground]

#1

Posted 04 March 2018 - 08:16 PM Edited by MenuET, 04 March 2018 - 08:46 PM.

How GTA Works:

That article will give you everything you need to get started, not only on GTAModding, but also on any game you want and in Computer Graphics in general.

DISCLAIMER: This article is for people that never saw GTAModding before. For people that just want to make their own modifications in game. So its explained as simple as possible. It is actually for who never saw ANYTHING related to modding at all, and just want to get inside the modding world.

What this article IS NOT for: That article is not an step-to-step procedure telling you how to do everything you ever dreamt for your mod project.

Instead, WHAT THAT IS: That article serves new modders as an index to get started, to know the basic foundation of modding and know where to find content and material to start studying and practicing modding in general, whatever the mod project is.
It explains quickly all the steps of modding, explains which steps are, and what programs/software you do need to learn to master the techniques you need to do what you want. It gives the reader a shall explanation of EVERYTHING of how GTA and another games works since the core, the engine, the code, and the .exe itself. It explains even how the game is processed by your GPU and how it gets to your screen.

Okay lets get started shall we?


Engine:
Every videogame works on an engine. Even Grand Theft Auto.
Both of Grand Theft Auto engines, RAGE (IV/V) and RenderWare (III/VC/SA), has embedded:

1: A Rendering/Graphics engine
(that one is responsible for putting your 3d pretty on screen for you - you will work mostly with Graphics at Modding)
2: A Physics/Animation engine
(self-explainatory, unless you started gaming yesterday)
3: Scripted Building Blocks
(responsible for "blending" everything. The scripted mainframe. Makes the machine recognize game files and translate them to machine code. Youll probably work here, too)
4: An Sound Engine

Rendering Engine:

The process of rendering 3D, or the process that makes your 3d be pretty on screen, works as follows:

Primitives -> 3D Model/Mesh -> Lighting -> Shaders -> Rasterization -> 2D Materials -> Monitor

Primitives: Are the triangles. They are divided in 3: Points(vertex), Edges and Faces
IYlmJh6.png
3D Model/Mesh: You can mount any object with just triangles. And the 3d model/mesh is a set of these triangles (Primitives) all linked together.
LSPHXAx.png
Lighting/Shading: As the name says, the lights and the shadows of an object. Your model looks like this without them:
RZCEgt6.png
Lighting/shading makes it look like this:
GMke9S0.png
A simple Lighting/Shading is common to see in many 3d editors like 3dsMAX, so you can see what you are actually editing/doing. However, that Lighting/Shading solution doesn't go with the model itself when you put it in game and in fact it looks more like the first image.
-----------------------------------------------------------------
2D Materials: A set 2d Images that gives the object its characteristics
eiV7YRK.png1XD3VQI.png
Simple house facade. That images are put on the 3d model to give them color (1st image - Diffuse), tell the computer how the color (diffuse) will react with the game light (2nd image - Specular) being Black=Opaque and White=shiny, and many more. Usually (and mainly for Grand theft Auto) the regular 3d images are Diffuse/Specular and Normal (blue image that bends the light that hit the 3d model and gives the 2d material an illusion of being 3d.
GqKF2xa.pngiBk9jb1.png
All of that 2d images (also called "Maps") makes the 2d material itself. Here some more examples:

troXpWQ.pngXFaGdx8.png

-------------------------------------
Rasterization: The objects are 3d but your monitor screen are flat. Your Video Card has to convert your 3D in pixels so it can be read by your monitor.

gQxvA7d.pngHownwK9.pngJQDed4e.png



Graphics3D_Pipe.png


-------------------------------------------------------------------------------------------------

More:
Google: 3d Graphics Pipeline
For Further Reading:
https://www.ntu.edu....heory.html#zz-1.

Spoiler

----------------------------------------

If you wannna know more about that, i suggest you to go back to the high school and learn about vector aritmethic and Matrices. And of course, Calculus III (if you already know Calculus I and II.

The C++ libraries OpenGL and DirectX are responsible for adding to C++ the functions necessary for managing these primitives and thus making programs that make 3D reading, editing and rendering possible. See more by learning to program one of them libraries, if you want to get too technical. Both of them works pretty much the same.

But, if you just want to make 3D models right away, without learning about the "Coding" part, you can try and learn how to work with one of these 3d Editors:


-----------------------------------------------------------------------------------

Working with 3d Editors


"Manual" Ones:
These ones are the most famous "manual" 3d Editing programs.

Spoiler


"Automatic" 3d editors:
There are a lot of 3d Editors that lacks the low-level editing like 3dsMAX, but are more "automatic", which makes a lot easier the 3D work for some occasions. Many are very unknown on the GTAModding scenery but very popular outside.
Spoiler


Which one is better?
By convention you have learned here on GTAModding that "3dsMAX is better" because it has "gaming industry standard", "blah" and all sorts of stuff that i heard by the community out there. That could not be more false.


All of them tools are occasional (even 3dsMAX).
All of them are very good for an occasion, but terrible for another (even the praised 3dsmax). SketchUp lacks a lot of stuff that 3dsMAX has, but Sketchup can easily do some stuff 3x or even 4x faster. Some say that softwares like CityScape and MakeHuman (the automatic ones) are not professional. Lies. That softwares can carry work 10x more intensive than MAX (and are more comfortable to work with), with a lot of ease. Usually, that softwares can handle 90% or more of the work, letting you with only 10% or less to work on 3dsMAX or ZBrush. THAT 10% work, yes, you have to use 3dsMAX or other "manual" 3D editors. Yet, you have only 10% to do.
What one editor lacks other one brights.
VgXRPXg.png
French Riviera is an example of mod made with Automatic 3d Editors like CityScape.

Short answer: There is not a Software "One Size fits in all". You gonna need them all if you want to be optimal on your work.
Learn how to get the best and avoid the worst of them all.



Independently of the 3D editor you will use, you should watch the polygon (triangle) count. (explain about polycount here, relating it to primitives).

More triangles = More MB = More PC intensive = More Problems.
J0hZwee.png

So, because of that, always control the complexity of your model. Always erase unneeded polygons. Use sufficient polygons only for the qualiy you need, nothing more.


Next up: 3D modeling process.

====================================================
 

  • Shagg_E, lafincow12 and Kyrie like this

MenuET
  • MenuET

    Maxscript Modeler

  • Feroci
  • Joined: 27 Nov 2008
  • Panama
  • Best Total Overhaul 2017 Contribution [GTA: Underground]

#2

Posted 04 March 2018 - 08:29 PM

Ill keep updating these posts as i go, and hopefully i can get it done.

 

Next Chapters:

 

-3D modeling process (including brief explanation of how 3d models are converted to GTA)

-2D Materials and UV Mapping (including softwares and procedures to learn to get started)

-Lighting/Shading (A more in-depth explanation what it is and how it works for GTA, with also links to get started, and also explanation on Prelighting/Shadow Baking and timecyc)

-Physics and Animation

  • deltaCJ and lafincow12 like this

MenuET
  • MenuET

    Maxscript Modeler

  • Feroci
  • Joined: 27 Nov 2008
  • Panama
  • Best Total Overhaul 2017 Contribution [GTA: Underground]

#3

Posted 04 March 2018 - 08:48 PM Edited by MenuET, 04 March 2018 - 08:48 PM.

Reserved


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#4

Posted 04 March 2018 - 10:35 PM

Amazing introduction! I need to work on modeling my self, so these tutorials could help me out!


Inan-Ahammad
  • Inan-Ahammad

    Project Props - Mapper

  • Members
  • Joined: 15 Jul 2016
  • Bangladesh

#5

Posted 05 March 2018 - 03:29 PM

Really nice!Keep it up.


Ndukong
  • Ndukong

    Crackhead

  • Members
  • Joined: 20 Feb 2016
  • Cameroon

#6

Posted 05 March 2018 - 04:18 PM

Cool tutorial intro. Looking forward to updates.

skylumz
  • skylumz

    Player Hater

  • Members
  • Joined: 20 Dec 2017
  • United-States

#7

Posted A week ago

Amazing explanation for beginners really cool you are doing this waiting for the next update! :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users