Lighting the Solar System - Omnidirectional light source (Sun)
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am creating a model of the Solar system and am trying to create a light source that appears like it is coming from the Sun. I have a spherical surface centered around the origin but when I place a light source within it the light of course cannot escape the spheres interior. I have tried altering the spheres transparency and surface properties with no luck, I am by no means an expert in lighting and surfaces so if anybody has experience I would greatly appreciate it!
2 Commenti
Image Analyst
il 14 Apr 2013
You haven't given us enough information about your model to answer this. Is this MATLAB, or a Simulink Model? You didn't list Simulink so I assume MATLAB. So if it's a MATLAB model, then you'd need to tell us what equations you're using, and what in the equation indicates whether light should be blocked or passed at the radius of your sphere.
Risposte (1)
Ahmed A. Selman
il 14 Apr 2013
I don't know really if Matlab is used for such tasks, but haven't you tried Simulink for easier handling of the problem? Such graphic tasks are made easy using the virtual reality modeling language (VRML). There is a reference model that comes with Simulink in
vrplanets.mdl
which exactly uses the idea you mentioned, and can be easily edited to include the texture of the sun as the image you posted. The rest, particularly the lighting of the planets, is all pre-set.
Vedere anche
Categorie
Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!