[Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

[Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby fredo6 » Wed Oct 16, 2019 8:40 pm



ColorByAltitude is a standalone script (for SU2018 and above) which is part of FredoTools. It paints faces of the selection (free faces, groups, components) with colors based on their altitude from a Color ramp which is configurable. ColorByAltitude creates a single texture to paint all faces. You can optionally generate isocontours, a legend and a 2D color map.

ColorByAltitude - Main dialog.png






ColorByAltitude is installed as part of FredoTools 3.7 and above.

See the main post for FredoTools for installation.

IMPORTANT: ColorByAltitude is available for SU2018 and above only. Note that it will not appear in the menu or toolbar for earlier versions of Sketchup.




No documentation, but you can have a look at the Quick Start section and the Video below


  • SU Versions: SU2016 and above
  • Platforms: Windows and Mac
  • Languages: English, French
  • Menus: by default, ColorByAltitude is installed in Tools > FredoTools. It also appears in the Contextual menu when you select a group or component.
  • Icon toolbar: Fredo6 Tools. There is only a single icon. By default, it is not shown. You need to go to the Default Parameters… dialog of FredoTools to enable the icon.
    ColorByAltitude_32.png
  • The plugin is free, for private and commercial usage.




FredoTools::ColorByAltitude - Quick Introduction







Color Ramp

[to be completed]




ColorByAltitude 1.0a – 16 Oct 19: Initial public release in FredoTools 3.6a
4
Last edited by fredo6 on Sat Nov 02, 2019 10:23 am, edited 7 times in total.
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby Pixero » Wed Oct 16, 2019 9:33 pm

Looking great.
How is the colors applied to the surface? Is it projected from the x or y direction?
I can see this useful as a mask for different terrain textures.
Would it be hard to also add color by slope and a mix of both?
0
User avatar
Pixero 
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby fredo6 » Wed Oct 16, 2019 9:45 pm

Pixero wrote:Looking great.
How is the colors applied to the surface? Is it projected from the x or y direction?
I can see this useful as a mask for different terrain textures.
Would it be hard to also add color by slope and a mix of both?

Colors are applied in the Z direction (mapping Z to V), so it's not really a planar projection.

The technique of using a single texture for all faces only works when there is an absolute criteria, here the altitude, which is defined in each point of the face.

It won't work for slope, since faces can have different slopes in any direction (in addition to the difficulty to define a 'sliding' slope for a face).

For masking, this is a limitation of Sketchup which cannot 'mix' textures. You have to do that in an external editor. In theory, I think I could do it from within Sketchup with the API, but it's going to be damned long for the calculation, as the plugin would have to calculate the individual mixed texture for every face. And of course, you'll get as many material as faces (which can be numerous in terrain). So not really something to keep a light model.
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby Dave R » Wed Oct 16, 2019 10:28 pm

Very nice, sir. A useful extension for sure.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby pilou » Thu Oct 17, 2019 12:03 am

Fresh air of the altitude! :fro:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby Pixero » Thu Oct 17, 2019 7:16 am

That makes sense. I was thinking of using it as a mask in rendering software where you can layer materials.
fredo6 wrote:
Pixero wrote:Looking great.
How is the colors applied to the surface? Is it projected from the x or y direction?
I can see this useful as a mask for different terrain textures.
Would it be hard to also add color by slope and a mix of both?

Colors are applied in the Z direction (mapping Z to V), so it's not really a planar projection.

The technique of using a single texture for all faces only works when there is an absolute criteria, here the altitude, which is defined in each point of the face.

It won't work for slope, since faces can have different slopes in any direction (in addition to the difficulty to define a 'sliding' slope for a face).

For masking, this is a limitation of Sketchup which cannot 'mix' textures. You have to do that in an external editor. In theory, I think I could do it from within Sketchup with the API, but it's going to be damned long for the calculation, as the plugin would have to calculate the individual mixed texture for every face. And of course, you'll get as many material as faces (which can be numerous in terrain). So not really something to keep a light model.
0
User avatar
Pixero 
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby cotty » Thu Oct 17, 2019 7:58 pm

fredo6 wrote:since faces can have different slopes in any direction


I think the most useful slope would be the maximum value for each face, something like the magnitude of the gradient: "it has the direction of fastest increase of the function at P, and its magnitude is the rate of increase in that direction." [Wikipedia]
0
User avatar
cotty 
Top SketchUcator
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby fredo6 » Thu Oct 17, 2019 8:23 pm

cotty wrote:I think the most useful slope would be the maximum value for each face, something like the magnitude of the gradient: "it has the direction of fastest increase of the function at P, and its magnitude is the rate of increase in that direction." [Wikipedia]

In fact I know more or less what to do to manage a continuous mapping of slope in any point of a face, since we compute the local gradient. The issue is that I cannot map a single texture for all faces, but would need individual texture by face. So it's a little bit overkill for the problem, which is mainly to visualize technicall the low and high slopes.
1
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.0 - 16 Oct 19

Postby pilou » Sat Nov 02, 2019 2:33 am

0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby fredo6 » Sat Nov 02, 2019 10:28 am

NEW RELEASE: ColorByAltitude 1.1e - 02 Nov 19

ColorByAltitude 1.1a includes cosmetic adjustments and bug fixing.

It is available as of FredoTools v3.7a.

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

See FredoTools plugin home page for Download.

See also main post of this thread for User Discussion.

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby zooen » Wed Mar 18, 2020 4:46 pm

Bonjour,

Je ne comprends pas, je n'ai pas la rampe de couleurs sur la gauche de la boîte de dialogue. Dans la vidéo elle est présente dès l'ouverture de la boîte de dialogue. J'ai désinstallé puis réinstallé FredoTools_v3.8c et il me manque aussi des icônes dans le lanceur FredoTools.

Quelqu'un a-t-il une réponse?

I don't understand, I don't have the color ramp on the left of the dialog. In the video it is present from the opening of the dialog box. I uninstalled and then reinstalled FredoTools_v3.8c and I'm also missing icons in the FredoTools launcher.

Anyone have an answer?
0

zooen 
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby fredo6 » Wed Mar 18, 2020 9:20 pm

Which version of Windows?

Do you have the latest version of LibFredo6 (v9.5k)?

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby zooen » Wed Mar 18, 2020 9:41 pm

Bonsoir Fredo,

Merci de répondre aussi rapidement. Je suis bien à jour: 9.5k et je suis sous Win 10 Pro.

Zooen
0

zooen 
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby fredo6 » Thu Mar 19, 2020 12:02 am

There seems to be a problem with the SVG files in the default web browser (and also a problem for supporting Canvas). With Windows 10, this should be OK, unless you did something to the browser and still have an old version of IE.

Also, with LibFredo6 v9.5k, you should have a small eye icon on the right of each line.

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby zooen » Thu Mar 19, 2020 10:28 am

Thank you for the answer,i do not use IE as a browser!

I look at that and come back to you to inform you of the rest.

Merci pour la réponse, je n'utilise pas IE comme navigateur!
je regarde ça et reviens vers toi pour t'informer de la suite.
Zooen
0

zooen 
 

Re: [Plugin] FredoTools::ColorByAltitude - v1.1a - 02 Nov 19

Postby zooen » Thu Mar 19, 2020 2:36 pm

Bonjour,

J'ai fait deux ou trois choses pour essayer de résoudre le problème (et comprendre la teneur de ton message).
J'ai installé SU 2020 sur mon portable (Win 8.1) avec Mozilla firefox comme navigateur par défaut (c'est toujours celui que j'utilise depuis des années) en y associant les SVG, pour voir si j'avais le même problème. Avec uniquement les extensions et plugins suivants:
Sketchucation plugin store et tes plugins et extensions.

j'ai fait un test avec avec ColorByAltitude Avec les trois variantes de dégradé, cela fonctionne (il y a déjà un progrès :) ). La matière est présente et varie en fonction de la variante choisie : Géographique, Niveaux de gris et Arc-en-ciel.

J'ai fait la même association SVG sur mon ordi de Bureau, même résultat c'est OK.

Mais je n'ai toujours pas la rampe et les icônes (voir la capture d'écran).

Quant à "Canvas" j'ai fais quelques recherches sur le net pour voir et comprendre ce que c'est, bon cela reste assez flou pour moi.

TruePaint et les autres plugins que j'utilise fonctionnent très bien aussi et je n'ai pas de problème d'affichage pour eux.

Voilà où j'en suis. Notre échange devrait-il sur faire sur le forum français?

Zooen
0

zooen 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: jeka8883, junnan01, leejayhom and 13 guests

Visit our sponsors: