Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Help  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 56
Posts: 56   Pages: 6   [ Previous Page | 1 2 3 4 5 6 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 26791 times and has 55 replies Next Thread
Ceciliabr
Advanced Member
Member's Avatar

Denmark
Joined: Jul 7, 2013
Post Count: 269
Status: Offline
Reply to this Post  Reply with Quote 
Re: Photo-video rendering plug-in

I love it!



We can see how beautiful the light panel makes the light fall on her hair and arms.

And we can see the point light reflecting in her eyes.




Great, great, great job!
This takes lighting in SH3D to a new level.

Cecilia
[May 29, 2018 1:31:33 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://cecprojects.wordpress.com [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 234
Status: Offline
Reply to this Post  Reply with Quote 
Re: Photo-video rendering plug-in

We can see how beautiful the light panel makes the light fall on her hair and arms.

And we can see the point light reflecting in her eyes.
Glad to see you've found a good use for these new lights!

This takes lighting in SH3D to a new level.
I think so too.

I hope they will also be useful to others.

Enko
----------------------------------------
EnkoNyito gallery
[May 29, 2018 3:25:50 AM] Show Printable Version of Post    View Member Profile    Send Private Message    https://sites.google.com/site/enkonyitogallery/ [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1400
Status: Offline
Reply to this Post  Reply with Quote 
Re: Photo-video rendering plug-in

This takes lighting in SH3D to a new level.
It does indeed. Quite amazing. Congratulations and thanks, enkonyito! Without yet having had much time to experiment, it seems to me that the new light types can give softer illumination with fewer light sources, and that rendering (therefore?) will be faster. Looking forward to testing further even if I suspect I shall have to rely on examples and intructions to make full use of your work.

Forgive me for asking a couple of what probably may be silly questions/wishes:

  • does the renderer rely on the description field to determine the type?
    description#1=PointLight type
    description#2=TriangleMeshLight type

  • Would adding a planIcon# simplify placement of the different lights in the 2D view?
  • Could also having a TriangleMeshLight with other colours be useful?
    Something closer to incandecent (lightSourceColor#2=#BB9854) maybe?
ok
[May 29, 2018 11:53:51 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 234
Status: Offline
Reply to this Post  Reply with Quote 
Re: Photo-video rendering plug-in

@okh

it seems to me that the new light types can give softer illumination with fewer light sources
This is especially true for light panels (TriangleMeshLight type) as shown in the Sunflow doc (page 54).
I also found it in my renderings to simulate the interior natural light.

does the renderer rely on the description field to determine the type?
Yes, the PhotoRenderer class uses the description of the light object to differentiate types.
String lightDescription = light.getDescription();
// SphereLight type
if (lightDescription == null
|| lightDescription.contains("SphereLight")) {
...
}
// PointLight type
else if (lightDescription.contains("PointLight")) {
...
}
// TriangleMeshLight type
else if (lightDescription.contains("TriangleMeshLight")) {
...
}
We can then assign a type to a light we want to create.
The TriangleMeshLight type is special because the coordinates of the vertices are statically encoded so the shape is limited to a single-sided panel.
As it is rotating, nothing prevents to use it for an existing object.
(Light panel #1: opaque when off, Light panel #2: invisible when off, Light panel #3: visible when selected and not viewable in rendering).

Would adding a planIcon# simplify placement of the different lights in the 2D view?
For those I created, given their depths, it was not really necessary but if you want to add a type to the description of your lights it could be useful.

Could also having a TriangleMeshLight with other colours be useful?
Something closer to incandecent (lightSourceColor#2=#BB9854) maybe?
The default color is daylight (lightSourceColor#2=#6D7991) but since the PhotoRenderer class retrieves the color of the object to use as a light source color, you can change it.
int lightColor = lightSource.getColor();
HomeMaterial[] lightMaterial = light.getModelMaterials();
if (light.getColor() != null) {
lightColor = light.getColor();
} else if (lightMaterial != null && lightMaterial.length == 1
&& lightMaterial[0].getColor() != null) {
lightColor = lightMaterial[0].getColor();
}

----------------------------------------
EnkoNyito gallery
[May 30, 2018 3:56:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message    https://sites.google.com/site/enkonyitogallery/ [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1400
Status: Offline
Reply to this Post  Reply with Quote 
Re: Photo-video rendering plug-in

Thanks for this. Did experiment some more, and - as you say - the light panels (TriangleMeshLight type) are especially useful for creating softer illumination. And very useful it is, as I cannot be bothered with lots of lightsources around the room to get the perfect render. With the TriangleMeshLight it is easy to shape and adjust with one or two lamps. Made one with incandescent colour, icon and planIcon. While it is true, that a planIcon does not show when the model is kept at zero depth, SH3D will let you resize also the depth, and voilĂ , the planIcon is visible showing the direction of the light. For now this does the trick for me. I might make a fireglow-ish one at some point (lots of fireplaces and candles here) and possibly experiment some with angles.

Thanks again - very very useful set of tools.

ok
[May 30, 2018 2:22:38 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
bdfd
Advanced Member
Member's Avatar

France
Joined: Mar 29, 2014
Post Count: 1653
Status: Offline
Reply to this Post  Reply with Quote 
Re: Photo-video rendering plug-in

TY enkonyito ! hugs

I found a solution for my opaque windows with your objects and PVR 1.5. applause applause applause


In this first picture, light panels (in front of window) are at 0% : we see external flowers.


In this second picture, we have opacity and light with :
at left of the door, the light panel is at 5%,
at right of the door: a light panel is at 50%.
=> We don't see external objects, just light.

smile
----------------------------------------
5.7 - W10 64b
[Jun 20, 2018 7:22:11 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 56   Pages: 6   [ Previous Page | 1 2 3 4 5 6 ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2018 eTeks - All rights reserved