Re: [Therion] Blended colour by gradient?

2020-10-08 Thread Tarquin Wilton-Jones via Therion
> possible to colour an elevation survey

But then I see that I may have misinterpreted the word "elevation".

You may have meant projected elevation or extended elevation, rather
than plan with elevation colouring. (Ambiguous words!)

My answer still stands about metapost and gradients - it can do them.
You would not need a reference station so much now though, because
simple vertical position on the page would be enough, and it simplifies
things a lot. It would still need to know the relative height of the top
and bottom points of each scrap to know what colours to choose for the
gradient lines (and while I know that can all be done with maths, I am
glad I am not the one doing it, because that doesn't sound fun to me).

But sadly, there are a great many things that would not actually work.
There are a lot of "thclear" (clear this shape) and "thunfill" (un-fill
this shape) commands used in the metapost, which do not just "make this
part transparent". Instead, they re-paint the area with the colour of
the scrap (this is because of how things get layered, and how some
symbols are made from one colour, with what looks like a hole punched
through them by another colour). If you had a gradient fill, those
commands would not be able to choose a colour for that point.

In other words, MetaPost can do gradients, but that is not compatible
with the way that a lot of Therion works.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Blended colour by gradient?

2020-10-08 Thread Martin Sluka via Therion
As wrote Tarquin it is not possible. 

Try to make shorter scraps as Tarquin advice and divide long scraps. It is not 
simple work but it is possible. 

Martin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Blended colour by gradient?

2020-10-08 Thread Tarquin Wilton-Jones via Therion
> How should the bulge be coloured, given that its closest station within the
> scrap is #3? As a caver, you would say 3

er ... 1

I knew what I meant.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Blended colour by gradient?

2020-10-08 Thread Tarquin Wilton-Jones via Therion
Hi Alastair,

> One of my friends has asked me whether it’s possible to colour an elevation 
> survey by a blended gradient rather than a discrete scrap by scrap basis.

As far as I know, the answer is "no", and I don't think it would
actually be possible. It's not like Survex, where each line or 2D
polygon can be shaded with a gradient, knowing the exact 3D altitude of
each point within the polygon. Therion rendering is not made from
polygons, it is made from a series of 2D vectors positioned arbitrarily
around 3D points.

Imagine that you have a scrap with 2 stations in it. How should each
part of the scrap be coloured:
The nearest station point within the scrap?
Blended between the 2 nearest station points within a scrap?
What about when the scrap protrudes beyond the last station?

That's for a simple case. Now try 3 stations in a V shape. The point in
the middle is equidistant from all of them. How should it blend? Does
the wall beside it belong to the lowest station, the highest station or
the middle one? Draw a line from the wall to one station. Should the
colour change along that path?

Imagine a simple passage with three stations. Start at station1. Go up a
slope to station 2. Turn hard right and go up a slope to station 3.
Scrap ends. At station 1, the right wall bulges out so from above, it
looks like it almost touches station 3, but it does not connect. How
should the bulge be coloured, given that its closest station within the
scrap is #3? As a caver, you would say 3, but it would be a challenge to
describe a solution for that to a computer program like Therion.

> would it be possible to metapost a gradient

Yes. Assuming you want linear gradients, not complex ones. Caves are
complex. And Therion uses a 7 stage blend to get the rainbow effect. So
you would have to be able to do much more than just a simple
colour-from,colour-to gradient.

> I think his solution relied upon the 1 colour for one scrap method

Given the lengths of passage involved ("every passage in Aggy is twice
as long as you want it to be" - Tarquin), that is how I would expect it
to be done, and relatively easily too.

This is why the general advice is to have each scrap cover a maximum of
5 metres of altitude within the cave.

I would love for someone to prove me wrong though, because pure
gradients within a cave survey sound awesome.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion