VRay BUG detection, the basic problem solving pipeline for rendering bugs in 3Dsmax and VRay.
Tags:Detecting Software Bugs in VRay,problem solving in 3dmax,software bugs in 3dmax,software bugs in Vray,vray program,vrayguide
Grab video code:
Alex: Hello VRay users Alex here your Vray Guide and today I'm bringing you a cool tutorial about VRay BUG detection or at least a way of finding and solving bugs. Lately, I got two emails from two users having problem with the scene illuminations and complaining about weird dots going all around the scene with different colors. And that remind me that back in 2006 I got the same bug that I was really hard struggling to solve it and eventually, I did solve it, but it took me a while. So anyway I've decided to make this tutorial just to help you out if you might get this bug as well I call it disco lights as you see here it's a different spot lights that illuminating all your scene it might be also with different colors and different shapes and size.
So basically the first thing that you want to check is your message VRay message if you're getting, a bounding box is too large or you're getting far from position or far from origin it means that your scene is a far, is far from the center so you need to position your scene on the center. And you just might want to check your scale units that you're working with scale units and I'm working with centimeters in USA probably and Canada you're working with inches. So just check this out that you're in real scale mode and your scene size is the real size you can use a tape to measure, to measure your distance, to measure your walls as you see here mine is 3, 2 centimeters I'm working with centimeters so it's a 3 meter it's really, really high ceilings.
So I'm in good shape, my scene is probably in good position and it's positioned in the center, so this is the first thing that you want to check. The next thing that you might want to check is your lights that your lights not touching anything or detecting anything. As you see here all my lights they have no collision with each other so this is the next thing that you want to check, your light position if you got any hidden lights or any other lights just make sure, you turn this off you're not rendering any hidden lights. Also make sure you don't have any duplicated lights you know sometimes it's happens when you work fast and you don't notice it, so just make sure you don't have light in light, in light sometimes when you make a group and you duplicate it may occur.
So that's for lights if the bugs still there if the bugs still occurs you can move on to checking your textures. So regarding textures, you might want to check your UVW Mapping it's very important thing that you have a UVW Mapping on all your models and all your objects. So I know sometimes it may also cause a bug to occur, so after checking all your models, all your objects got UVW Map align to them, you might want to check you might want to convert all your materials with VRay Scene Converter as you see here I got here a standard material and if I press convert to scene.
I'm going to get this message, I'm going to get this message if I'm using ray trace materials, ray trace materials are not VRay materials they're ray traced they're only supported by 3D Max not supported by Vray. So basically I cannot convert them I need to convert them manually so just select the object and convert and do this operation one more time VRay Scene Converter press it and check this standard material what's going to happen to in, now it's VRay material and if you see here if I use any high gloss in this or any parameters it give me a really weird number so you might want to recheck one more time all your materials.
The next thing is override material this is basically you're applying one material to a host scene and rendering it just use it here override material just put some VRay material in it and hit the render button. Basically what it does it applies automatically to all your scene one material if the bug occurs because of some wrong material, some detection material this should probably solve this. So if you don't get this disco lights by using this option you can make sure that this is your material and you might want to check your materials.
Okay, next thing you want to delete all your plains, all your DWG stuff everything that you brought from AutoCAD, ArchiCAD or any architectural program. I know this stuff sometimes comes with different with really weird names and the really weird objects. Some of them, some of these objects might even be unseen so basically the name is block. So if you want to delete all of them just duplicate your files save it with the plans and save another copy without the plans and just remove all your plans.
I would only recommend you to avoid using DWG's to extrude to create objects to extrude objects from them because once I got some really hard bug was link connection and only after removing the link and removing all DWG's I could resolve this disco lights bug this wrong illumination bug. So the next thing you want to do is select all your scene without the lights, without the cameras and convert it to editable mesh or editable poly and that way you will just kill all the modifiers and everything that can occur or cause this bug to happen.
And you should probably be okay on this stage if it still occurs and if it's and if it still happens what I did for the final thing is I moved folder, I just moved to another directory I opened there a new folder created new file and then merged into it only the objects that I knew that were created by me and had nothing to do with DWG files and were not extruded from DWG files. So basically all the models that you're sure 100% that are okay you just merge them in to your scene and this is how you solve this bug.
If you do this step by step, you should probably solve it, so let's just memorize it. If you're getting a message, far from origin or a bounding box is too large you first of all you want to check your scene position and use it and measure it with tape then check your lights, check your position, hidden lights or duplicated lights, check your textures use the scene converter check all the UVW Maps and the Ray trace material you need to convert manually. Use override option material to detect if it's a texture problem or not delete all the architecture plans check also hidden and unhide all the objects check if there is unseen objects the name should probably believe B block or something like that convert all the scene and to a editable mesh or editable poly.
And eventually delete all extruded object from plans or DWG files just use the snap tool remodel all your walls once again. The last thing if it didn't happen move the folder try to loose this link sometimes DWG plans they got, they connected to your DWG's in your 3D Max scene. So basically if you move a folder in another directory you should probably kill this link forever, so basically this is it if you follow this rules you should probably find a solution for this bug. I hope you enjoyed this tutorial and find this useful if you got any comments or any questions just post them on my blog. I'll be happy to help you this was Alex your VRay guide. I'll talk soon, bye.