Results 1 to 18 of 18
  1. #1

    Addon: User Normal Translator clone

    Hi,

    I'm starting a clone of the Softimage plugin called "User Normal Translator".
    The goal of the script is to allow the artists to perform some operations on the custom normals in an easy way.

    Right now only the layout has been done so all the logic is pending.
    However to do that I will need some extra information because I don't have Softimage or the plugin itself.
    For starting, in the Offset area there are 3 sliders for the vector. In "Add" mode I suppose the slider has a limit (-1,-1). However what's the limit in the "Multiply" mode?

    Meanwhile all I can post is a picture of the layout(WIP):
    unt_layout.jpg

    I'll post any news here.



  2. #2
    Little update:

    Version 0.9: Not a "release" yet, but I've attached the working file here in case someone wants to start doing some tests.


    usernormaledit_v090.jpg

    How to use it: Sorry I don't have time for making a video.
    You load this python file in the text editor (in blender) and click on "Run". Next time you have a mesh object selected and you are in Edit mode you will see a new tab in the tool shelf called "misc". Go there and you will see the new panel called "User Normal Editor. This panel will work only in edit mode, if you change to object mode it will disappear.
    Then you need to do 2 things to be able to use the panel:
    1. In the Properties/Data panel, activate "Auto smooth"
    2. In the 3D view, in the properties shelf, go to Mesh display and activate the second icon on the Normals section, called "Display vertex-per-face normals as lines"

    Optionally could be convenient that the object have Smooth shading (Tools/Edit/Shading/Smooth)

    Eventually these 2 steps will be added to the panel as a button, for convenience.

    Workflow:
    Now you can freely choose the vertices that you want to operate with. (Eventually support for vertex groups will be added). And then click on the button that you want in the panel and it should do something (in some cases).

    What is working:
    Offset section
    • Offset Add mode should be working fine.
    • Offset Multiply mode need some fixes.
    • Axis, values and numeric buttons should work.
    • Reset is working
    • Absolute value and World space are NOT working
    • Apply is working



    Spherize section
    • Everything is working.
    • Also I added 3 new features:
      1. you can select any object as center of the effect
      2. if the object selector is empty it will take the cursor as the center (could be convenient sometimes if you are working on X,Y or Z views.).
      3. Also a "1.0" button has been added.




    Normal Editing tools
    • Normalize is working
    • Invert is working
    • Reset is working (or I think so, I'm not sure what this button is doing in the original panel, I will check it later)
    • Smooth is NOT working
    • Remake is NOT working



    Edit values
    • Nothing is working here
    Attached Files Attached Files



  3. #3
    version 0.9.1
    Little feedback focused pre-release:
    • added Auto smooth button
    • added Draw split normals button
    • added Normal Size value
    • Offset/reset applies only to the selected vertices.


    Also I detected a new bug/issue. Sometimes the mesh normals for the whole object get "broken" and they go to a flat modes where you can not change anything. I'll investigate this.


    More soon
    Attached Files Attached Files



  4. #4
    This is absolutely AWESOME news to hear that you are working on this MUCH needed feature for blender. I've hoped blender would get a tool similar to that of the one in SoftImage for years now. Thank you, THANK YOU! I hope you choose to see development through, and users like myself and T.K., LightBWK can try to get this accepted into trunk as a core add-on for blender!

    I have one far off request (after this core tool is done)... if you happen to have free time... the ability to store a set of normals, and animated through them, say normalized angles, ala shapekeys, would allow for easy driver-based custom normal animation (think one set for viewing the profile of a character, another for the front, etc). I tend to prefer to drive them with my camera's forward normal.... anyhow... just a thought ;-)

    Again though, Blender really needs this tool... if you need support, a kickstarter, a donation threshold, whatever, let it be known. :-)
    Last edited by 3Duaun; 18-May-15 at 23:54.



  5. #5
    Hi 3Duaun.
    Thanks for the comments.
    So basically you want animated custom normals, right? Well, not easy, and not 100% sure it's even possible. But I think it can be done and yes, I can see that it can be useful for some situations (i.e. rotating camera around the character). So yeah, probably I'll give this a try after I finish the panel.
    Last edited by vicentecarro; 19-May-15 at 14:15.



  6. #6
    Originally Posted by vicentecarro View Post
    Hi 3Duaun.
    Thanks for the comments.
    So basically you want animated custom normals, right? Well, not easy, and not 100% sure it's even possible. But I think it can be done and yes, I can see that it can be useful for some situations (i.e. rotating camera around the character). So yeah, probably I'll give this a try after I finish the panel.
    Very cool, thanks for even thinking it over :-). Very excited to see this add-on develop, thanks again for your work on it!

    just in case you hadn't see this slightly-relevant thread on v-normals, figured I'd shared it. http://blenderartists.org/forum/show...-Blender/page5



  7. #7
    version 0.9.2

    • Fixed "Multiply" mode in offset.
    • Added initial support for Normals2Vertexcolors.
    • Minor changes


    Ok, now Multiply mode should work fine. However I recommend you to not use negative numbers because the normals will be inverted with each click, and that's very counter intuitive and basically useless.

    And also there is support to convert normals into vertex colors. HOWEVER, right now you have to manually create a Vertex Color layer in the properties panel/ Data/Vertex Layer. I didn't have time to implement that part but I'll do in the next release.
    Please note that only "Normal to VertexColor" works. "VertexColor to Normals" is NOT working.
    Attached Files Attached Files



  8. #8
    Thank you for the fixes! Testing time :-)



  9. #9
    I just realised the Normal->Vertexcolor implementation is wrong. I'm clamping normal values at 0, so all negative normals are simplified to 0 = black component of color.
    I'll fix that later.



  10. #10
    vicentecarro, this is a great addon but could you please look at incorperating the functions of the panel of Blend4Web "B4W Vertex Normals Editor". It's more user friendly then yours because you can also set with "custom sphere" by dragging you mouse in stead of setting it numerically.
    what's better then their inplementation is that your addon works with armatures, theirs does not!
    what is not good is that your addon doesn't work in Blender Game Engine, theirs does.
    If you could incorperate their panel and make it work in the game engine, that would finally solve years and years of frustration of blender not having a decent normal editor!



  11. #11
    I'm looking forward to your next update of this very useful tool :-)



  12. #12
    Member blurymind's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    1,156
    this should be a part of blender. Very useful!!



  13. #13
    Originally Posted by joeyq1 View Post
    what's better then their inplementation is that your addon works with armatures, theirs does not!
    You wrong about an armature, blend4web works fine with armature, in BGE and any other modification, even with vertex animation. You can see it in special demos in SDK called code snipets, or just ask on the blend4web forum if you have problem with armature, may be it' another reason that you can see edited vertex normal with armature mod.



  14. #14
    Hi guys I'm back.
    I have been doing some tests with the latest version of the script and the current (and GIT) blender. Sadly there are a few problems that I'm afraid are out of my reach.
    Anyway I'll check with the devs to confirm those and to see if there are solutions or workarounds.
    Between others, the most annoying problem for me, is that the subsurf modifier ignores the custom normals.

    Meanwhile this is the repository of the script, just in case you want to be updated (currently still on version 0.92).
    https://github.com/vicentecarro/usernormaltranslator
    or directly:
    git clone https://github.com/vicentecarro/user...translator.git .



  15. #15
    Awesome! I will have to give this a shot. I tried the Blend4Web UI and found it a little bit too fiddly. I am currently trying to write my own tool that applies normals based on selected faces, but hit a small problem (see: http://blender.stackexchange.com/que...nter-edit-mode). Your addon looks pretty full-featured, so maybe it supports the features I need.

    Will post feedback once I've tried it out. Right now it's bed time though!



  16. #16
    Please continue with this, even if at first look it doesn't seems like the most important feature i actually think this is pretty much the root of many problems in 3d shading, continue your excellent work and try to propose to the blender developers the addition for this plugin as an official one into blender, it's that necessary.



  17. #17
    FINALLY!!!! BEAN LOOKING FOR SOMETHING LIKE THIS ALL WEAK!!! One thing I noticed however, was that this plug-in doesn't work properly when used on a mesh with topology modifiers active, e.g. 'triangulate' modifier. Not a huge deal since you can always disable the modifier before editing the normals but it's still something worth baring in mind for any who made the same mistake I made and thought that this plug-in was a dud because of it.

    Edit: So after testing it out for a bit I found that topology modifiers (Triangulate, Subdivide, etc) CANNOT in fact be used with this plug-in. Still not a big deal for me but it could be a problem for others depending on what they are trying to do.
    Last edited by DSandy_6PS; 29-Jan-16 at 23:25.



  18. #18
    Has this been abandoned? I downloaded iy specifically for the vertex colors > normals function, but it looks like it hasn't been implemented it.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •