Star Sphere Star Color?

   1863   2   1
User Avatar
Member
2572 posts
Joined: 6月 2008
Offline
Hi All,

I have a sphere that is randomly filled with points. It is scaled very large to act as a background element for space scenes. Currently all stars are one color, white. I would like to introduce some red and blue colored stars as well. What is the best way to approach this? It might be nice if the color was linked to a size of the star as well. So larger stars might be red and smaller ones blue etc..

I tried adding color to the point randomly but it's not really working the way I described. Do I need to use a FOREACH to process each star? I would like the end solution to be as light-weight as possible with this just being a background element.

Attachments:
ap_star_sphere_example.hipnc (210.2 KB)
Untitled-1.jpg (80.2 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
338 posts
Joined: 12月 2014
Offline
You could project UVs on your points and use the Attribute From Map sop, export attribute to Cd. In this way you can paint your own image of the range of colors you want to use. As for linking color to star size, I would go about that with Copy Stamp expressions.
User Avatar
Member
2572 posts
Joined: 6月 2008
Offline
Thanks, I ended up using a PointWrangle to handle both tasks.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links