WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Vizard Shaders vs. Texture Baking (https://forum.worldviz.com/showthread.php?t=4200)

jde 04-12-2012 01:35 PM

Vizard Shaders vs. Texture Baking
 
1 Attachment(s)
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?

farshizzo 04-16-2012 10:54 AM

What format are you exporting the model to?

jde 04-16-2012 11:19 AM

.ive, but I've tried .3ds and several others -- same result.

farshizzo 04-18-2012 09:21 AM

When exporting to .ive, are you enabling vertex normals and lighting in the export options dialog?

jde 04-18-2012 11:40 AM

1 Attachment(s)
Thanks for the reply -- I've attached the settings I'm using.

jde 04-18-2012 12:03 PM

2 Attachment(s)
I'm also attaching the original model file and my Render to Texture settings from 3DS Max 2012.

chris_user 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

jde 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.

chris_user 04-24-2012 10:54 PM

2 Attachment(s)
hello,

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.

jde 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?

jde 04-26-2012 07:32 PM

5 Attachment(s)
here is the first set of screenshots showing what i tried. i can't seem to get the same results as you did.

jde 04-26-2012 07:33 PM

5 Attachment(s)
here is the second set of screenshots

jde 04-26-2012 07:34 PM

1 Attachment(s)
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

Veleno 04-30-2012 02:05 PM

5 Attachment(s)
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:
model
- 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)

Unwrapping
- 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.

rendering
Chris:
- 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.

baking
- 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.

exporting
- 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.

Veleno 04-30-2012 02:08 PM

3 Attachment(s)
I've attached the Max file, the Vizard export (.ive) and the .tif version of the baked map.

chris_user 05-03-2012 06:01 AM

Hello,

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.

rajnishv 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-
https://www.youtube.com/watch?v=0MOX...nnel=3dRealism


All times are GMT -7. The time now is 10:22 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC