Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SamuelTallet/SketchUp-PBR-Plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.4
Choose a base ref
...
head repository: SamuelTallet/SketchUp-PBR-Plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 14, 2018

  1. Update README.md

    SamuelTallet authored Jul 14, 2018
    Copy the full SHA
    9a43881 View commit details
  2. Update LISEZMOI.md

    SamuelTallet authored Jul 14, 2018
    2
    Copy the full SHA
    1b48a0a View commit details
  3. Copy the full SHA
    c5ab8b3 View commit details
  4. Copy the full SHA
    b0298b9 View commit details

Commits on Nov 19, 2019

  1. Copy the full SHA
    3440092 View commit details
  2. Fix French translation.

    SamuelTallet committed Nov 19, 2019
    Copy the full SHA
    4562f00 View commit details
  3. Update LISEZMOI.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    7dbed01 View commit details
  4. Update README.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    e62410e View commit details
  5. Update README.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    c72b921 View commit details
  6. Update LISEZMOI.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    bcd0d95 View commit details
  7. Copy the full SHA
    9724902 View commit details
  8. Update aide.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    38d18ff View commit details
  9. Update help.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    32c5093 View commit details
  10. Update aide.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    c672985 View commit details
  11. Copy the full SHA
    efea195 View commit details
  12. Update README.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    cfb0357 View commit details
  13. Update LISEZMOI.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    7eaa5e9 View commit details
  14. Update LISEZMOI.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    6334073 View commit details
  15. Update README.md

    SamuelTallet authored Nov 19, 2019
    Copy the full SHA
    853792e View commit details

Commits on Nov 21, 2019

  1. Update README.md

    SamuelTallet authored Nov 21, 2019
    Copy the full SHA
    23008ee View commit details
  2. Update LISEZMOI.md

    SamuelTallet authored Nov 21, 2019
    Copy the full SHA
    ac61fce View commit details
  3. Copy the full SHA
    b76cb7d View commit details
  4. Update help.md

    SamuelTallet authored Nov 21, 2019
    Copy the full SHA
    86ce3ef View commit details
  5. Update aide.md

    SamuelTallet authored Nov 21, 2019
    Copy the full SHA
    9412d97 View commit details

Commits on Nov 22, 2019

  1. Copy the full SHA
    6d5a029 View commit details
  2. Copy the full SHA
    2389e0b View commit details
  3. Fix code indentation.

    SamuelTallet committed Nov 22, 2019
    Copy the full SHA
    0096393 View commit details
  4. Update help docs.

    SamuelTallet committed Nov 22, 2019
    Copy the full SHA
    b54b519 View commit details

Commits on Nov 23, 2019

  1. Copy the full SHA
    7d208a1 View commit details
  2. Update help.md

    SamuelTallet authored Nov 23, 2019
    Copy the full SHA
    d5f40fb View commit details
  3. Update aide.md

    SamuelTallet authored Nov 23, 2019
    Copy the full SHA
    3b7fdc8 View commit details
  4. Update help.md

    SamuelTallet authored Nov 23, 2019
    Copy the full SHA
    f0fafba View commit details
  5. Copy the full SHA
    0be91ae View commit details
  6. Copy the full SHA
    20314f5 View commit details
  7. Copy the full SHA
    d2f1516 View commit details

Commits on Nov 24, 2019

  1. Auto-check for updates.

    SamuelTallet committed Nov 24, 2019
    Copy the full SHA
    1caff02 View commit details
  2. Update version number.

    SamuelTallet committed Nov 24, 2019
    Copy the full SHA
    785fbd6 View commit details
  3. Update README.md

    SamuelTallet authored Nov 24, 2019
    Copy the full SHA
    2e65a10 View commit details
  4. Update README.md

    SamuelTallet authored Nov 24, 2019
    Copy the full SHA
    6ffb970 View commit details
  5. Update LISEZMOI.md

    SamuelTallet authored Nov 24, 2019
    Copy the full SHA
    5b9ca24 View commit details
  6. Update LISEZMOI.md

    SamuelTallet authored Nov 24, 2019
    Copy the full SHA
    03c8478 View commit details
  7. Conform code to Rubocop.

    SamuelTallet committed Nov 24, 2019
    Copy the full SHA
    c4ec683 View commit details
  8. Fix broken code.

    SamuelTallet committed Nov 24, 2019
    Copy the full SHA
    adee29e View commit details
  9. Secure a Ruby method.

    SamuelTallet committed Nov 24, 2019
    Copy the full SHA
    b515e51 View commit details
  10. Restructure Ruby code.

    SamuelTallet committed Nov 24, 2019
    Copy the full SHA
    3eac280 View commit details
  11. Update LISEZMOI.md

    SamuelTallet authored Nov 24, 2019
    Copy the full SHA
    6b3a990 View commit details
  12. Update aide.md

    SamuelTallet authored Nov 24, 2019
    Copy the full SHA
    f510e43 View commit details

