Home Technical Talk

blender questions

polycounter lvl 11
Offline / Send Message
MainManiac polycounter lvl 11
How can I weld nearby verts? For optimizing and removing duplicate vertices or double faces id select all vertices in max and do a weld at .001, how can I do this in blender? EDIT - just found remove doubles, but that doesn't help when I need to fill a gap :S


Smoothing groups, the only method ive seen so far is edge splitting, is this safe for game objects and baking? Is this the same technique max uses for its smoothing groups?

Will probably post more as I learn more lol, thanks

Replies

  • respawnrt
    Options
    Offline / Send Message
    respawnrt polycounter lvl 8
    Fill a gap as in select gap edges and pressing F ? That should fill a gap.
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    No F seems to be bridge I mean in an instance where...

    for example, you have a line of double verts that you need welded, sort of like

    ---<:=:=:=:=:

    lol@drawing. But instead of selecting the pairs one at a time and merging the vertices at center is there any way I can just select them all and hit weld and choose a distance? That way only nearby vertices are merged (and in turn the ones I wanted to be merged get merged)
  • respawnrt
    Options
    Offline / Send Message
    respawnrt polycounter lvl 8
    Selecting those and applying remove doubles and adjusting the threshold doesnt work ? I'm not sure if you just haven't seen the threshold value option or i just don't understand :D
    NSSFG.png
  • aaron2
    Options
    Offline / Send Message
    In the Mesh Tools panel, there is a Limit setting right next to the Rem Double button. This sets the Mas distance between verts that will be welded when you click Rem Double. It is in blender units so go up in small increments.
  • JR
    Options
    Offline / Send Message
    JR polycounter lvl 15
    For smoothing groups, you can select edges that will be hard and through Edges menu (ctrl+E) select "Mark Sharp". Soft ones, you mark as "Clear Sharp". To see them as smooth groups, you apply the "Edge Split" modifier to the object. And that's all. If you export a FBX and import in Maya (I believe in Max too) your hard/soft edges will be all there.
  • walkonsky
    Options
    Offline / Send Message
    walkonsky polycounter lvl 11
    you can even set the maximal distance for the remove doubles function while using it. just select it from the menu and look in the tools panel (press t). you can then interactively set the distance and directly see the results.

    for welding: try to press alt+m after selecting two vertices that you want to weld. you get three options. see what suits your needs best. i don't know however, if there is a way to weld several vertices at once.

    concerning smoothing groups: mark sharp and clear sharp is exactly what you need. you see the results even without having the edge split modifier on you model. but you need the modifier when you export the model for a game engine for example.
    while exporting, blender will actually split the model at hard edges which results in two vertices in one position. this is what happens in game engines at smoothing group borders, but might confuse you when you open the model in another modelling tool...
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    oh thanks respawn! I didnt see the little attributes thing!

    Thanks for the other info on smoothing groups guys. So splitting edges is also how max/maya do their smoothing groups? They just don't call it edge splitting? I just want to make sure it isn't destructive or anything. Why does exporting face normals do the same thing without edge splitting/smoothing groups?
  • respawnrt
    Options
    Offline / Send Message
    respawnrt polycounter lvl 8
    As far as i understand things, in max maya spliting an edge is the same as seting a smoothing group, however by using smoothing groups instead of split edge it lets you manipulate the mesh with all the operations working (such as bevel for ex) on edges.Now back to blender, if you split edges and apply modifier it keeps the shading but you can't edit the mesh no more where you split...makes sense ? because they're physically split lol.So you need to keep the modifier i guess.Again i might be wrong, shameful i never really got much far with the tech side of 3d :(
  • r_fletch_r
    Options
    Offline / Send Message
    r_fletch_r polycounter lvl 9
    Max Splits the vertex normal but not the mesh vertex. Blender splits them both.
    The blender method is how things will be on the GFX card but its a pain to work with. Probably a case of a programmer 'knowing best', Personally I think it'd be best to let the game engine handle that and give the artist a workable model.
  • SnowInChina
    Options
    Offline / Send Message
    SnowInChina interpolator
    you can always set the edges to hard and use the edgesplit modifier which is nondestructable
  • passerby
    Options
    Offline / Send Message
    passerby polycounter lvl 12
    ya i fucking hate the blender method of hard normals, it's completely incompatible with content that is smoothed correctly coming out of maya into blender, unless i spilt them first, than i would have to deal with a double verts and shit.

    really don't get why they cant just implement it like other packages do so. It could be compatible with data from other packages. hell it wouldn't even change the workflow, it could just be a new modifier, "normals spilt", since you can already tag edges as soft or hard like in maya anyways, all the modifer would change is how data is exported.
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    respawnrt wrote: »
    As far as i understand things, in max maya spliting an edge is the same as seting a smoothing group, however by using smoothing groups instead of split edge it lets you manipulate the mesh with all the operations working (such as bevel for ex) on edges.Now back to blender, if you split edges and apply modifier it keeps the shading but you can't edit the mesh no more where you split...makes sense ? because they're physically split lol.So you need to keep the modifier i guess.Again i might be wrong, shameful i never really got much far with the tech side of 3d :(

    Ya if you leave the edge split modifer on you can still edit underlying mesh easily
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    Ok heres another one


    if I uv map a medium poly model and I need to make an even lower poly one. If I remove edge loops from the medium poly one will my uvs stay in tact like in max?
  • JamesWild
    Options
    Offline / Send Message
    JamesWild polycounter lvl 8
    I've found they don't, they tend to act as though you target welded the middle vert to one of the edge verts.
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    :S thats going to hit me hard...

    I need a low poly and a medium poly to share the same uv map
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    :S thats going to hit me hard...

    I need a low poly and a medium poly to share the same uv map
  • cookedpeanut
    Options
    Offline / Send Message
    cookedpeanut polycounter lvl 12
    frell wrote: »
    Ok heres another one


    if I uv map a medium poly model and I need to make an even lower poly one. If I remove edge loops from the medium poly one will my uvs stay in tact like in max?
    No, they won't. It's annoying but there isn't much that can be done about it.
    If you remove an edge loop, Blender will seemingly obliterate that same edge loop in the UV island. There are ways around it though, if you go to your 3D view port and click on the 'Mesh' menu, enable 'Auto Merging' (Should be at the top).
    Then go to your bottom toolbar and click on the magnet icon to enable auto snapping. Next to the magnet icon is another menu, select the Vertex function from the pop-up menu.
    Now swap back to your 'UV' window and right click on the vertex (Or vertices - I always get confused) you want to move and snap it to the corresponding edge from the model. Hold 'CTRL' down to deactivate the magnet snapping temporarily for fine tuning. Rinse and repeat for the rest of the missing edge loop on the 'UV' island.

    Also, if you haven't - I would strongly recommend downloading this script pack for the 2.6x versions of Blender. It adds around 80 scripts that improve the modelling functionality of Blender. Think Graphite tools but Blender style...
    Go to your 'Preferences' and click on the 'Addons' tab to enable & disable the scripts, I think you'll be pleasantly surprised.
    Download: http://wiki.blender.org/index.php/File:Addons_contrib_bundle_2.64
    (It gets updated per Blender build...)
    Info: http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Toolkits

    For custom Blender builds, go here: http://www.graphicall.org/
    I can pop some images up if you want?

    Pm me if you need any help, I'll gladly help ya out...
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    Im having the hardest time trying to uv map in blender.. Why can't it be like max where I select faces and do planar which auto seams them and then cut them even more if necessary and then relax and drag and place?

    Blender I have to mark seams and then re unwrap the entire selection again...? I can't find any good tutorials on people who uv map like max/maya, only people who have been blenderfied and know no better way
  • respawnrt
    Options
    Offline / Send Message
    respawnrt polycounter lvl 8
    You can place seams and select the insides of seams and hit unwrap, you dont need to re unwrap evrything.The hotkey for in-seams selection is mesh.select_linked_pick with limit to seams option enabled.
  • Gestalt
    Options
    Offline / Send Message
    Gestalt polycounter lvl 11
    frell wrote: »
    Im having the hardest time trying to uv map in blender.. Why can't it be like max where I select faces and do planar which auto seams them and then cut them even more if necessary and then relax and drag and place?

    Blender I have to mark seams and then re unwrap the entire selection again...? I can't find any good tutorials on people who uv map like max/maya, only people who have been blenderfied and know no better way

    What are you trying to do exactly?

    If you select faces and hit unwrap it will unwrap just those faces. The faces you select in the 3d viewport are the UVs that will appear in the UV editor (if you have UVs that exist for those faces). If you select all of the faces for the object (hit 'a') you can see all the UVs you've unwrapped so far.

    If you select only certain faces in the 3d viewport you can move just their UVs in the UV editor, and even if they would normally be attached to other islands, they become their own island, no marking seams involved.

    Marking seams is mainly for doing the unwrap functions (like auto unwrapping selected faces). I'm unwrapping a cube as I type this without marking seams, I select a face of the cube in the viewport, have it face the view orthographically(numpad 5), hit 'u' in the viewport and project from view, and that face is its own island. Hit 'a' in the 3d viewport to deselect and once more to select all in order to see it together with any other UVs the object has.

    This is sort of a difficult topic to describe in words so if you have any questions or can clarify what you'd like to do let me know.
  • Michael Knubben
    Options
    Offline / Send Message
    You can delete a loop without affecting the uv's by selecting 'dissolve' instead. Be sure to turn on 'dissolve verts' as well! I haven't found a way to enable this by default (normally you would do it in the keymap, but this one calls a script instead), so you'll need to do it once per session.
  • Lamoot
    Options
    Offline / Send Message
    Lamoot polycounter lvl 7
    frell wrote: »
    :S thats going to hit me hard...

    I need a low poly and a medium poly to share the same uv map

    As MightyPea mentioned, you can use the dissolve tool to get rid of unwanted geometry without affecting the UVs, but be sure to use it on the edges with the remove vertices option enabled. Also, if you use it on edges that are also UV seams, the UV will break.
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    Ah thanks guys


    As to the uvs, is there a relax tool?

    So I can select faces, hit unwrap, cut a seam and then select the faces again and unwrap again and itll cut the seam?

    If I select faces in the uv editor will it select them in the viewport or do I have to select them manually again...?


    Would experiment myself but im at work and these are the only other issues I had
  • Michael Knubben
    Options
    Offline / Send Message
    There's shift-v, but that's rubbish. No, what you want to look at is sculpt mode in the uv's. You'll find it in the UV menu, enabling it gives you a brush to move/smooth verts with. There's a setting to automatically pin the verts on the edge of a uv-island, I forget what it's set to by default but you might want to toggle that regularly.

    As for cutting a seam, just reunwrap. E in the uv-window, or just press U again the the viewport (yes, this is a ridiculous inconsistency. Blender's full of them)
    If you already have the rest where you want it, just pin them (p, alt-p to unpin) and unwrap, or only select the faces you want to unwrap. If you do that though, it'll unwrap to the full uv's, but there's a tool that matches the scale of your islands. Err, off the top of my head, alt-a? Not sure, but you'll find it in the UV menu.
  • Michael Knubben
    Options
    Offline / Send Message
    Oh, selecting faces in the uv editor will not select them in the viewport, unless you have your uv editor set to sync the selection. You don't want this, because it will likely drive you mad (try selecting just one vert on the uvs. You now have multiple verts selected.). There's no decent way of seeing in the viewport what you've got selected on the uv's, so I just hide (H) things in the uv window, this deselects in the viewport. It took me a while to adjust, but I've begin to find it workable, and some tools are very nice (w for align/weld is great)

    edit: pm me if you want me to take you through how I use it. We can do a Google hangout or something.
  • Gestalt
    Options
    Offline / Send Message
    Gestalt polycounter lvl 11
    Besides hiding UV faces with 'h' and then moving remaining faces to split faces ('alt h' to unhide), another approach would be to change the 'sticky selection mode'.

    If you look at the thin toolbar below the UV window, the one with all of the menus and icons, if you look to the right you'll see the selection types, vertex, edge, face, island, and right after that is where the 'sticky selection' modes are. If you select 'Disabled' in that box then your selected UV faces will be moved as detached from unselected faces. Basically you can imagine all of the UVs being treated as unmerged or merged depending on that option.

    If you would like a more automated way to smooth you can pin ('p') the points you want to remain still (so maybe the island borders) and run 'Minimize stretch' ('ctrl v'). That will keep running and calculating until you left click (right click to cancel as usual).

    Edit: another thing to add would be if you'd like to visualize the stretching, like you might in another app, in the side panel ('n') under 'Display' you can check 'Stretch' to visualize angle or area distortion.
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    This is such a mess :( I feel like blender is meant for unwrapping organic shapes...

    WmKT9.png
  • Gestalt
    Options
    Offline / Send Message
    Gestalt polycounter lvl 11
    Try switching into an orthographic side view and projecting from there (use the numpad, press 3 for sideview or shift 3 for the opposite side, 5 for ortho/persp) press 'u' to unwrap and select 'project from view'. I believe you mentioned you wanted planar projections before, that'd be an easy way to do it. You can pin the borders ('p') and 'ctrl v' to relax the selection (lmb to complete).

    You can straighten UV edges quite easily by scaling the points along an axis to 0. So if you would like to straighten edges vertically you can select those points, press 's', 'x', 0, enter or lmb (rmb to cancel as usual). All of the transformations are pretty much the same as in the 3d viewport.

    You can specify specific coordinates in the 'n' menu if you would like to snap precisely to the edge or the map or by specific pixels (the default is 256x256 but you can change that by specifying image dimensions with 'new image').
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    How can I stitch edges?

    Say I got the left side of the slide, the center, and the right side each projected from view one at a time, but I wanted to stitch them together so its one fanned out slide plate from above, how would I do that? If I stitch in the uv view will it stitch the seams in the viewport also?


    And how can I make it so I can see all my islands without having the faces selected in the viewport so I don't put any faces over anything else accidentally

    Thanks!
  • Gestalt
    Options
    Offline / Send Message
    Gestalt polycounter lvl 11
    'v' is stitch, it's like its own tool. Hit 'v', shift select the points you want to stitch and hit enter or lmb. It can take selected islands and move and rotate them to stitch. You can read at the bottom of the viewport when you activate it with 'v', and it'd probably be a good idea to watch a video of someone doing it.

    Edit: to answer your other question you can just leave all the faces selected in the viewport ('a' for select all). you can select linked uv's by hovering over them and pressing 'l' or 'ctrl l', I believe there's a difference for some reason I can't remember, and as was mentioned you can select and then hide anything you don't want to see with 'h'. You don't have to just rely on the viewport for what you see and don't see (alt+h to unhide).
  • Frankie
    Options
    Offline / Send Message
    Frankie polycounter lvl 19
    another cool hotkey is;

    right shift and number pad with a selection, aligns the camera to that selection normal instead of world coords.

    if your hard edge seams are putting you off the uv seams you can then off in the n window.
  • MainManiac
    Options
    Offline / Send Message
    MainManiac polycounter lvl 11
    really appreciate the help guys

    so I finally got a basic thing going but I can't tell how distorted it is because the grid wont appear in the 3d view..

    GBYxu.png

    also why are those verts red?
  • cookedpeanut
    Options
    Offline / Send Message
    cookedpeanut polycounter lvl 12
    Go to your bottom control bar and click on the sphere icon - change it to 'Textured'.
    1yk1n
    You may need to play with the shader settings though, press 'N' to bring up your viewport control panel and scroll down to the 'Display' tab. Navigate to the bottom where it says 'Shading:' and change it to 'GLSL'.
    Play around with adding some lamps and whatnot to illuminate the area.
    If that doesn't work then you may need to assign the grid texture to your UV mapped model.
    In which case:
    Navigate to your texture tab:
    1ykaa
    Add a new texture.
    Then below change 'Type:' to Image:
    1ykb7
    Then scroll down and click on 'Open'.
    1ykcw
    Navigate to said image.
    After adding the image, scroll down to where it says 'Mapping'.
    Click on the dropdown menu and select 'Coordinates' -> 'UV'.
    Then select your UV map by clicking on the orange box icon below.
    Done.
  • Frankie
    Options
    Offline / Send Message
    Frankie polycounter lvl 19
    verts are red because you pinned them. P pins them and alt P unpins

    pinning means they stay put when you re unwrap

    you can also turn on live uv, try it its a tick box under UVs, unpin everything then pin 2 verts next to each other then move one and leave the other in place

    if you do everything with pins and seams it means you can re unwrap everything at any time and it keeps the same layout, so can be handy.

    It appears you pinned a whole segment, when you could have only pinned the edge.

    you should reassess if you actually want your UV layout to be amazingly tightly packed and perfectly orientated so every lines on an axis, I stopped caring about it and now uving is really quick and feel better about life and the universe in general. ok maybe not quite.
  • cookedpeanut
    Options
    Offline / Send Message
    cookedpeanut polycounter lvl 12
    Frankie wrote: »
    verts are red because you pinned them. P pins them and alt P unpins

    pinning means they stay put when you re unwrap

    you can also turn on live uv, try it its a tick box under UVs, unpin everything then pin 2 verts next to each other then move one and leave the other in place

    if you do everything with pins and seams it means you can re unwrap everything at any time and it keeps the same layout, so can be handy.

    It appears you pinned a whole segment, when you could have only pinned the edge.

    you should reassess if you actually want your UV layout to be amazingly tightly packed and perfectly orientated so every lines on an axis, I stopped caring about it and now uving is really quick and feel better about life and the universe in general. ok maybe not quite.
    Was just about to say that it was either to do with welding or pinning the verts - wasn't sure though.
    You know what they say, if you want something done well "Do it yourself".
    It may take time to align all the edges on an axis but atleast the job gets done well. lol
  • passerby
    Options
    Offline / Send Message
    passerby polycounter lvl 12
    also good suggestion when working on differnt thigns is testing out both unwrap methods.

    after you do a unwrap hit f6 or look in the toolbar and try conformal, or angle based unwrap

    i find conformal works better for hard surface mesehs ,when you want straight uv's
  • Gestalt
    Options
    Offline / Send Message
    Gestalt polycounter lvl 11
    Something to look into if you're into nice straight and aligned UVs would be snapping to pixels(texels). Back when I was using lightmass more frequently, I found the feature incredibly useful.

    As was mentioned, you can type in actual texel coordinates for points, you can have your selected points snap to the nearest texels, and you can hold ctrl and do snapping for your transformations like you would in the 3d viewport.

    If you're working based on the texels it's probably a good idea to work with the max texture resolution you'll be using; so when you set up 'new image' use that resolution and have your values snap to it. In the UV menu there's a box you can check to keep the verts snapped to integer values as you transform them. I don't worry too much about snapping and perfect alignment if anything is too dense, but I think it could still work out.

    Not the most essential feature for most things, but it seems like you're trying to keep clean, and this is another useful feature for that.
Sign In or Register to comment.