Jump to content


Instancing lights


  • Please log in to reply
7 replies to this topic

#1 jim c

jim c

    Illusionist

  • Members
  • PipPipPip
  • 385 posts
  • Joined: 01-November 08
  • Name:Jim Crafton

Posted 02 June 2012 - 07:44 PM

I'm trying to instance a bunch of point lights (around 300 in total). I'm noticing that the render has slowed to a crawl. Turning off shadows helps a lot, but it still horrible slow. Is this to be expected given the number of lights, or is it an indicator that I've done something else wrong?

I've got the attenuation set to Physical, the active radius turned on, and set to 1. The light intensity is 0.005. I've got a shot from the IPR so you can see the general idea I'm going for.

Attached Thumbnails

  • inst_lights.jpg


#2 jim c

jim c

    Illusionist

  • Members
  • PipPipPip
  • 385 posts
  • Joined: 01-November 08
  • Name:Jim Crafton

Posted 02 June 2012 - 07:58 PM

Well now I feel a little silly - forget to mention that I had SSS turned on for the instanced "rib" like shapes. Turning that off sped things up, maybe I can just live with out it.

#3 jim c

jim c

    Illusionist

  • Members
  • PipPipPip
  • 385 posts
  • Joined: 01-November 08
  • Name:Jim Crafton

Posted 02 June 2012 - 08:16 PM

Interesting, just changing the render type from micropoly to PBR, and PBR wipes the floor with mp. Any ideas why I would get such a massive speedup?

#4 pbowmar

pbowmar

    Illusionist

  • Members
  • PipPipPip
  • 302 posts
  • Joined: 15-June 04
  • Location:Vancouver, BC
  • Name:Peter Bowmar

Posted 02 June 2012 - 08:38 PM

SSS can be sped up radically, but you have to dig into the Mantra Surface and find the SSS nodes, and turn on Optimize Secondary Rays. Why this isn't exposed by default continues to baffle me :(

Cheers,

peter B
Peter Bowmar

#5 moondeer

moondeer

    Peon

  • Members
  • Pip
  • 84 posts
  • Joined: 28-September 11
  • Location:sacramento
  • Name:eric whitehead

Posted 02 June 2012 - 09:57 PM

i made it a habit of optimizing 2ndary rays everytime i use SSS. to help here are a few pics.

also, i've noticed that using true displacements with SSS can be rough as well. Lastly, since you've dug your way into the VOP depths, have a look at the presets. (pic 6 attached here).

Attached Thumbnails

  • HoudiniSCREENIE001.jpg
  • HoudiniSCREENIE002.jpg
  • HoudiniSCREENIE003.jpg
  • HoudiniSCREENIE004.jpg
  • HoudiniSCREENIE005.jpg
  • HoudiniSCREENIE006.jpg

Edited by moondeer, 02 June 2012 - 10:12 PM.

eric@cmivfx.com

#6 Jason

Jason

    King Tapir

  • Administrators
  • 3,708 posts
  • Joined: 08-November 00
  • Name:Jason Iversen

Posted 03 June 2012 - 07:21 AM

Another optimization (if you haven't done this already): set the "Active Radius" on the light you're instancing. It looks like the radii of illumination don't overlap all that much.
jason iversen
++odforce guy, and supervisor @ r+h, jiversen-at-rhythm
odforce g+ page: https://plus.google.com/103473736257525043693

#7 jim c

jim c

    Illusionist

  • Members
  • PipPipPip
  • 385 posts
  • Joined: 01-November 08
  • Name:Jim Crafton

Posted 03 June 2012 - 09:23 AM

Thanks guys. Jason, active range was one of the first things I stumbled on. Peter & Moondeer, thanks, I'll look into this.

#8 jim c

jim c

    Illusionist

  • Members
  • PipPipPip
  • 385 posts
  • Joined: 01-November 08
  • Name:Jim Crafton

Posted 04 June 2012 - 08:49 PM

Here's a shot of a test - PBR, sampling way too low, but renders in a jiffy. The light is from a "flashlight" and the floor lights that are starting to turn on.

Attached Thumbnails

  • test3_biomech_hallway2.jpg





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users