Commits on Nov 25, 2019

  1. Copy the full SHA
    bba0048 View commit details
  2. Copy the full SHA
    f7b8bc2 View commit details
  3. Copy the full SHA
    2301926 View commit details
Showing with 80,280 additions and 83,595 deletions.
  1. +20 −19 docs/LISEZMOI.md
  2. +21 −20 docs/README.md
  3. +19 −6 docs/aide.md
  4. +19 −6 docs/help.md
  5. BIN docs/screenshots/pbr-material-editor-in-english.png
  6. BIN docs/screenshots/pbr-material-editor-in-french.png
  7. +22 −2 source/.rubocop.yml
  8. +8 −8 source/pbr.rb
  9. +217 −0 source/pbr/HTML Dialogs/lib/drooltip.css
  10. +754 −0 source/pbr/HTML Dialogs/lib/drooltip.js
  11. +1 −1 source/pbr/HTML Dialogs/lib/image-channel-packer.js
  12. +0 −21 source/pbr/HTML Dialogs/lib/tipfy/LICENSE
  13. +0 −14 source/pbr/HTML Dialogs/lib/tipfy/tipfy.css
  14. +0 −74 source/pbr/HTML Dialogs/lib/tipfy/tipfy.js
  15. +0 −1 source/pbr/HTML Dialogs/lib/tipfy/tipfy.min.css
  16. +0 −1 source/pbr/HTML Dialogs/lib/tipfy/tipfy.min.js
  17. +17 −3 source/pbr/HTML Dialogs/material-editor.css
  18. +8 −2 source/pbr/HTML Dialogs/material-editor.js
  19. +55 −25 source/pbr/HTML Dialogs/material-editor.rhtml
  20. +42 −30 source/pbr/Resources/fr/pbr.strings
  21. BIN source/pbr/Toolbar Icons/aal.pdf
  22. +101 −0 source/pbr/Toolbar Icons/aal.svg
  23. BIN source/pbr/Viewport App/assets/animated-loader.gif
  24. BIN source/pbr/Viewport App/assets/equirectangular.hdr
  25. +0 −1 source/pbr/Viewport App/assets/sketchup-locale.json
  26. +0 −1 source/pbr/Viewport App/assets/sketchup-model.gltf
  27. BIN source/pbr/Viewport App/assets/skybox/negx.jpg
  28. BIN source/pbr/Viewport App/assets/skybox/negy.jpg
  29. BIN source/pbr/Viewport App/assets/skybox/negz.jpg
  30. BIN source/pbr/Viewport App/assets/skybox/posx.jpg
  31. BIN source/pbr/Viewport App/assets/skybox/posy.jpg
  32. BIN source/pbr/Viewport App/assets/skybox/posz.jpg
  33. +0 −7 source/pbr/Viewport App/assets/skybox/rename.bat
  34. +0 −22 source/pbr/Viewport App/lib/aframe-environment-component/LICENSE
  35. +0 −1,351 source/pbr/Viewport App/lib/aframe-environment-component/aframe-environment-component.js
  36. +0 −2 source/pbr/Viewport App/lib/aframe-environment-component/aframe-environment-component.min.js
  37. +0 −8 source/pbr/Viewport App/lib/aframe-expose-renderer.js
  38. +0 −21 source/pbr/Viewport App/lib/aframe-extras/LICENSE
  39. +0 −44 source/pbr/Viewport App/lib/aframe-extras/cube-env-map.js
  40. +0 −22 source/pbr/Viewport App/lib/aframe-gamepad-controls/LICENSE
  41. +0 −472 source/pbr/Viewport App/lib/aframe-gamepad-controls/aframe-gamepad-controls.js
  42. +0 −1 source/pbr/Viewport App/lib/aframe-gamepad-controls/aframe-gamepad-controls.min.js
  43. +0 −1 source/pbr/Viewport App/lib/aframe-orbit-controls/LICENSE
  44. +0 −1,233 source/pbr/Viewport App/lib/aframe-orbit-controls/aframe-orbit-controls.js
  45. +0 −1 source/pbr/Viewport App/lib/aframe-orbit-controls/aframe-orbit-controls.min.js
  46. +0 −21 source/pbr/Viewport App/lib/aframe/LICENSE
  47. +0 −79,302 source/pbr/Viewport App/lib/aframe/aframe-v0.8.2.js
  48. +0 −422 source/pbr/Viewport App/lib/aframe/aframe-v0.8.2.min.js
  49. +2,693 −0 source/pbr/Viewport App/lib/claygl-advanced-renderer.js
  50. +2 −0 source/pbr/Viewport App/lib/claygl-advanced-renderer.min.js
  51. +35,868 −0 source/pbr/Viewport App/lib/claygl.js
  52. +14 −0 source/pbr/Viewport App/lib/claygl.min.js
  53. +35,881 −0 source/pbr/Viewport App/lib/claygl.modded.js
  54. +2,797 −0 source/pbr/Viewport App/lib/localforage.js
  55. +7 −0 source/pbr/Viewport App/lib/localforage.min.js
  56. +44 −33 source/pbr/Viewport App/viewport.css
  57. +17 −91 source/pbr/Viewport App/viewport.html
  58. +377 −117 source/pbr/Viewport App/viewport.js
  59. +21 −7 source/pbr/app_observer.rb
  60. +41 −3 source/pbr/chromium.rb
  61. +2 −2 source/pbr/github.rb
  62. +188 −9 source/pbr/gltf.rb
  63. +103 −0 source/pbr/gltf_lights.rb
  64. +1 −1 source/pbr/html_dialogs.rb
  65. +48 −0 source/pbr/light.rb
  66. +20 −6 source/pbr/load.rb
  67. +40 −14 source/pbr/material_editor.rb
  68. +76 −88 source/pbr/menu.rb
  69. +59 −0 source/pbr/model_observer.rb
  70. +32 −23 source/pbr/nil_material_fix.rb
  71. +178 −0 source/pbr/shapes.rb
  72. +54 −0 source/pbr/sun_observer.rb
  73. +46 −15 source/pbr/toolbar.rb
  74. +95 −0 source/pbr/updates.rb
  75. +115 −21 source/pbr/viewport.rb
  76. +74 −0 source/pbr/wcr_light_fix.rb
  77. +83 −0 source/pbr/wfn_texture_fix.rb
39 changes: 20 additions & 19 deletions docs/LISEZMOI.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
Extension RBP pour SketchUp
===========================
Extension RBP gratuite pour SketchUp
====================================

💅 Ajoutez des reflets et des reliefs à vos modèles SketchUp. 🏃‍♀️ Obtenez un rendu en temps réel. ✈️ Exportez en 2D/3D.
💅 Ajoutez des reflets, reliefs et lumières à vos modèles SketchUp. 🏃‍♀️ Obtenez un rendu en temps réel. ✈️ Exportez en 2D/3D.

Démonstrations
--------------

Un modèle SketchUp rendu `sans` l'extension RBP | Le même modèle SketchUp rendu `avec` l'extension RBP
:--- | :---
![Un modèle SketchUp rendu sans l'extension RBP](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/demos/a-sketchup-model-rendered-without-pbr-extension.png) | ![Le même modèle SketchUp rendu avec l'extension RBP](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/demos/same-sketchup-model-rendered-with-pbr-extension.png)
![Un modèle SketchUp rendu sans l'extension RBP](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/demos/a-sketchup-model-rendered-without-pbr-extension.png) | ![Le même modèle SketchUp rendu avec l'extension RBP](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/demos/same-sketchup-model-rendered-with-pbr-extension.png)

Un récif virtuel rendu `avec` l'extension SketchUp RBP.
--- |
![Récif](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/demos/a-virtual-reef-rendered-with-sketchup-pbr-extension.jpg)
![Récif](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/demos/a-virtual-reef-rendered-with-sketchup-pbr-extension.jpg)

