Solar System in Processing - Part 4 (Light?)

edited March 2018 in Library Questions

Hi everyone,

I had recently viewed this video: Coding Challenge #9: Solar System in Processing - Part 3 (3D textures)

At 10:30s of this video, shiffman wants to create a effect like sunlight using pointLight at the position same as the sun sphere. The sun effect is done, but sun itself is darken. An there is no next video about Solar System in Processing which gives a solution. Can anybody help me how to create a sunlight effect?

Source code about this video: https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_09_SolarSystemGenerator3D_texture

pointLight inside the sun: solar system_01

pointLight inside the sun + ambientLight: (not perfect effect): solar system_02

Answers

  • pointlight in the sun, draw all the planets. Then ambient light, and draw the sun.

Sign In or Register to comment.