Home Coding, Scripting, Shaders

Tech Artist - What are you working on: FOREVER Edition!

Replies

  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    I've been implementing my own com server for max (going through mxs can be a bit of a faff :) ) to add addition dev tools  anyway it paid dividends straight away helping to get a better algorithm for find what in or not in a polygon not matter what the depth or heirarchy.



    now onto how to deal with intersections, my brain hurts!
  • malcolm
    Options
    Offline / Send Message
    malcolm polycount sponsor
    That is so neat.
  • slrove
    Options
    Offline / Send Message
    slrove polycounter lvl 5
    Wow, that is impressive Klunk.  B)
    When I first saw some of your posts about this, I was wishing I had an easy way to create something like this for a terrain shader I had developed. The shader mixed materials based on vertex color so certain terrain features would require specific vertex placement to retain material transitions. For example a dirt path would need the vertices along the edges to blend into the terrain nearby, and my only method at the time was painting in subdivisions essentially. When the terrain was a grid, it was too easy to spot the "resolution" even with height blending and soft vertex color changes. This would be awesome to have(if I were in max) becuase I can't trust maya's booleon operations, especially with history.
    Developing solutions that cause brain pain isn't all bad (in healthy doses). Its just a sign you are pushing your understanding of some very technical processes.
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    playing around with a different triangulation routine I stumbled upon.....
    top is the new one, middle is the sweepline (which is what I tend to use though it's not without it's issues) and max's good ol' ear clipping standard bottom. You can get a similar result for the sweepline for the circle if you scale it down in x or y just to resolve the topology but you would need to know this before hand.
    in conclusion, on what you would normally come across it does a pretty good job the x & c would be a pretty rare occurance in the "wild" that said it does a pretty good job on the c :astonished:

  • poopipe
    Options
    Offline / Send Message
    poopipe grand marshal polycounter
    ohhh, that's not bad at all 

    what's it called?  or did you invent it?

    ear clipping sucks - i've been getting good results using a version of the old triangle library I ported to python but I don't think it would work that well on the circle
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    Not I :) , found it in a book.... mathematics for 3d game programming and computer graphics Eric Lengyel page 270 (IIRC he did a method for generating tangent space vectors)
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    had a bit of a doh! moment and a humble brag ;) I wrote a documentation generator a while back to handle my MXS extension function libraries (i tried DOxygen but never really liked it's output). It basicaly works by using embedded xml snippets describing functions and it arguments but also as documentation within the code too, it the converts the snippets in html. Its then called post build and pipped to HCC compiler. Anyway I recently needed to update it for documentation of the max com server I was working on which is a cpp interface. Anyway to cut a long story short I discovered the wonders of style sheets :anguished: and the em tag. Everything is just so easy now :) what the fuck was I thinking !!! It's about 3 times faster a gizillion times less complicated and files are now miniscule! I've included a sample file (though note the colors and fonts are just messing around and one of the font may not display as intended)
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    down the rabbit hole today :)

    working on how my tree generator operates as a point emitter -- how fronds and or leaves are distributed, well partularly how the normal directions are aligned (the position bit is a piece of piss)

    had the idea of a wheel like control with regions that turn on and off when on the normals can go in that direction and off they can't.

    then it hit me, thats a gradient ramp of sorts with a radial output and actually a gradient could be useful.

    cool I've got one of those but it takes up a lot of bloody room and not very intuitive with a radial output :/

    what about an actual radial gradient control much like the gradient ramp, bit more compact....

    so off we go, and now I'm working how render "3d" marker stops that work correctly in any direction :anguished: 



    least it will look "pretty" :)
    how it might look in a max rollout

    perhaps a little busy :anguished: , might be best in it's own dialog :/

  • poopipe
    Options
    Offline / Send Message
    poopipe grand marshal polycounter
    wait up... explain that again

    I dont care about the UI - what's the logic as you run up the tree?
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    in the above example the emitter normals would be most likely point  in the direction where the gradient is whitest when looking end on to a branch (radial angle), the longitudinal angle is pretty simple. 
    the most obvious example would be to make something like....

    using something like....

    or something like....

    with...

    have also been considering a "3d ball with cones (think spotligh cones hotspot & fall off)" gizmo one for the start and one for the end think that may get busy too.
    I do have a working solution already...

    just needs tweaking for more specialist cases so to speak.

  • poopipe
    Options
    Offline / Send Message
    poopipe grand marshal polycounter
    ah - now it makes sense. 

    this is coming on rather well.  
    death to speedtree!!

  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    I doubt it :) they have some good tech but i never liked it (too many "duff" trees and too many sliders)
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    it works after a fashion....


    still trying to find ways of improving the middle of the gradient :/
  • ZacD
    Options
    Offline / Send Message
    ZacD ngon master
    Could go the lazy route a put a dot in the middle :)
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    I'm thinking big hole ! ;) I could stick something in there or have opacity stops running on the inside

  • hanabirano
    Options
    Online / Send Message
    hanabirano polycounter lvl 5
    Klunk said:
    playing around with a different triangulation routine I stumbled upon.....
    top is the new one, middle is the sweepline (which is what I tend to use though it's not without it's issues) and max's good ol' ear clipping standard bottom. You can get a similar result for the sweepline for the circle if you scale it down in x or y just to resolve the topology but you would need to know this before hand.
    in conclusion, on what you would normally come across it does a pretty good job the x & c would be a pretty rare occurance in the "wild" that said it does a pretty good job on the c :astonished:

    This is rly cool! Is it possible to have the top one has a modifier and with the option of only doing quadringulation?
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    thanks, quadifying meshes is proper "down the rabbits hole" stuff :) 

    on a side note this was a fun bit of coding.... radial checker (to show transparency)
     
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    add new method for my spline emitter for the distribution to avoid clumping on inside corners and sparsity on outside corners

    a few issues on closed spline with max sdk returning some funky tangent values on corner knots  :/

  • SimonT
    Options
    Offline / Send Message
    SimonT interpolator
    I'm working on a little game and made a breakdown post on artstation: https://www.artstation.com/artwork/OG6A5e
    (sorry, the forum seems very broken and neither my preview image as link nor upload shows up....)


  • ZacD
    Options
    Offline / Send Message
    ZacD ngon master
    I hope this is tech arty enough, but a simple procedural powerline setup in UE.

    https://www.youtube.com/watch?v=uM5UJWxy6TM
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    been playing around with adding perlin noise to my gradient controls.....

  • poopipe
    Options
    Offline / Send Message
    poopipe grand marshal polycounter
    is that a custom curve for interpolation at the bottom? 
  • Klunk
    Options
    Offline / Send Message
    Klunk ngon master
    yeah, it's a bezier ease control (it's actually a "double" bezier to give it more of a kick ;)  ), same as the one at the top (which is an overall control where as the bottom one is a per stop variant). 

Sign In or Register to comment.