AStepIntoOblivion's avatar
Xon Rifle
By AStepIntoOblivion   |   Watch
94 8 5K (1 Today)
Published: June 8, 2010
© 2010 - 2019 AStepIntoOblivion
Xon Rifle

Polys: 2094
Maps: 5 2048x (Diff, Gloss/Spec, Glow, Norm, and an engine-specific Player color mask)

Lowpoly mesh by theShadow

Highpoly mesh, unwrap, texture, and optimization by me.

Made for the open source online FPS game Xonotic. Licensed under GPL

This was a real headache. I experimented with a new approach - Using hand made displacement maps to create actual geometry and bake those. I finally got it to work after spending 24 hours on it. Turns out I was generating the normals/displacement maps wrong.

The number of subobjects also required this to be exploded into TEN geometry groups and then exported individually into ZBrush. Necessary to get the required mesh resolution for the displacement to geometry to work without killing my RAM (My PC dies when calculating normal/displacement maps at about 4 million vertices in Zbrush, I'm still on x86 thus can only use 4GB of RAM).

There are still aliasing on the normals themselves because of this (plus all this was crammed unto a single 2048x map), but not enough to be really a problem.
Image size
1712x1520px 1.59 MB
anonymous's avatar
Join the community to add your comment. Already a deviant? Sign In
Comments (8)
ikarus-tm's avatar
ikarus-tm|Professional Digital Artist
lovely : D
Reply  ·  
TwirlyMind's avatar
That is quite a rifle, but does it really need 4 *million* vertices? Z-brush seems to lack intelligent mesh optimization.
Reply  ·  
Daemoria's avatar
Daemoria|Hobbyist General Artist
Zbrush uses catmul-clark subdivision, so there is an even distribution of polygons, provided you stay away from 5+sided ngons on your lowers subdivision level.

Mesh optimization would only be calculated after you are done sculpting, not at run-time, because the way most (if not all) optimization algorithms work, it'll destroy the underlying topology in such ways as to make sculpting impossible... And it has a great tool for this, called Decimation Master.
[link]
Reply  ·  
AStepIntoOblivion's avatar
No no. LOL. I needed around 3 million vertices for the displacement maps to translate into geometry correctly (for each subgroup I made, which makes the total amount of polies of the high res model to around 30 million). Otherwise too few polies will result in a model that has squarish edges when the displacement map is translated into actual surface deformation of the geometry.

And again that's for the HIGH poly. The source of the normal maps/displacement maps. There is also a feature called equalize distribution [of edgeloops] or something, but it destroys uv maps, so i was careful to add enough loops in the lowpoly itself so when i subdivide it inside zbrush, the number of verts is distributed equally resulting in a smoother geometry when displaced.

And no, it does not actually provide an even distribution of polys. Subdivision density will depend largely on how many edgeloops existed in the base mesh in the first place. Which is why its good practice to add more edgeloops to the lowpoly beforehand with the same topology and uv's as your real lowpoly but with a higher amount of edgeloops so that when subdivided the density is more or less equal all throughout the model - the highpoly gun featured in wireframe in the pic above is an intermediate lowpoly mesh like I described.

Decimation master is more or less only useful for non game-mesh models (i.e. you are not decimating from 3 million to 5k). It leaves you with a mesh composed entirely of triangles and more often than not distorts your uv's as well. It's good tho for exporting high res models into another 3d app for a proper render.

The actual model shown here is only 2094 polys (around 2.3k vertices), but with normal maps applied from the high poly model, and it's perfectly game-ready.
Reply  ·  
TwirlyMind's avatar
And my point, for what it's worth, is that Z-Brush seems to encourage the creation of enormous models, as indicated by the ad for the Decimation Master, where they're showing part of a character model that already has over 7 million verts. That's a lot of geometry. Your low-res model is still not exactly tiny, but *is* efficient compared to what I've seen out of Z-brush.
Reply  ·  
Meg-Z's avatar
im not into guns... but wow!! this is good
Reply  ·  
Meg-Z's avatar
your welcome ^_^
Reply  ·  
anonymous's avatar
Join the community to add your comment. Already a deviant? Sign In
©2019 DeviantArt
All Rights reserved