KeyShot Forum

Technical discussions => General discussion => Topic started by: rkulshrestha on October 07, 2016, 03:15:59 PM

Title: Interior lighting issues
Post by: rkulshrestha on October 07, 2016, 03:15:59 PM
I tried to do a simple interior lighting project as an experiment and am attaching the ksp file, screenshot and rendered image.
I have the following questions:
1. Why do I have a blowout on the left side?
2. Why do I have speckles?
3. There is a separate bulb in the ceiling lights. The cover has milky white material and the bulb itself has IES light. why is the light spreading on the ceiling?
4. Why are there unwanted white splotches on the walls?
5. Why is the floor lamp spotlight falling on the floor, it is perfectly centered in the 3D model on top of the coffee table.
6. Why is the wattage setting at .005 and not a regular 20 to 100watts?

Shivani
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 09, 2016, 04:15:26 AM
Nothing like holidays to motivate you to play with KS!

I did another render experiment and the result are far better. Now plan to duplicate the ceiling lights and see the over effect. Havent added environment or backplate as yet. Speckles still show up.
I re-did all the lights carefully this time. Named each part as the body, cover and bulb. So the body gets painted black, the cover a grey glass basic and the bulb takes the light material.

I have 4 lights types here, Fireplace, Floor Lamp, Ceiling Light and Outside (Porch) light ( which has not been lit up in this image). Strangely, the watts I am applying are in the range of .0005 to .1 watts. Don't know why. The back wall picture was enhanced using emissive light.

There is considerable difference between a screenshot render and a real render. So I had to go step by step, first illuminating the fireplace, then the floor lamp, then the ceiling lights and now I will do the Porch lights next time. Each time I set up a light I did a render to see the effect, then move on to the next light. I chose to start with the smallest lights, starting with the largest lights would presumably drown out the effects of the smaller lights.

There are too many lights to choose from and impossible for me to remember which light I used, so it's a good idea to create a new material folder (Favourites or some such) and duplicate the lights you use into it)

Applying materials in the standard docked windows is a hassle. So I would drag the right side window next to the left side window. This brings the materials window closer to the scene tree. Once finished, I enable window docking to get the standard layout again. But this really helps to avoid painting material over the wrong surface.

The scene tree was really important. Its good to move all the lights to a separate folder and separate folders for separate lights. In the image below, I will now duplicate the ceiling lights into new positions and this helps with the working of it all.

The outline works only when the scene tab is activated. I didn't know this, so took some time to discover this feature.

I am attaching the KSP file for anyone who wants to play with it. We really need some good tutorials on interior lighting.

For those who know all this, no apologies, I came back to KS after a long time and am on the path of rediscovering this amazing piece of software. This post is meant for all those who don't know :)

Shivani
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 09, 2016, 04:30:07 AM
I was trying to see the effect of caustics enabled on the red vase. For some reason, if I enable caustics the ceiling lights flare up and become a splotch of white. Just writing up my experience for future reference instead of keeping a journal! And maybe it will help someone.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 09, 2016, 04:32:52 AM
I don't have a front wall so light is probably pouring in from the camera side. Debating whether I should have a fully enclosed room for a better effect.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 09, 2016, 04:49:10 AM
I know I'm going to forget this. The modular lights once applied always seem to point in the wrong direction. You have to use the move tool on the bulb to rotate them to the right direction. Here's another image rendered for 20 minutes. The ceiling lights are not perfect and the floor is washed up now. I think I have to increase roughness on the floor. The speckles won't go away.

The second is a screenshot with caustics enabled.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 09, 2016, 04:54:49 AM
For the floor just reduce brightness from the texture tab.
Title: Re: Interior lighting issues
Post by: Rex on October 10, 2016, 04:05:47 PM
Hi rkulshrestha,

Thanks for sharing your thoughts and process. The wattage values are so low because your scene is set to use Inches while it looks like your model was created in meters. Try changing the scene units to meters in the edit menu and adjusting the wattage values accordingly.
Title: Re: Interior lighting issues
Post by: jhiker on October 11, 2016, 01:30:12 AM
Quote from: rkulshrestha on October 09, 2016, 04:32:52 AM
I don't have a front wall so light is probably pouring in from the camera side. Debating whether I should have a fully enclosed room for a better effect.
I may be wrong but I think I saw a tutorial that demonstrated the interior mode works best when the scene is enclosed, i.e. four walls and a ceiling. If you have a wall missing it might affect the 'interior mode' rendering algorithm.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 11, 2016, 04:11:21 AM
Wow, Thanks Rex, I won't have spotted that in a thousand years! I think I will redo this.

Thanks Jhikers - will take your comment on board and include the suggestion in my next attempt.

I do wish there was a way to get more feedback on how to improve this simple scene. The interiors community is a large one and Keyshot would be a great product for them. It would be nice to have people play with the attached KSP's, improve on it and post the results as an educating mechanism. Same thing with all the Youtube videos, it would be great to have access to the associated KSP files so that we can try and duplicate the tutorial.

Cheers
Title: Re: Interior lighting issues
Post by: Will Gibbons on October 11, 2016, 09:18:11 AM
I just opened your 2 KSP files. A few things I see to be mindful of.

1. Your scene is about .01"x.01"x.01", and the other is less than .5"x.5"x.5". It is so small that the light is not behaving normally (also why you need to turn the muliplier down so low)
2. The scale will also affect your textures and the scaling there.
3. An interior renders best with interior lighting mode.
3.1. For interior mode to work properly, you need a watertight space (glass on window) and no missing walls/ceilings.
4. Some of your materials have been set to the default of 'diffuse' material type, which won't behave naturally. Try changing to other material types.
5. IES profiles are directional, whereas area and point lights are not. (sounds like you may have discovered this)
6. Try keeping absolute black and absolute white out of your materials and light by not using pure white or black for any values. This helps to avoid hotspots.
7. Increase material samples in areas that need further refinement.
8. Using corresponding bump maps for areas that you wish to texture will help cast proper highlights and shadows.
9. Use roughness to cut down on glossiness of materials, which should help reduce areas of over-reflectivity.
10. If your rendering is not looking like it does in the realtime view, try using max samples or max time instead of advanced render settings.

These should help you with your interiors.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 12, 2016, 01:59:02 AM
Hi Will

Thanks for responding, been through a few of your tutorials!

I have googled and read every article on scaling in Keyshot before responding to your post. I have a few questions:

1. How did you figure out the size of the models.

2. My model in SketchUp is 650cm x 460cm. When I export that the scale should not be reducing by such a large factor (5"x5"x5").

3. What should be the ratio of an environment to the model. How do I determine the height and size of the environment in relation to the model. The height and size are adjustable parameters.

4. After experimenting a lot, I decided to use a the HDRI you see below. I adjusted the scale using the trees in the background as a reference. (environment scale.jpg). I scaled up in all directions by a factor of 10. Did not adjust height or size of the environment.

5. I the set the scale units to inches and measured the vase position from the left side to right side (position images). This works out to 116" or 295cms, still short of the 462cms.

6. Then I lit up the ceiling light and had to bump it up to 5000Watts to get a little twinkle of a light.

Appreciate if you can give me some more guidance.

Cheers

Title: Re: Interior lighting issues
Post by: rkulshrestha on October 12, 2016, 05:56:14 AM
Also posting the bip file, just in case.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 12, 2016, 06:39:08 AM
OK got somewhere. Clicking on the full model in the scene tree gives the full model size in inches.
Title: Re: Interior lighting issues
Post by: Will Gibbons on October 13, 2016, 07:47:30 AM
Quote from: rkulshrestha on October 12, 2016, 01:59:02 AM
Hi Will

1. How did you figure out the size of the models.

2. My model in SketchUp is 650cm x 460cm. When I export that the scale should not be reducing by such a large factor (5"x5"x5").

3. What should be the ratio of an environment to the model. How do I determine the height and size of the environment in relation to the model. The height and size are adjustable parameters.

4. After experimenting a lot, I decided to use a the HDRI you see below. I adjusted the scale using the trees in the background as a reference. (environment scale.jpg). I scaled up in all directions by a factor of 10. Did not adjust height or size of the environment.

5. I the set the scale units to inches and measured the vase position from the left side to right side (position images). This works out to 116" or 295cms, still short of the 462cms.

6. Then I lit up the ceiling light and had to bump it up to 5000Watts to get a little twinkle of a light.

Appreciate if you can give me some more guidance.

Cheers

1. Looks like you figured this one out.

2. I've noticed that Sketchup models can come into KeyShot at an odd scale. I'll follow up with someone else at KeyShot to see if I can pinpoint the reason for that. In the meantime, sit tight. Maybe a workaround is to calculate the factor that it's being scaled down by and scale your model up by that same factor in Sketchup before importing into KeyShot so it may be scaled down to the size you want. See if that works until a better solution is found.

3. The Environment (I assume you mean HDRI) in KeyShot should be quite a bit larger than your model. If you're doing an interior and using the Sun/Sky HDRI, I'd make the environment about 10-20x larger than your model. Just eyeball it.

4. Your environment should be about 10x larger than you have it there. An HDRI is never intended to be used as a background, rather as a light source. You can go ahead and use a totally different (higher-resolution) backplate in conjunction with an HDRI to create the 'environment' you want to.

5. Be careful when changing units within KeyShot as whether you convert or correlate has very different effects on the KeyShot scene. Ideally, I'd handle all scale/unit conversion within your 3D app (Sketchup in your case).

6. Watts in KeyShot are not the same Watt unit used on lightbulbs. Use either Lumen or Lux is my recommendation. For reference, a 100w Lightbulb is equal to 1600 lumens.

Let me know if any of that helps.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 13, 2016, 09:26:20 AM
Hi Will

Thanks for the response, all of it helped and I am on to my second experiment.  :)

This is a model from http://www.sketchuptexture.com/ which is a great community for free models and textures.

All the advice you gave helped reduce the effort in rendering this model and I am attaching the first draft.Mot everything has material applied to it as yet cos the first thing I'm trying to do is get the lighting right.

I need some advice on the ceiling lights. I get this hallo around them and a black spot in the centre. Any advice on the best way to construct a ceiling light and which materials are the best to apply to which component to get a realistic render?

The SU model is above 50 MB as is the Bip and KSP otherwise I would have posted it.

Thanks in advance.

Raj
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 13, 2016, 09:35:58 AM
Hi Will

The reference image looks like this

Raj
Title: Re: Interior lighting issues
Post by: Will Gibbons on October 13, 2016, 12:41:09 PM
I played around with a simple model I made, but ran into some strange scaling issues as well. I think I know what caused it, so if I can fix the issue tomorrow, I'll share the scene.

When working with physical lights in KeyShot, there's a lot to take into consideration. Scale as previously mentioned has lots to do with it. In the example I made, I created a recessed cylinder in a ceiling. I applied a chrome material to the inner surface of the recessed area to act as a reflector. I put a simple cylinder to act as the light bulb, and then applied an IES light to it in KeyShot. Some of the IES light profiles in the KS library are better than others, so try a few out. Or feel free to use IES profiles from elsewhere online. Lastly, I made a piece to cover the recessed light (shaped like a contact lens). In real-life, this would be a piece of frosted glass, but in KeyShot, I used the advanced material to create a translucent material to allow the light to shine through it and dial in the material appearance.

The halo effect on the ceiling you were getting is light that is reflecting onto the ceiling. If you don't want that, your ceiling light should be fully enclosed.

I've attached a screenshot of the test scene I created, as well as the HDRI settings I was using. If I can sort out the scaling issue, I'll upload it for you to play with. I hope this helps a bit.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 14, 2016, 12:46:28 AM
Hi Will

Thanks for the response. Amazing support!

I started off just trying to get lighting right and reach the quality boyd_747 was reaching. The final render shots on sketchuptextures.com are also amazing, like the previous one I posted.

The last SU scene has 2 large polygon spheres which are lit then hidden to give interior lighting more volume. It's a nice shortcut, but takes away from the realistic effort.

I am rebuilding the ceiling lights following your advice and will check out the effect. In the meantime I have two questions:

Since we can isolate parts with material and move them around in KS, is it possible to save them in a separate folder. That way I could have a ready to use ceiling light for new models.

Second, is it possible to have an HDRI inside an interior? Can I use the HDRI editor to place pins inside the interior? This avoids messing around with above mentioned hidden polygons in the SU model.

Cheers
Raj
Title: Re: Interior lighting issues
Post by: bdesign on October 14, 2016, 02:21:45 AM
Quote from: rkulshrestha on October 14, 2016, 12:46:28 AM
Second, is it possible to have an HDRI inside an interior? Can I use the HDRI editor to place pins inside the interior? This avoids messing around with above mentioned hidden polygons in the SU model.
Hey Raj-

Check out my forum post here:  https://www.keyshot.com/forum/index.php?topic=13204.0 , in which I discuss a workflow for incorporating HDRI lighting and reflections within an enclosed space, Interior Mode render.

Cheers,
Eric
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 14, 2016, 06:26:52 AM
Hi Eric

Thanks for the post. I did read this a while ago during my research. What you did was way above my skillset  :D. Any chance you can share the bip file so I can study it more. How did you get those really sharp ceiling lights, even what I did below doesn't match what you achieved.

In the meantime, I set about creating a very accurate ceiling light taking all the advice on board. Chrome interior, concave lens (made out of Sketchup skin and bubble generator) and very accurate circles to prevent light leakage.  The results are much better!

Is my reference image on the previous page a product of extensive Photoshop?

Cheers
Raj
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 14, 2016, 07:43:13 AM
Why don't the IES lights point downwards when I apply them to an object? I have to go and rotate them individually each time.
Title: Re: Interior lighting issues
Post by: Will Gibbons on October 14, 2016, 08:07:25 AM
Hi Raj,

To address some of your earlier questions. You don't want to use an HDRI inside an interior, although Eric has found ways to allow more lighting from an HDRI to come into an interior, it doesn't create the most realistic effects. That said, his thread has a wealth of information on the topic, so I recommend reading it again.

Your last example is much improved. It's good to do quick/simple tests until you find predictable and repeatable results, and then go about creating a more impressive/complex scene.

For your last example, you'll want to have at least 4 ceiling lights in the room probably. You can also rely on some light from an HDRI. I suggest using KeyShot's sun/sky HDRI generator, and then rotating your environment so the sun is coming in through the window. It'll make your scene very warm, so I recommend desaturating it a bit for more white light. Next to consider is the materials inside the room. A rough rock material is very diffuse and dark in color and won't reflect much light compared to an interior with white, smooth walls/surfaces. Make sure you're using realistic materials inside your interior. You can also add accent lighting, such as illuminating the floor lamp in your scene for additional light.

Once you've done that, you can add a plane in the ceiling and apply an area light to it and hide it from view.

Your IES lights are based on the direction of the geometry you've applied them to. If you've got a cylinder with a local 'up axis' of -y and you apply an IES profile that uses KeyShot's default 'up-axis' of y, then you'll need to rotate the cylinder 180 degrees to point down.

You asked if your reference images are heavily Photoshopped. I don't think they necessarily are, but each scene has been optimized and well-lit following the rules of the rendering program used.

One of our support members looked at one of your sample scenes and saw some confusing stuff from scaling issues to odd file name extensions.

Can you describe what version of KeyShot you're using and your workflow?
Where are your models from?
How do you import the geometry into KeyShot?
What file formats are you importing into KeyShot?
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 14, 2016, 08:43:55 AM
Hi Will

Its Keyshot 6. Dont know what you men by Workflow though, I haven't been through though those tutorials as yet. I just download  SU models from 3Dwarehouse or from Sketchup textures.com.

I save the revised SU model after tweaking it and then KS use it to import it. The formats are always skp files.

The odd names are because I am using a rudimentary naming technique in Sketchup Outliner which follows a similar hierarchical system as scene tree does. Also, some of the naming ceremony is native to SU so I don't bother with that in the interest of speed.  I'm getting my feet wet with KS after a long time. I do a fair amount of work in SU. On holidays right now and been spending my time Keyshotting every thing. Once I get good at this, I'm gonna teach a whole bunch of guys. I was an early evangelist which is how I made full member  :)

I'm making some progress as you can see. One of the tricks I was using was applying materials to an object so that other linked surfaces would pick up the same material. You can see the white box on the right side. That has the same color as the light source in the ceiling lamp. It works for an area light, but doesn't seem to work for IES lights.

This one thread as addressed so many issues, I hope others will find it useful.

Cheers Raj

Title: Re: Interior lighting issues
Post by: rkulshrestha on October 14, 2016, 08:43:33 PM
Its getting better. Not as snappy and crisp as the reference image, but an improvement. Thanks Will and Eric.
Title: Re: Interior lighting issues
Post by: rkulshrestha on October 16, 2016, 01:35:59 AM
And a second view. Some stuff outside the window still needs cleaning.