1 / 16

GRAPHISME PAR ORDINATEUR

GRAPHISME PAR ORDINATEUR. SIF-1032. Contenu du cours 4. Transformation et animation simple avec XNA Modélisation, chargement de modèle d’objets 3D Transformations 3D: exemple Transformations de modèle 3D (world) Transformation de visualisation (view)

blake-greer
Download Presentation

GRAPHISME PAR ORDINATEUR

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GRAPHISME PAR ORDINATEUR SIF-1032

  2. Contenu du cours 4 • Transformation et animation simple avec XNA • Modélisation, chargement de modèle d’objets 3D • Transformations 3D: exemple • Transformations de modèle 3D (world) • Transformation de visualisation (view) • Transformation de projections (projection)

  3. Transformation et animation simple avec XNA • Création d’un objet Model pour stocker un modèle(s) 3D • Chargement de modèle(s) dans la méthode LoadContent() • Création des matrices world, view, projection

  4. Transformation et animation simple avec XNA • Affichage du modèle(s) 3D dans la méthode Draw()

  5. Transformation et animation simple avec XNA • Affichage du modèle(s) 3D dans la méthode Draw()

  6. Transformation et animation simple avec XNA Affichage du modèle(s) 3D dans la méthode Draw()

  7. Transformation et animation simple avec XNA • Création d’un objet Vector3 pour stocker la position (x, y, z) d’un modèle 3D • Initialisation de la variable position dans la méthode LoadContent() (peut aussi être initialisée ailleurs) • Mise-à-jour de la position dans la méthode Update() appelée par défaut 30 fois/sec (translation de 0.01 dans la direction y)

  8. Transformation et animation simple avec XNA • Mise-à-jour après la variable position dans la méthode Update() de la matrice du monde (world) permettant de faire déplacer notre modèle 3D dans la scène

  9. Transformation et animation simple avec XNA • Création d’un objet float pour stocker l’angle de rotation d’un modèle 3D • Initialisation de la variable angle dans la méthode LoadContent() (peut aussi être initialisée ailleurs) • Mise-à-jour de l’angle de rotation dans la méthode Update() appelée par défaut 30 fois/sec (rotation de 0.03 radian par rapport à l’axe y) • Mise-à-jour dans la méthode Update() de la matrice du monde (world)

  10. Transformation et animation simple avec XNA • Animation du modèle 3D

  11. Transformation et animation simple avec XNA Animation du modèle 3D

  12. Transformation et animation simple avec XNA • Code du projet (classe Game1)

  13. Transformation et animation simple avec XNA • Code du projet (classe Game1 …)

  14. Transformation et animation simple avec XNA • Code du projet (classe Game1 …)

  15. Transformation et animation simple avec XNA • Code du projet (classe Game1 …)

  16. Projet de session • Constitution des équipes • Choix du projet (animation, image de synthèse, objets impliqués) • Choix du modèle de représentation des objets • Répartition initiale des tâches (important) • Premier échéancier (12 mars 2012) • objets modélisés • visualisation des objets • animation simple dans l’espace

More Related