• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D ManifoldLab Plug-ins Collection v
« Previous 1 2 3 4 5 … 7 Next »
Geodesic Distance mesh coloring (seeking)

 
  • 0 Vote(s) - 0 Average
Geodesic Distance mesh coloring (seeking)

Pages (2): 1 2 Next »
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#1
04-28-2016, 02:06 PM
Geodesic Distance mesh coloring (seeking)

MeshLab has it ... but does not appear to cycle colors with given frequency. Can anyone help me find a free app that does this kind of coloring soup-to-nuts ?

I'm trying to add it to ManifoldLab. I'm going to add it as built in ... coded in Erlang.
cyseal
Offline

Member

Posts: 114
Threads: 19
Joined: Jan 2016
#2
04-28-2016, 02:13 PM
I think this should help
http://blenderartists.org/forum/showthre...n-Surfaces
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#3
04-28-2016, 02:33 PM
cyseal ...

Geodesic distance gets particularly interesting to me (and others) when you try to use it to instantiate concentric distance loops on the surface. I watched this guys video ... and he didn't go there. I think it's the hard part ... because of aliasing and such. Do you understand what I'm getting at ?
cyseal
Offline

Member

Posts: 114
Threads: 19
Joined: Jan 2016
#4
04-28-2016, 02:47 PM
Could you explain a bit more? I need to explain to myself in mathematical terms if I'm going to understand problem completely.
Maybe this?
https://www.ceremade.dauphine.fr/~peyre/...d/tp3.html

Also, could you explain what does it mean 'cycling colors with given frequency' ?
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#5
04-28-2016, 04:16 PM (This post was last modified: 04-28-2016, 04:19 PM by ggaliens.)
Cycling colors would just mean repeating the rainbow more times over a given surface distance. More banding.

In my mind ... this probably means increasing the resolution of the underlaying mesh so that we have more discrete places to put rainbow bands. If were are both nativeEenglish speakers ... we need to stick to words and metaphors like RAINBOW and repeat. But is you really like code ... I can just send you the code snippet ... since it is very short.

Code:
command({vertex,{manifoldlab,topo_bullseye}}, #st{sel=[{WeID,_}]}=St) ->
    Qs =
      [ {label, "Topological Units to run ... "},
        {text, 36,   [{width,10},{key,units},{range,{0, 720}}]},
        separator,
        {label, "Every 18 units is a rainbow cycle"}
      ],

    wings_dialog:dialog("Rainbow Please ... ", Qs,
        fun(Res) ->
            {units,Units}  = lists:keyfind(units, 1, Res ),
            #we{} = We = gb_trees:get(WeID, St#st.shapes),
            MyAcc = fun(Idx,#st{sel=[{WeID,AccSet}]}=AccSt) ->
                Idx2 = Idx rem 18,
                #st{sel=[{WeID,SetMore}]} = wings_sel_conv:more(AccSt),
                SetNow = gb_sets:subtract(SetMore,AccSet),
                H = Idx2 * 20.0,
                S = 0.999,      %% we are just throwing down rainbow colors ...
                V = 0.999,
                RGB = wings_color:hsv_to_rgb({H,S,V}),
                AccSt2 = wings_vertex_cmd:set_color(RGB,AccSt#st{sel=[{WeID,SetNow}]}),
                AccSt2#st{sel=[{WeID,SetMore}]}
            end,
            case Units of
                    0 -> Polycount = length(array:sparse_to_orddict(We#we.vp)),
                         Count = round(math:sqrt(Polycount*1.0));
                    _ -> Count = Units
            end,
            lists:foldl(MyAcc, St, lists:seq(0,Count))
        end);
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#6
04-28-2016, 05:58 PM
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#7
04-29-2016, 08:44 PM (This post was last modified: 04-29-2016, 08:44 PM by ggaliens.)
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#8
05-04-2016, 03:28 PM
Cleaned up the process a little.

Dimitri
Offline

Senior Member

Posts: 338
Threads: 39
Joined: Nov 2012
#9
05-04-2016, 04:42 PM
It seems that this thing can be used for creating new topology on objects too. Imagine that instead of the displacement circles around the body, you create simple edge loops. If such a thing can be achieved then remains finding a way of creating the vertical lines-edges.

It is something worth thinking...
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#10
05-04-2016, 05:05 PM
Too much work to do retopo this way. This is just BOOLEAN of two objects making the cleaner lines. That's all. If you want to repurpose those new lines somehow ... have at it. Seems hard to do.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode