Fr/Adding Prop Models: Difference between revisions

From Valve Developer Community
< Fr
Jump to navigation Jump to search
No edit summary
m (Multipage removal)
 
(21 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{first room menu}}
{{LanguageBar|title = Ajouter un modèle}}


Les 'Props' sont des modèles 3D créer à partir d'un programme de modélisation telle [[XSI Mod Tool]] ou 3DS Max.
{{first room menu:fr}}
Les 'Props' sont des modèles 3D créés à partir d'un programme de modélisation tel {{L|XSI Mod Tool}} ou 3DS Max.


Il y a 3 types de props :
Il y a 3 types de props :
* ''Static'' qui sont fixe.  
* ''Static'' qui sont fixe.  
* ''Dynamic'' qui peuvent être animés ou bougé.
* ''Dynamic'' qui peuvent être animés ou bougé.
* ''Physics'' qui peuvent être bougé et obeissent au lois de la gravité.
* ''Physics'' qui peuvent être bougé et obeissent au lois de la physiques.


Vous verrez dans ce tuto comment placé deux types de ces entités.
Vous verrez dans ce tuto comment placer deux types de ces entités.




== Prop static ==
== Prop static ==
[[Image:hammer_pickpropstatic.jpg |thumb|left|200px| Choisissez [[prop_static]] dans la liste des entitée.]]
[[File:hammer_pickpropstatic.png|thumb|left|200px|Choisissez {{L|prop_static}} dans la liste des entitée.]]
[[Image:hammer_placepropstatic.jpg |thumb|right|200px| Placez l'entitée ''prop_static'' sur le sol en cliquant dans la vue 3D.]]
[[File:hammer_placepropstatic.png|thumb|right|200px|Placez l'entitée ''prop_static'' sur le sol en cliquant dans la vue 3D.]]


Nous allons commencé par ajouter un prop static.
Nous allons commencer par ajouter un prop static.


Tous les props sont des entitées, et traité comme telle, vous pourrez donc les gerez avec le menu '''Entity Tool'''.  
Tous les props sont des entités, et traité comme telle, vous pourrez donc les gérez avec le menu '''Entity Tool'''.  


Ensuite choissisez [[prop_static]] de la liste entitée.
Ensuite choisissez {{L|prop_static}} de la liste entité.


Placez le ''prop_static'' dans la map sur le sol dans la vue 3D.
Placez le ''prop_static'' dans la map sur le sol dans la vue 3D.


Vous aurez pour résultat une petite boite rouge, car vous n'avez pas encore choisie votre modèles, juste le type de modèles par le choix de l'entitée ''prop_static''.
Vous aurez pour résultat une petite boite rouge, car vous n'avez pas encore choisi votre modèle, juste le type de modèle par le choix de l'entité ''prop_static''.


Nous allons maintenant choisir le modèle.
Nous allons maintenant choisir le modèle.


<br clear="both">
{{clr}}


[[Image:hammer_pickworldmodel.gif |thumb|right|500px| Cliquez sur Word model.]]
[[File:hammer_pickworldmodel.png|thumb|right|500px|Cliquez sur Word model.]]


Prenez l'outil Selection et double-cliquez sur l'entité.
Prenez l'outil Selection et double-cliquez sur l'entité.
Line 36: Line 37:
# Puis sur '''Browse...''', le '''Model Browser'''  ou explorateur de modèles va s'afficher.
# Puis sur '''Browse...''', le '''Model Browser'''  ou explorateur de modèles va s'afficher.


<br clear="both">
{{clr}}


[[Image:Hammer_ModelBrowser_PickFolder.jpg |thumb|right|400px| Click a folder to change to that sub-directory.]]
[[File:Hammer_ModelBrowser_PickFolder.jpg|thumb|right|400px|Click a folder to change to that sub-directory.]]


Ne vous inquietez pas si vous voyez le message “ERROR”, c'est juste que vous n'avez selectionnez aucun modèles.
Ne vous inquiétez pas si vous voyez le message “ERROR”, c'est juste que vous n'avez sélectionné aucun modèles.


Cliquez sur le dossier ''props_c17'' pour lister les modèles à l'interieur.
Cliquez sur le dossier ''props_c17'' pour lister les modèles à l'intérieur.


<br clear="both">
{{clr}}


[[Image:Hammer_ModelBrowser_PickFence.jpg |thumb|right|400px| Click the ''fence01a'' model to select it, and then click ''OK'' to close the browser.]]
[[File:Hammer_ModelBrowser_PickFence.jpg|thumb|right|400px|Click the ''fence01a'' model to select it, and then click ''OK'' to close the browser.]]


Il y a beaucoup de modèles comme pour les textures, nous nous servirons des filtres. Pour notre cloture tapez "<code>fence</code>" dans le champ filtre.
Il y a beaucoup de modèles comme pour les textures, nous nous servirons des filtres. Pour notre clôture tapez "<code>fence</code>" dans le champ filtre.


Puis choisissez le modèle <code>fence01a.mdl</code>, vous aurez un apercu dans la vue en 3D. Puis faite Ok pour l'ajouter à votre entité ''prop_static''.
Puis choisissez le modèle <code>fence01a.mdl</code>, vous aurez un aperçu dans la vue en 3D. Puis faites Ok pour l'ajouter à votre entité ''prop_static''.


[[Image:hammer_pickapply_sm.jpg |thumb|right|400px| Click the ''Apply'' button to confirm your changes.]]
[[File:hammer_pickapply_sm.png|thumb|right|400px|Click the ''Apply'' button to confirm your changes.]]


Faite ''Apply''. Votre entité doit avoir pris l'apparence de votre modèle.
Faite ''Apply''. Votre entité doit avoir pris l'apparence de votre modèle.


<br clear="both">
{{clr}}


[[Image:hammer_closeprop.jpg |thumb|right|200px| Close the '''Object Properties''' dialog.]]
[[File:hammer_closeprop.png|thumb|right|200px|Close the '''Object Properties''' dialog.]]


Close the '''Object Properties''' dialog.
{{clr}}


<br clear="both">
*Note : Le placement des prop static est assez libre, vous pouvez les placer légèrement au dessus du sol, ou un peu en dessous cela ne causera aucun problème contrairement au prop physic plus contraignant.
 
<br clear="both">


== Prop physics ==
== Prop physics ==


[[Image:hammer_pickpropphysics.jpg |thumb|left|100px| Choose the appropriate physics prop entity.]]
[[File:hammer_pickpropphysics.jpg|thumb|left|100px|Choose the appropriate physics prop entity.]]
[[Image:hammer_placepropphysics.jpg |thumb|right|200px| Place the physics prop entity by clicking the floor in the 3D view.]]
[[File:hammer_placepropphysics.png|thumb|right|200px|Place the physics prop entity by clicking the floor in the 3D view.]]


Nous allons maintenant ajouter un modèles avec des propriété physiques.
Nous allons maintenant ajouter un modèle avec des propriétés physiques.


Selectionné '''Entity Tool'''.
Sélectionnez '''Entity Tool'''.


Le type de l'entité prop_physics depend du jeux pour lequel la map est destiné.
Le type de l'entité prop_physics depend du jeu pour lequel la map est destinée.


* Si elle est pour [[Half-Life 2]]: Single Player, choisissez l'entitée [[prop_physics]] entity.
* Si elle est pour {{L|Half-Life 2}}: Single Player, choisissez l'entité {{L|prop_physics}} entity.
* Si elle est pour [[Half-Life 2: Deathmatch]] ou u nautre jeux multi, choisissez l'entitée [[prop_physics_multiplayer]].  
* Si elle est pour {{L|Half-Life 2: Deathmatch}} ou un autre jeux multi, choisissez l'entité {{L|prop_physics_multiplayer}}.  


Choisissez votre entité, placez la sur le sol et allez dans l'explorateur de modèles.
Choisissez votre entité, placez la sur le sol et allez dans l'explorateur de modèles.


<br clear="both">
{{clr}}
 
[[Image:Hammer_ModelBrowser_PickOildrum.jpg |thumb|right|400px| After having opened the browser, search for <code>oildrum</code>, choose the ''oildrum001'' model, and click ''OK''.]]
 
Pour un tonneau, tapez "<code>oildrum</code>" dans le chmap filtre, et choisissez le modèle <code>oildrum001.mdl</code>, puis confimer.
 
<br clear="both">
 
[[Image:hammer_pickapply_sm2.jpg |thumb|right|400px| Click ''Apply'' to make the change and update the 3D view.]]
 
Click the '''Apply''' button to confirm your changes, and the physics prop will change to the barrel model you selected.
 
<br clear="both">
 
[[Image:hammer_closeprop.jpg |thumb|right|200px| Close the '''Object Properties''' dialog.]]
 
Close the '''Object Properties''' dialog.
 
<br clear="both">
 
== Moving objects ==
[[Image:hammer_pickselect.jpg |thumb|left|200px| Switch to the Selection Tool.]]
[[Image:hammer_selectfence_sm.jpg |thumb|right|400px| Select the fence model in the 3D view by clicking it, and then click and drag the fence in one of the lower views to move it.]]
 
You may have noticed that the fence model is stuck half-way into the floor. We are going to move it up now.
 
Entities are moved just like brushes are:
 
Switch to the '''Selection Tool''' and click on the fence to select it.
 
Then select the fence model by clicking on it in the 3D view.
 
A box will appear around the model in all the views, showing that it has been selected.
 
To move something along the z axis (up or down), you’ll need to move it in one of the lower views (named ''front (y/z)'' or ''side (x/z)'').
 
Click inside the red bounding box in one of these 2D views, and then drag the fence upward until it’s closer to the floor.
 
<br clear="both">
 
[[Image:hammer_movefence_sm.jpg |thumb|right|400px| Decrease the size of the grid so the objects can be moved in finer steps.]]
 
You may find that you can’t quite line up the bottom of the model with the floor because the current size of the grid prevents it. It won’t matter that much if the fence sticks somewhat into the floor, but if you want it exactly aligned you will need to decrease the grid size:
 
# Click the '''Smaller Grid''' button in the grid toolbar in the upper left corner of the Hammer window.
{{note|Alternatively, you can use the shortcut key '''[''' to decrease the grid size, or the ''']''' key to increase the grid size}}
# Zoom in a bit on where the fence meets the floor, so that you can see better.
# Adjust the height of the fence.
# Repeat steps 1-3 until you're satisfied. (For a perfect fit, you will need to decrease the grid size to 2.)
 
[[Image:hammer_picksmgrid.jpg |thumb|left|400px| With the grid size smaller, the fence can be lined up with the floor.]]
 
<br clear="both">


You are finally done with the blueprints for this map.
[[File:Hammer_ModelBrowser_PickOildrum.jpg|thumb|right|400px|After having opened the browser, search for <code>oildrum</code>, choose the ''oildrum001'' model, and click ''OK''.]]


{{NavBar|Adding Light|Your First Map|Saving and Compiling}}
Pour un tonneau, tapez "<code>oildrum</code>" dans le champ filtre, et choisissez le modèle <code>oildrum001.mdl</code>, puis confimer.


{{otherlang:en}}
{{clr}}
{{otherlang:en:zh-cn|Adding Prop Models:zh-cn}}


[[Category:Level Design Tutorials]]
*Note : Pour leur placement il est conseillé de les surélever légèrement par rapport au sol.
{{ACategory|Level Design}}
{{ACategory|Tutorials}}

Latest revision as of 04:00, 12 July 2024

English (en)Français (fr)日本語 (ja)Polski (pl)Português do Brasil (pt-br)Русский (ru)中文 (zh)Translate (Translate)

Les 'Props' sont des modèles 3D créés à partir d'un programme de modélisation tel XSI Mod Tool(en) ou 3DS Max.

Il y a 3 types de props :

  • Static qui sont fixe.
  • Dynamic qui peuvent être animés ou bougé.
  • Physics qui peuvent être bougé et obeissent au lois de la physiques.

Vous verrez dans ce tuto comment placer deux types de ces entités.


Prop static

Choisissez prop_static(en) dans la liste des entitée.
Placez l'entitée prop_static sur le sol en cliquant dans la vue 3D.

Nous allons commencer par ajouter un prop static.

Tous les props sont des entités, et traité comme telle, vous pourrez donc les gérez avec le menu Entity Tool.

Ensuite choisissez prop_static(en) de la liste entité.

Placez le prop_static dans la map sur le sol dans la vue 3D.

Vous aurez pour résultat une petite boite rouge, car vous n'avez pas encore choisi votre modèle, juste le type de modèle par le choix de l'entité prop_static.

Nous allons maintenant choisir le modèle.

Cliquez sur Word model.

Prenez l'outil Selection et double-cliquez sur l'entité.

  1. Cliquez sur World Model
  2. Puis sur Browse..., le Model Browser ou explorateur de modèles va s'afficher.
Click a folder to change to that sub-directory.

Ne vous inquiétez pas si vous voyez le message “ERROR”, c'est juste que vous n'avez sélectionné aucun modèles.

Cliquez sur le dossier props_c17 pour lister les modèles à l'intérieur.

Click the fence01a model to select it, and then click OK to close the browser.

Il y a beaucoup de modèles comme pour les textures, nous nous servirons des filtres. Pour notre clôture tapez "fence" dans le champ filtre.

Puis choisissez le modèle fence01a.mdl, vous aurez un aperçu dans la vue en 3D. Puis faites Ok pour l'ajouter à votre entité prop_static.

Click the Apply button to confirm your changes.

Faite Apply. Votre entité doit avoir pris l'apparence de votre modèle.

Close the Object Properties dialog.
  • Note : Le placement des prop static est assez libre, vous pouvez les placer légèrement au dessus du sol, ou un peu en dessous cela ne causera aucun problème contrairement au prop physic plus contraignant.

Prop physics

Choose the appropriate physics prop entity.
Place the physics prop entity by clicking the floor in the 3D view.

Nous allons maintenant ajouter un modèle avec des propriétés physiques.

Sélectionnez Entity Tool.

Le type de l'entité prop_physics depend du jeu pour lequel la map est destinée.

Choisissez votre entité, placez la sur le sol et allez dans l'explorateur de modèles.

After having opened the browser, search for oildrum, choose the oildrum001 model, and click OK.

Pour un tonneau, tapez "oildrum" dans le champ filtre, et choisissez le modèle oildrum001.mdl, puis confimer.

  • Note : Pour leur placement il est conseillé de les surélever légèrement par rapport au sol.