[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
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

cron

Who is online

Users browsing this forum: DONGKUN KIM , erkan911, Google Bot, jongster16, teammustard and 16 guests

Visit our sponsors: