magneto Posted January 25, 2012 Share Posted January 25, 2012 I have a simple dome with some spheres showing the colors of the lights. I am trying to place pointlights at these points so they follow the same points as the spheres. Spheres can be discarded if there is a way to show the object color in the viewport (not light color). Is there any way to do this? I couldn't do it using the merge sop, etc. Thanks. Quote Link to comment Share on other sites More sharing options...
Macha Posted January 25, 2012 Share Posted January 25, 2012 I think you have to instance the lights for this to work. You also need to use a light-template with a light and a shadow shader instead of a standard light from the shelf. Perhaps it is possible to use PBR as well and make the points emit light that way but I'm not sure how easy it is to get clean results with that. Other than that...uhmm...point clouds probably but I'm not much of an expert with that method. Quote Link to comment Share on other sites More sharing options...
Denis Kozlov Posted January 25, 2012 Share Posted January 25, 2012 I have a simple dome with some spheres showing the colors of the lights. I am trying to place pointlights at these points so they follow the same points as the spheres. Spheres can be discarded if there is a way to show the object color in the viewport (not light color). Is there any way to do this? I couldn't do it using the merge sop, etc. Thanks. you can select your spheres, and use geometry light button off the shelf. points_and_lights.hip Quote Link to comment Share on other sites More sharing options...
magneto Posted January 25, 2012 Author Share Posted January 25, 2012 @Macha: I am not sure how to do that. @Denis: Just tried it and that works but it doesn't show the light effects in the viewport. I just need to show the interactivity of the lights in the viewport. Is there a way to get the point position of a point? I have 3 separate points, created by the Add SOP and modified by VOPs, but I am not sure how to get each point's position. Then I could reference this in the Transform channels of the lights. Quote Link to comment Share on other sites More sharing options...
Denis Kozlov Posted January 25, 2012 Share Posted January 25, 2012 @Macha: I am not sure how to do that. @Denis: Just tried it and that works but it doesn't show the light effects in the viewport. I just need to show the interactivity of the lights in the viewport. Is there a way to get the point position of a point? I have 3 separate points, created by the Add SOP and modified by VOPs, but I am not sure how to get each point's position. Then I could reference this in the Transform channels of the lights. You can use render region for example or interactive render for light setup and tuning. Quote Link to comment Share on other sites More sharing options...
magneto Posted January 25, 2012 Author Share Posted January 25, 2012 Yeah although for this instance, the end result isn't important. Basically I am just trying to make a prototype of a system in Houdini so I can use Houdini at work. In the actual system people will also rely on the viewport preview. So that's why I want to get it working using point lights. The viewport preview they give is actually pretty good for this. So all I need is 3 point lights to follow 3 points in space. Quote Link to comment Share on other sites More sharing options...
static Posted January 25, 2012 Share Posted January 25, 2012 you could use the point expression: here's a file with a simple script to attach point lights to points to see it in the viewport. Point instancing lights will still render faster though. light_populate.hip 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 25, 2012 Author Share Posted January 25, 2012 Thanks alot static. Will try it when I get home. Rendering speed isn't important for this prototype though. Quote Link to comment Share on other sites More sharing options...
static Posted January 25, 2012 Share Posted January 25, 2012 Thanks alot static. Will try it when I get home. Rendering speed isn't important for this prototype though. np, hope it works for you. 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 26, 2012 Author Share Posted January 26, 2012 I just tried the file, but it says: module object has no attribute populateLights, when I type hou.session.populateLights() into the python shell. Also there is a python error when I open the file. Any ideas? Quote Link to comment Share on other sites More sharing options...
magneto Posted January 26, 2012 Author Share Posted January 26, 2012 Ok I did it using the point expression. Now it works great Quote Link to comment Share on other sites More sharing options...
digitallysane Posted January 26, 2012 Share Posted January 26, 2012 Rivet object does it too. 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 27, 2012 Author Share Posted January 27, 2012 Rivet object does it too. Thanks, that's a great tool. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.