Captures d'écran
----------------

![Interface de modif. des matériaux RBP](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/screenshots/pbr-material-editor-in-french.png)
![Interface de modif. des matériaux RBP](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/screenshots/pbr-material-editor-in-french.png)

Installation
------------
Documentation
-------------

### Comment installer ce plugin ?

1. S'assurer d'avoir SketchUp 2017 ou une version plus récente installée.
2. Télécharger le plugin requis : [glTF Export](https://extensions.sketchup.com/fr/content/gltf-exporter).
3. Télécharger le dernier plugin RBP au format .RBZ depuis la page [Releases](https://github.com/SamuelTS/SketchUp-PBR-Plugin/releases/) ou le [SketchUcation PluginStore](https://sketchucation.com/pluginstore?pauthor=samuel_t).
4. Installer les deux plugins en suivant ce [guide](https://help.sketchup.com/article/3000263).
3. Télécharger le dernier plugin RBP depuis le [SketchUcation PluginStore](https://sketchucation.com/pluginstore?pln=pbr).
4. Installer les deux plugins en suivant ce [guide](https://www.youtube.com/watch?v=tyM5f81eRno).

Maintenant, vous devriez avoir dans SketchUp un menu "Rendu basé sur la physique" et une barre d'outils "PBR". 👍
Maintenant, vous devriez avoir dans SketchUp un menu "Rendu basé sur la physique" et une barre d'outils "RBP". 👍

Optionnel. Installer la bibliothèque de matériaux PBR :

5. Télécharger *sketchup_pbr_material_lib.zip* depuis la page [Releases](https://github.com/SamuelTS/SketchUp-PBR-Plugin/releases/).
6. Si vous utilisez macOS, extraire le contenu du *.zip* vers ce dossier : *~/Library/Application Support/SketchUp `2017`/SketchUp/Materials*
5. Télécharger *sketchup_pbr_material_lib.zip* depuis ce [lien](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/releases/download/v1.4.5/sketchup_pbr_material_lib.zip).
6. Si vous utilisez macOS, extraire le contenu du *.zip* vers ce dossier : *~/Library/Application Support/SketchUp `2017`/SketchUp/Materials*<br>
Si vous utilisez Windows, extraire le contenu du *.zip* vers ce dossier : *%AppData%\SketchUp\SketchUp `2017`\SketchUp\Materials*
7. Redémarrer SketchUp.

Profitez de plus de 90 matériaux PBR prêts à l'emploi dans SketchUp ! 😊
Profitez de cents matériaux PBR prêts à l'emploi dans SketchUp ! 😊

Documentation
-------------
### J'ai besoin de plus d'aide.

Un [document d'aide](https://github.com/SamuelTS/SketchUp-PBR-Plugin/blob/master/docs/aide.md) est disponible.
Un [document d'aide](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/blob/master/docs/aide.md) est disponible.

Remerciements
-------------

Le projet du plugin RBP n'aurait pas abouti sans : [SketchUp](https://www.sketchup.com), [glTF](https://www.khronos.org/gltf/), [glTF Exporter](https://extensions.sketchup.com/fr/content/gltf-exporter), [Chromium](https://www.chromium.org/) et [A-Frame](https://aframe.io/).
Le projet du plugin RBP n'aurait pas abouti sans : [SketchUp](https://www.sketchup.com), [glTF](https://www.khronos.org/gltf/), [glTF Exporter](https://extensions.sketchup.com/fr/content/gltf-exporter), [Chromium](https://www.chromium.org/) et [ClayGL](http://claygl.xyz/).

Droits d'auteur
---------------

© 2018 Samuel Tallet-Sabathé
© 2021 Samuel Tallet
41 changes: 21 additions & 20 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
<a href="https://github.com/SamuelTS/SketchUp-PBR-Plugin/blob/master/docs/LISEZMOI.md">Version française <img height="16" width="16" src="https://emojipedia-us.s3.amazonaws.com/thumbs/60/google/119/flag-for-france_1f1eb-1f1f7.png"></a>
<a href="https://github.com/SamuelTallet/SketchUp-PBR-Plugin/blob/master/docs/LISEZMOI.md">Version française <img height="16" width="16" src="https://emojipedia-us.s3.amazonaws.com/thumbs/60/google/119/flag-for-france_1f1eb-1f1f7.png"></a>

PBR extension for SketchUp
==========================
Free PBR extension for SketchUp
===============================

💅 Add reflections and (normal) reliefs to your SketchUp models. 🏃‍♀️ Render in real-time. ✈️ Export to 2D or 3D.
💅 Add reflections, reliefs and lights to your SketchUp models. 🏃‍♀️ Render in real-time. ✈️ Export to 2D or 3D.

Demos
-----

A SketchUp model rendered `without` PBR extension | Same SketchUp model rendered `with` PBR extension
:--- | :---
![A SketchUp model rendered without PBR extension](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/demos/a-sketchup-model-rendered-without-pbr-extension.png) | ![Same SketchUp model rendered with PBR extension](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/demos/same-sketchup-model-rendered-with-pbr-extension.png)
![A SketchUp model rendered without PBR extension](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/demos/a-sketchup-model-rendered-without-pbr-extension.png) | ![Same SketchUp model rendered with PBR extension](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/demos/same-sketchup-model-rendered-with-pbr-extension.png)

A virtual reef rendered `with` SketchUp PBR extension.
--- |
![Reef](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/demos/a-virtual-reef-rendered-with-sketchup-pbr-extension.jpg)
![Reef](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/demos/a-virtual-reef-rendered-with-sketchup-pbr-extension.jpg)

Screenshots
-----------

![PBR Material Editor](https://github.com/SamuelTS/SketchUp-PBR-Plugin/raw/master/docs/screenshots/pbr-material-editor-in-english.png)
![PBR Material Editor](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/raw/master/docs/screenshots/pbr-material-editor-in-english.png)

Installation
------------
Documentation
-------------

### How to install this plugin?

1. Be sure to have SketchUp 2017 or newer version installed.
2. Download required plugin: [glTF Export](https://extensions.sketchup.com/content/gltf-exporter).
3. Download latest PBR plugin in .RBZ format from [Releases](https://github.com/SamuelTS/SketchUp-PBR-Plugin/releases/) or the [SketchUcation PluginStore](https://sketchucation.com/pluginstore?pauthor=samuel_t).
4. Install both plugins following this [guide](https://help.sketchup.com/article/3000263).
2. Download required plugin: [glTF Export](http://extensions.sketchup.com/en/content/gltf-exporter).
3. Download latest PBR plugin from the [SketchUcation PluginStore](https://sketchucation.com/pluginstore?pln=pbr).
4. Install both plugins following this [guide](https://www.youtube.com/watch?v=tyM5f81eRno).

Now, you should have in SketchUp a "Physically-Based Rendering" menu and a "PBR" toolbar. 👍

Optional. Install PBR Material Library:

5. Download *sketchup_pbr_material_lib.zip* from [Releases](https://github.com/SamuelTS/SketchUp-PBR-Plugin/releases/).
6. If you use macOS, extract *.zip* contents to this folder: *~/Library/Application Support/SketchUp `2017`/SketchUp/Materials*
5. Download *sketchup_pbr_material_lib.zip* from this [link](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/releases/download/v1.4.5/sketchup_pbr_material_lib.zip).
6. If you use macOS, extract *.zip* contents to this folder: *~/Library/Application Support/SketchUp `2017`/SketchUp/Materials*<br>
If you use Windows, extract *.zip* contents to this folder: *%AppData%\SketchUp\SketchUp `2017`\SketchUp\Materials*
7. Restart SketchUp.

Enjoy more than 90 ready-to-use PBR materials in SketchUp! 😊
Enjoy one hundred ready-to-use PBR materials in SketchUp! 😊

Documentation
-------------
### I need more help.

A [help document](https://github.com/SamuelTS/SketchUp-PBR-Plugin/blob/master/docs/help.md) is available.
A [help document](https://github.com/SamuelTallet/SketchUp-PBR-Plugin/blob/master/docs/help.md) is available.

Thanks
------

PBR plugin project would not have succeeded without: [SketchUp](https://www.sketchup.com), [glTF](https://www.khronos.org/gltf/), [glTF Exporter](https://extensions.sketchup.com/content/gltf-exporter), [Chromium](https://www.chromium.org/) and [A-Frame](https://aframe.io/).
PBR plugin project would not have succeeded without: [SketchUp](https://www.sketchup.com), [glTF](https://www.khronos.org/gltf/), [glTF Exporter](http://extensions.sketchup.com/en/content/gltf-exporter), [Chromium](https://www.chromium.org/) and [ClayGL](http://claygl.xyz/).

Copyright
---------

© 2018 Samuel Tallet-Sabathé
© 2021 Samuel Tallet
25 changes: 19 additions & 6 deletions docs/aide.md
Original file line number Diff line number Diff line change
@@ -5,11 +5,19 @@ Aide de l'extension SketchUp RBP
Dans SketchUp
-------------

### Problème connu et solutions de contournement
### Problème connu et solution de contournement

Problème | Solutions de contournement
Problème | Solution de contournement
:--- | :---
L'export glTF a échoué. | ① Réessayez mais quand l'extension SketchUp RBP demande : "Propager les matériaux à l'ensemble du modèle ?", répondez : "Oui". ② Assurez-vous que **toutes** les images des textures sont au format JPEG ou PNG. Le cas échéant, convertissez-les avec un outil tel que [celui-ci](https://image.online-convert.com/fr/convertir-en-png) puis réimportez-les dans SketchUp.
L'export glTF a échoué. | Assurez-vous que **toutes** les images des textures sont au format JPEG ou PNG. Le cas échéant, convertissez-les avec un outil tel que [celui-ci](https://image.online-convert.com/fr/convertir-en-png) puis réimportez-les dans SketchUp.

### Comment ajouter une lumière au modèle ?

1. Cliquez sur "Ajouter une lumière artificielle" dans la barre d'outils ou le menu RBP.
2. La sphère créée est votre lumière. Déplacez-la. Peignez-la avec une couleur.
3. Rouvrez la fenêtre de visualisation RBP et voilà !

Vous pouvez ajouter plusieurs lumières au modèle.

### Comment désinstaller l'extension RBP ?

@@ -22,12 +30,17 @@ Dans la fenêtre de visualisation RBP

Problème | Solution de contournement
:--- | :---
L'arrière-plan de la texture est blanc au lieu d'être transparent. | Ouvrez l'interface de modification des matériaux RBP ("Extensions" > "Rendu basé sur la physique" > "Modifier les matériaux..."). Sélectionnez le matériau. Réglez "Mode alpha" sur "Combiné avec l'arrière-plan".
La texture est complètement opaque alors que j'ai réglé l'opacité sur *n* %. | Avec votre logiciel de retouche photo préféré, réglez l'opacité **directement** sur l'image de la texture. Utilisez le PNG comme format d'échange pour préserver l'opacité. Réimportez l'image de la texture dans SketchUp.
La texture est incorrecte. | Retournez la face (arrière) où la texture est appliquée. Peignez la texture sur la face (avant).
La texture est incorrecte. | Retournez la face arrière où la texture est appliquée. Peignez la texture sur la face avant.<br> Si le problème persiste : triangulez **puis** mappez l'entité avec le plugin [SketchUV](https://extensions.sketchup.com/fr/content/sketchuv).

### Comment contrôler la caméra de la scène ?

Contrôlez la caméra de la scène avec une souris :

Orbitez en traînant le **bouton de gauche**. Déplacez-vous en panoramique en traînant le **bouton de droite**. Zoomez avec la **molette**. Zoomez plus rapidement en maintenant le **bouton du milieu**.
Orbitez en traînant le **bouton du milieu**. Déplacez-vous en panoramique en traînant le **bouton de gauche**. Zoomez avec la **molette**.

Il est également possible de contrôler la caméra avec une manette de jeu standard.

### Comment exporter le rendu vers une image ?

Faites un clic droit n'importe où puis cliquez sur "Enregistrer l'image sous...".
25 changes: 19 additions & 6 deletions docs/help.md
Original file line number Diff line number Diff line change
@@ -5,11 +5,19 @@ SketchUp PBR plugin help
In SketchUp
-----------

### Known issue and workarounds
### Known issue and workaround

Issue | Workarounds
Issue | Workaround
:--- | :---
glTF export failed. | ① Retry but when PBR plugin asks: "Propagate materials to whole model?", answer: "Yes". ② Be sure **all** texture images are in JPEG or PNG format. Else, convert them with a tool like [this](https://image.online-convert.com/convert-to-png) then reimport them in SketchUp.
glTF export failed. | Be sure **all** texture images are in JPEG or PNG format. Else, convert them with a tool like [this](https://image.online-convert.com/convert-to-png) then reimport them in SketchUp.

### How to add a light to model?

1. Click on "Add an Artificial Light" in PBR Toolbar or Menu.
2. Sphere created is your light. Move it. Paint it with a color.
3. Reopen PBR Viewport and voilà!

You can add many lights to model.

### How to uninstall PBR plugin?

@@ -22,12 +30,17 @@ In PBR Viewport

Issue | Workaround
:--- | :---
Texture background is white instead of being transparent. | Open PBR Material Editor ("Extensions" > "Physically-Based Rendering" > "Edit Materials..."). Select material. Set "Alpha mode" to "Combined with background".
Texture is fully opaque whereas I set opacity to *n* %. | With your preferred photo editing software, set opacity **directly** to texture image. Use PNG as exchange format to preserve opacity. Reimport texture image in SketchUp.
Texture is incorrect. | Reverse (back) face where texture is applied. Paint texture on (front) face.
Texture is incorrect. | Reverse back face where texture is applied. Paint texture on front face.<br> If problem persists: triangulate **then** map entity with [SketchUV](https://extensions.sketchup.com/content/sketchuv) plugin.

### How to control scene camera?

Control scene camera with a mouse:

Orbit with **left drag**. Pan with **right drag**. Zoom with **wheel**. Zoom more quickly by **holding middle** button.
Orbit with **middle drag**. Pan with **left drag**. Zoom with **wheel**.

It's also possible to control camera with a standard gamepad.

### How to export render to an image?

Do a right click anywhere then click on "Save image as ...".
Binary file modified docs/screenshots/pbr-material-editor-in-english.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/pbr-material-editor-in-french.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 22 additions & 2 deletions source/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
# See: https://github.com/bbatsov/rubocop If you want to know what is RuboCop.

AllCops:
TargetRubyVersion: 2.2
TargetRubyVersion: 2.3
Exclude:
- 'pbr/shapes.rb'

Layout:
Enabled: false

Style/AsciiComments:
Style:
Enabled: false

Naming/RescuedExceptionsVariableName:
PreferredName: exception

Metrics/AbcSize:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false

Metrics/MethodLength:
Max: 25

Metrics/ClassLength:
Max: 200
16 changes: 8 additions & 8 deletions source/pbr.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Physically-Based Rendering extension for SketchUp 2017 or newer.
# Copyright: © 2018 Samuel Tallet-Sabathé <samuel.tallet@gmail.com>
# Copyright: © 2020 Samuel Tallet <samuel.tallet arobase gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@
# PBR plugin namespace.
module PBR

VERSION = '1.4.4'.freeze
VERSION = '1.5.9'.freeze

# Load translation if it's available for current locale.
TRANSLATE = LanguageHandler.new('pbr.strings')
@@ -44,13 +44,13 @@ module PBR
extension = SketchupExtension.new(NAME, 'pbr/load.rb')

extension.version = VERSION
extension.creator = 'Samuel Tallet-Sabathé'
extension.copyright = 2018 #{extension.creator}"
extension.creator = 'Samuel Tallet'
extension.copyright = 2020 #{extension.creator}"

features = [
TRANSLATE['Add reflects and reliefs to your SketchUp models.'],
TRANSLATE['Add reflects, reliefs and lights to your SketchUp models.'],
TRANSLATE['Get a render in seconds.'],
TRANSLATE['Control camera and atmosphere in real-time.'],
TRANSLATE['Control camera in real-time.'],
TRANSLATE['Export result to image or 3D object.']
]

@@ -69,7 +69,7 @@ def self.required_plugin_exist?
Centaur.const_get(:GltfExporter)
true

rescue NameError => _error
rescue NameError => _exception
false

end
@@ -79,7 +79,7 @@ def self.open_required_plugin_page

UI.messagebox(TRANSLATE['Please install required plugin: glTF Export.'])

UI.openURL('https://extensions.sketchup.com/content/gltf-exporter')
UI.openURL('http://extensions.sketchup.com/en/content/gltf-exporter')

end

Loading