AssetGen addon (old thread)

Wow you must have a big screen, …
Can you make it so that side pannels auto colaps when not used (ea like windows taskbar) behaviour ?.
If possible, then your UI update would be realy nice. (and even for those with big screens i think).

Razorblade: i have updated the UI tell me how it looks on your screen. There is more space for the windows now:


Update:

  • new Male body base mesh
  • bridge with Alt + F


Hey it looks pretty nice, some how you made the fonts smaller, this is a theme.
Perhaps just an idea; now you changed the default view, but me add it as an extra view ea “game creator” or so.
Maybe … ohno just forgetting after 2.76 there’s no next… hm maybe when 2.8 is out have something like this in place too.

I like you put in human base mesh as well, there was another threat not so long ago were someone wanted to add the human base mesh as a figure like we can add a suzane; this seams a lot easier.

I am wondered how about put it in a rigify ready pose ?
And maybe but i am not sure about this, use quads instead of tris for the figure… i’m not sure because if the goal is sculpting then i dont know if it matters, i was just a bit supriced to see a mesh basedupon tris.

And maybe aply a rigify too so it wold be a nice start for animators as well (if one wants to sulpt then one has to remove the rigify depending if one add faces or not.

For the extra layout i will wait Blender 2.8 Interactive Mode and the PBR viewport. :slight_smile:

I have changed the base mesh by one made by Nick Zuccarello (Free to use, i mentionned his name on the 3D model): http://www.zbrushcentral.com/showthread.php?61792-Free-ZTL-Model-from-Nick-Zuccarello-(new-VIDEO-page-9-added-8-7-08)&pp=15

I can suggest to enable Rigify in the Addons but i can’t put a rigify ready pose, it’s more useful to learn animation, the game artist has to sculpt his own character.

REQUEST:

1- need a Female Body Base Mesh free to use with almost the same quality of the Male.

2- for low poly unwrap, we can instantly unfold game assets with this technique:
Edge Split Modifier > Apply > Unwrap > Remove Double > Edge Split Modifier


It would be good to have a script called “Quick Unwrap” in the U menu or addon that does it automatically or an option for the Edge Split modifier that apply a seam at each edge split. With 2 settings the Angle of the Edge Split (renamed Seam Angle) and the Margin of the UVs. I will put it in Dark Blender by default.

This method:

  • You need to add seams at your hard edge it will save a lot of time
  • Can use your marked Seams at the same time, you have more control
  • Much faster to generate UVs on a complex mesh than Smart UVs
  • Less islands, easier to manage
  • Keep size ratio and orientation > clean result, better to paint on or project a texture

Smart UVs:

  • Sometimes more texels used, good to bake
  • Doesn’t keep the ratio and weird orientation a texture will be deformed
  • Less control

I can do that for you if no one beats me to it, but I have other work I must do tonight. So if that request isn’t filled within the next 24 hours, I will do it.

Thank you. :slight_smile:

I have updated the Layout before the Quick Unwrap feature:


Edit: i have removed the second view it lagged too much, i’ve put a note area instead to write the specs of the game model: max polycount per LoD, texture resolution, etc.

For this one (Edge Split Modifier > Apply > Unwrap > Remove Double > Edge Split Modifier)

What do you want the settings to be on the first edge split modifier?
Why is there a second edge split modifier at the end? What are the settings for that one? I’m assuming that one doesn’t get applied?

Here is a first version. It uses default settings on the first Edge Split modifier, then applies it, Unwraps UVs, removes doubles, and then adds a default Edge Split modifier but does not apply it.

I don’t know much about how to license scripts so I am releasing this under the GPLv3.

If you need any changes let me know. Again, please tell me what that second Edge Split modifier does, I don’t get it.

Somethings wrong don’t install that script.

For those who have imported it in Addon you will break the menu, to repair Blender go in “:\Users%username%\AppData\Roaming\Blender Foundation\Blender\2.7x\scripts\addons” and delete the script.

It works i have imported it in Dark Blender, i have added a button under the UV Editor. Thank you!


  • Doesn’t work in Edit Mode
  • It should apply a 30.1 angle to avoid problems on 12 sides low poly cylinders, 0.07 Margin
  • remove double
  • it should not apply an Edge Split modifier at the end you are right.

Right now I set it up to work with multiple objects. So you should apply it (in object mode) select one or many objects and run the script from the text editor (or however you got it working) and it will apply to all of them. Here’s an updated copy of the text from the script. Tell me how you fixed it to be install-able and I’ll release any updates to it that way? (this version remembered to include remove doubles, old version I forgot to add that, this version also sets the split angle to 30.1 and the unwrap margin to 0.07 as requested)

bl_info = {
    "name": "Quick Game UVs",
    "author": "Cancer > blenderartists.org",
    "version": (1, 01),
    "blender": (2, 76, 0),
    "license": "GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html",
    }

import bpy

for obj in bpy.context.selected_objects:
    
    bpy.context.scene.objects.active = obj

    bpy.ops.object.modifier_add(type='EDGE_SPLIT')
    bpy.context.object.modifiers["EdgeSplit"].split_angle = 0.525344
    bpy.ops.object.modifier_apply(apply_as='DATA', modifier="EdgeSplit")
    bpy.ops.object.mode_set(mode = 'EDIT')
    bpy.ops.mesh.select_all(action='SELECT')
    bpy.ops.uv.unwrap(method='ANGLE_BASED', margin=0.07)
    bpy.ops.mesh.remove_doubles()
    bpy.ops.object.mode_set(mode = 'OBJECT')
    bpy.ops.object.modifier_add(type='EDGE_SPLIT')

If necessary, I will try (tomorrow) to write it so that it will work in both edit or object mode, but I have to go to work now. I think it’s a very simple fix, but really gtg.

Ok thank you, the new version is online. For version 1, 01 i have written 1, 0 because it doesn’t compile otherwise. I have removed the last line for the Edge Split.

How are you installing it successfully Linko? Also, I re-downloaded your dblender.zip I don’t see where you put it? Anyways, really gtg.

It’s now under the Bake menu to maximize the UV window. I’ve tried to unfold a cylinder with 3 seams and it works fine + i keep the control of where my seams are compared to Smart UVs so i can manage to hide them and the script keep the orientation. It works with Mark Sharp Edges too. It will be an awesome tool for low poly game assets and hard surface.


Here are all the changes:

  • Added the script from Cancer to unfold low poly models quickly
  • The Clay Strip brush now behave like the Clay Tube brush of ZBrush, makes it easier to damage hard surface models
  • The Sculpting brushes keep the same color
  • Window to write notes beside the UV Editor to write your polycount limit, texture ratio, particularly useful to write the requirement for your Dota 2 model if you are making a set

Ok, I get it, it’s part of the scene file. I don’t think that is ideal, long term, but since it is a use-ful trick I understand why you want it, even as is. There needs to be a way for the user to set the angle for the edge-split, etc… Even then, there are some models that no matter what setting you put the results aren’t great (try it on a UV sphere, best setting I could find was 10, everything else is basically un-usable). Also, without changing the angle, if you use it on the Human man model you provide (to over-ride it’s nice UV’s it comes with) it just doesn’t work, so I think it won’t work for a lot of models, as is. I’ll update it.

Just a note. The man you put in, should have his scale and rotation zero’d out, and his over-all dimentions (you can see this in object mode in the ‘n’ menu at the top, should match the real world metric dimensions of a 6 foot tall man. You can temporarily set blender to meters to help figure that out.

Question to Devs or tech savy users.

  • I have played with Source code and superSampled Viewport resolution to 2X simply as a test in hopes to antialias AO. Obviously it was very slow.

SINCE ZBRUSH is using 2x lower resolution in viewport that is then scaled to fullscreen, it seems such a trick could GIVE massive viewport performance boost for sculpting. In other words if Screen size is 1920x1080, how big would be the performance boost if things are rendered 960x540 and then stretched to fit the screen.

Maybe it is worth investigating and would add a lot of value for such a custom build.

Tnx

Cancer: it’s now in meters, i have rescaled the body and applyied the scale.

The script must not be used with organic and round shape but for hard surface models and retopology. Normally a game artist must add Seams at every hard edge (Edge Split or Smoothing group, the name depend of the software). With this method you just have to focus on adding some seams at smooth edge to avoid stretching.

Floki: your resolution is too big for most Blender users, but it’s a nice suggestions for those with a big screen. I have added the Meltdown addon in the zip though it doesn’t export in TGA and it’s the most used texture format.

I had made a scene setup few weeks ago to bake stylized/faked hand paint for Dota, i have integrated the setup in the zip:


(the result after the Combined type bake LP to HP, i haven’t painted it)

So i have added a sky, sun and ground (hidden but visible in the bake and final render, not visible in the preview render) and i have setup the material:


Changelog:

  • New material to fake Hand Paint and display more details, very good for stylized games such as Dota. Result close to Quixel dDo Base Definition Material Preset without using a high+low poly
  • Ground grass (color picked directly from Dota)
  • AO Distance available bellow the bake menu
  • Units in meters, base meshes rescaled to fit in UE4
  • Meltdown addon added

To Linko. If u set in render options (preference panel) output image to tga it will save it in tga.

  • Gradient Baking added (great for Dota 2 models, Quixel Suite, Substance Painter/Designer), you just have to change the material in gradiantMaterial then press bake that’s all
    Shader from: MajorNightmare thank you @Tosky for the PM.
  • Cavity/Curvature Baking added
  • UV Checker Material added
  • bakeMaterial renamed handPaintFakeBake and i have tweaked it, it gives a better result
  • Default render option in TGA

Gradient baking:


Cavity baking:


Hand paint fake baking:


Fix:

  • UVs more contrasted you have to reimport the theme

Requests:

  • Female Base Mesh
  • Textures to project in sculpt mode: wrinkles, rocks, etc.
  • Hard Surfaces part for Kit Bashing (mostly screws, etc) easy to snap.
  • To fix: Cancer’s script doesn’t work in Edit Mode yet.
  • Skin Matcap

I guess this can be achieved by changing the virtual pixel mode in the user preferences to double.

bl_info = {
    "name": "Quick Game UVs",
    "author": "Cancer > blenderartists.org",
    "version": (1, 2),
    "blender": (2, 76, 0),
    "location": "",
    "category": "3D View",
    "license": "GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html",
    }

import bpy

bpy.ops.object.mode_set(mode = 'OBJECT')

for obj in bpy.context.selected_objects:
    
    bpy.context.scene.objects.active = obj

    bpy.ops.object.modifier_add(type='EDGE_SPLIT')
    bpy.context.object.modifiers["EdgeSplit"].split_angle = 0.525344
    bpy.ops.object.modifier_apply(apply_as='DATA', modifier="EdgeSplit")
    bpy.ops.object.mode_set(mode = 'EDIT')
    bpy.ops.mesh.select_all(action='SELECT')
    bpy.ops.uv.unwrap(method='ANGLE_BASED', margin=0.07)
    bpy.ops.mesh.remove_doubles()
    bpy.ops.object.mode_set(mode = 'OBJECT')

This version works ‘both’ on Multiple Selected objects and it also works no matter if you are in edit mode or object mode.

If you tell me exactly where you want it, i.e. ‘a custom pop-up menu via hotkey’ or a specific ‘hotkey’ or put it somewhere on an existing menu etc., I will set it up, so that it can be installed and then easily accessed how you want it.