[Therion] Adjust opacity value in transparent color
Hi, I'm using Therion to map waterfilled caves, and some systems have 'air-locks' (air chambers), so it's necessary to distinguish between air filled cave, waterfilled cave and water surfaces. But the waterfilled area should show details (be transparent) in same way as dry cave. Is there any way to adjust the opacity value (in meta code?) when setting a transparent color? I have made a test to show my issues: The files can be found on http://www.staven.no/cavetest/ The cave (ca 100m long) plan: -> http://www.staven.no/cavetest/testcave_plan.pdf elevation: -> http://www.staven.no/cavetest/testcave_elevation.pdf This doesn't work to well draw underwater maps. *** Changing the water color: layout test code metapost def a_water (expr p) = T:=identity; thfill p withcolor (0.8, 0.8, 1.0); enddef; endcode endlayout -> http://www.staven.no/cavetest/testcave_elevation_2.pdf Looks better but the cave and line 'behind' doesn't show thru the water. *** Try with transparent water color: def_transparent_rgb(tr_lblue, 0.80, 0.80, 1.00); def a_water (expr p) = T:=identity; thfill p withtransparentcolor tr_lblue; enddef; -> http://www.staven.no/cavetest/testcave_elevation_3.pdf *** Almost perfect, but I like to adjust the opacity value so it looks like this: def a_water (expr p) = T:=identity; enddef; # no drawing of water color map-fg [80 80 100] -> http://www.staven.no/cavetest/testcave_elevation_4.pdf (NB You won't see the difference in Adobe Reader, but it shows up in SumatraPDF) Is there any way to adjust the opacity value when setting a transparent color? Or should I do this another way?
[Therion] Adjust opacity value in transparent color
There is transparency parameter in MetaPost: Transparent colors You can use transparent colors with the transparent(method, factor, color) function. For example: \runMPgraphicstrue \setupcolors[state=start] \starttext \startreusableMPgraphic{a} fill unitsquare scaled 1cm withcolor yellow; fill unitsquare shifted (0.5,0.5) % method 1 = normal scaled 1cm withcolor transparent(1,0.5,red); \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} \stoptext The available transparency methods are the twelve methods supported by PDF specification: 1. normal 2. multiply 3. screen 4. overlay 5. softlight 6. hardlight 7. colordodge 8. colorburn 9. darken 10. lighten 11. difference 12. exclusion On Jul 19, 2016, at 12:25 PM, Robert Staven wrote: Hi, I'm using Therion to map waterfilled caves, and some systems have 'air-locks' (air chambers), so it's necessary to distinguish between air filled cave, waterfilled cave and water surfaces. But the waterfilled area should show details (be transparent) in same way as dry cave. Is there any way to adjust the opacity value (in meta code?) when setting a transparent color? I have made a test to show my issues: The files can be found on http://www.staven.no/cavetest/ The cave (ca 100m long) plan: -> http://www.staven.no/cavetest/testcave_plan.pdf elevation: -> http://www.staven.no/cavetest/testcave_elevation.pdf This doesn't work to well draw underwater maps. *** Changing the water color: layout test code metapost def a_water (expr p) = T:=identity; thfill p withcolor (0.8, 0.8, 1.0); enddef; endcode endlayout -> http://www.staven.no/cavetest/testcave_elevation_2.pdf Looks better but the cave and line 'behind' doesn't show thru the water. *** Try with transparent water color: def_transparent_rgb(tr_lblue, 0.80, 0.80, 1.00); def a_water (expr p) = T:=identity; thfill p withtransparentcolor tr_lblue; enddef; -> http://www.staven.no/cavetest/testcave_elevation_3.pdf *** Almost perfect, but I like to adjust the opacity value so it looks like this: def a_water (expr p) = T:=identity; enddef; # no drawing of water color map-fg [80 80 100] -> http://www.staven.no/cavetest/testcave_elevation_4.pdf (NB You won't see the difference in Adobe Reader, but it shows up in SumatraPDF) Is there any way to adjust the opacity value when setting a transparent color? Or should I do this another way? ___ Therion mailing list Therion at speleo.sk http://mailman.speleo.sk/listinfo/therion -- next part -- An HTML attachment was scrubbed... URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20160719/d207aebf/attachment.html>
[Therion] Map to Data
Bruce wrote: "Also notice you have added a link to an executable for converting maps to data. Is there a page or some information about what it is and how it works? Some might be nervous about downloading an executable directly without any explanation about what it is and how it works (in case it is malware)" Bruce That program is part of Larry Fish's "Compass" suite. It is perfectly safe to use. The one thing to remember is that its output is a Compass data file which means that whatever you think you did when using it, it will automatically convert all lengths to decimal feet. This is not an issue just as long as you remember it. I've used it a number of times, but only on small caves or mines, so I've had little problem editing the output into a therion or survex file by hand - and remembering to add the line "tape units feet" to it. Graham
[Therion] Map to Data
Or you could convert the Compass DAT file back to metric using my Cave Converter utility which reads Compass format now. http://wscc.darkgem.com/caveconverter/ Footleg On Tue, Jul 19, 2016 at 11:12 AM Graham Mullan wrote: > Bruce wrote: > > "Also notice you have added a link to an executable for converting maps to > data. > > Is there a page or some information about what it is and how it works? > > Some might be nervous about downloading an executable directly without any > explanation about what it is and how it works (in case it is malware)" > > Bruce > > That program is part of Larry Fish's "Compass" suite. It is perfectly safe > to use. The one thing to remember is that its output is a Compass data file > which means that whatever you think you did when using it, it will > automatically convert all lengths to decimal feet. This is not an issue > just as long as you remember it. I've used it a number of times, but only > on small caves or mines, so I've had little problem editing the output into > a therion or survex file by hand - and remembering to add the line "tape > units feet" to it. > > Graham > > > > ___ > Therion mailing list > Therion at speleo.sk > http://mailman.speleo.sk/listinfo/therion > -- next part -- An HTML attachment was scrubbed... URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20160719/f6604203/attachment.html>
[Therion] New Therion tips on wiki
Martin S I like your tip on straightening out zig-zig survey legs in passages in order to make extended elevations more realistic. https://therion.speleo.sk/wiki/doku.php/tips?s[]=zig <https://therion.speleo.sk/wiki/doku.php/tips?s%5b%5d=zig%5b%5d=zag> []=zag I am sure I will use that. Also notice you have added a link to an executable for converting maps to data. Is there a page or some information about what it is and how it works? Some might be nervous about downloading an executable directly without any explanation about what it is and how it works (in case it is malware) Bruce PS New look wiki looks good. -- next part -- An HTML attachment was scrubbed... URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20160719/90ac6b47/attachment.html>