View Full Version : Vizard Shaders vs. Texture Baking

04-12-2012, 01:35 PM
I'm having a horrible time rendering some basic shading onto freely available models I've downloaded. Even if I clean up the geometry (Reset XForm, Collaplse, Turn to Poly, etc etc), I still get holes in the models after using Render to Texture (sending Complete Map to Diffuse slot) in 3DS Max. If I simply apply a texture and then export to Vizard, it's really hard to see the kind of depth and definition on the model that you can see in the 3DS viewports.

Is there a way to use Vizard's shaders or some other method to simply give a model the kind of shading and depth that you can see in the 3DS viewport? i.e. something simple that approximates the global illumination in .3DS without requiring error-prone texture baking?

04-16-2012, 10:54 AM
What format are you exporting the model to?

04-16-2012, 11:19 AM
.ive, but I've tried .3ds and several others -- same result.

04-18-2012, 09:21 AM
When exporting to .ive, are you enabling vertex normals and lighting in the export options dialog?

04-18-2012, 11:40 AM
Thanks for the reply -- I've attached the settings I'm using.

04-18-2012, 12:03 PM
I'm also attaching the original model file and my Render to Texture settings from 3DS Max 2012.

04-23-2012, 02:09 AM
it seems you need to unwrap it first. the gaps could be some overlapping uws I assume.

hope this helps

04-24-2012, 09:41 AM
I've tried adding the various unwrap modifiers rather than using the unwrap option in the rendering dialog -- doesn't seem to help.

04-24-2012, 10:54 PM

I attached the screenshots from max uv related.
on the left side is the provided uv in the model on the right side i simply put a unwrap uv modifier on it and in the uv editor done a pack uv.
I know its far away from perfect but it works for baking. in the zip document is the ive exported with the baked texture.

04-26-2012, 07:13 PM
Just a clarification: Did you unwrap only the stuff associated with the front of the model? If you zoom out in the Edit UVWs window, you can see that there are polygons for the sides and head as well -- did you pack those too?

04-26-2012, 07:32 PM
here is the first set of screenshots showing what i tried. i can't seem to get the same results as you did.

04-26-2012, 07:33 PM
here is the second set of screenshots

04-26-2012, 07:34 PM
and... here is the final screenshot =)

(sorry, vizard's forum makes you type at least 10 characters)

the result in vizard is a very choppy model with tons of holes, but the parts that are rendered properly look great. perhaps pelt modeling would help? i don't understand why your packing looking different and why you were able to produce a perfectly intact model

04-30-2012, 02:05 PM
Hi JDE. I've taken a look at your model. Chris, since you're using Vray, I have some tips for you as well.

At a glance, the problem look to be related to baking with Alpha and overlaping UVs. If you're also exporting using DXT1 texture compression, this would explain the odd cut-offs in the model since DXT1 uses 1 bit alpha.

I've attached a few images showing typical bake and export settings, and how the model looks when I bake it and bring it into Vizard. I'll attach the work files in the next post.

In the model I see the following issues:
- The original model has unwelded vertices and overlapping faces. It looks like you already fixed most of these in your version of the model.
- The scale transform should be collapsed with reset xform
Chris: It looks like you're using vray, which should still be able to get decent results without doing much cleanup (other than an overall weld)

- You have too much space between UV islands in the bake version of the UVs. This means you'd need to use a larger texture to get the same texel density on the surface of the model than one that was packed more efficiently. For the baking channel (ch 3), use 60 as the threshold angle and 0.005 for the spacing. I don't recommend letting render to texture do the unwrap for you, because it always wastes space by trying to separate things by material ID. The equivalent in a manual unwrap is to use the Flatten Mapping unwrap type.
- Unwrapping based on normals for channel 1 is fine for the diffuse texture and shouldn't cause problems as along as you aren't trying to bake to this channel.

- It looks like you're baking with vray. Stick to vray's materials and lights to get better results. Some of the standard lights and materials don't play nicely in bakes and renders.
- In Color Mapping, in VRay's render settings, switch the type to gamma correction and set the gamma to 1.8. Also check "linear workflow". This will both adjust the gamma curve of the lighting to match your monitor, and also prevent materials and textures from becoming washed out. This method requires the use of Vray's materials to work properly.
- You can improve the results a little by adding a turbosmooth modifier to your model and setting the render iterations to 2. This is just to affect the way the bake looks - you'll still be exporting the lower-poly model.

- Your edge padding is set to 2. This can cause seams to appear on lower mip levels, since it'll be sampling from the background color. I recommend setting it to 16.
- You are baking to an RGBA, instead of RGB. This will also have problems on lower mip levels. For solid objects, change the map output settings to render without an alpha channel.
- It looks like you're doing it already, but make sure the output material is a Standard:Blinn material. When baking to any kind of completemap, the target map slot should be Diffuse.

- Looks fine, from what I can see. It would be useful to get a screenshot of the rest of the settings though.
- At the bottom, under "Miscellaneous" make sure "convert units to" is set to Meters. This will make sure any model that is at the intended scale in Max units will also be the right size in Vizard.

04-30-2012, 02:08 PM
I've attached the Max file, the Vizard export (.ive) and the .tif version of the baked map.

05-03-2012, 06:01 AM

sorry for being late with my answer. I totally forgot about this topic.
The model and unwrap I provided was just a 2 minute shot without velding the seams just to show where the problem is caused.
Unfortunately my mouse finger knows how time consuming it can be to unwrap a model in a proper way. But if you take the time you will get stunning results.

Thanks Michael for taking it up and showing how it has to be done right.

11-11-2016, 07:07 AM
Have a look at this for advance baking for Vizard
Really amazing and very informative!!!!
I learnt a lot!!!
YouTube Video Link-