Java 3D: How to Display Constellation Lines and How to Turn Them On and Off (with Source Code)

Опубликовано: 05 Апрель 2026
на канале: fukinotou11d
80
1

#ConstellationLines #Planetarium3DModel #SwitchClass

This video explains how to use the Switch class to switch between one with constellation lines marked and one without.


0:00 Java 3D: How to Display Constellation Lines and How to Turn Them On and Off
3:58 Copying CelestialSphere_nasa.obj (Created in the Previous Video), and Renaming It
4:59 Drawing Constellation Lines on starmap_2020_4k.png by Yourself
7:23 Downloading constellation_figures_4k.tif from NASA, and Using It
8:40 Using white constellation lines on constellation_figures_4k.tif
8:49 and combining it with starmap_2020_4k.png
13:02 Adding colors to some of the constellation lines on starmap_constellation_128.png
17:31 Source Code Explanation
22:57 Modifying CelestialSphere_nasa.obj and CelestialSphere_nasa2.obj
24:09 Run
New Google Site:
https://sites.google.com/view/flying-...
https://sites.google.com/view/flying-...
https://sites.google.com/view/flying-...
https://sites.google.com/view/flying-...


Source code described in this video (new Google Site):
https://sites.google.com/view/flying-...

Source code described in the video,
"Java 3D: How to Create a Huge Virtual Planetarium in Blender, and Load It"
https://sites.google.com/view/flying-...


I noticed that sometimes we could not access BlendSwap which said "It's likely the website's certificate is expired."

Like Google Poly 3D models, I created the page where you could download BlendSwap 3D models I used in my videos, just in case you couldn't access the site.

Click the corresponding link. Click the download mark button at the top right to download the model.
BlendSwap 3D Models I Used in My Videos:
https://sites.google.com/view/flying-...


Poly was shut down on June 30, 2021. You can download all the Poly .obj models I used in my videos from here:
https://sites.google.com/view/flying-...

I don't own any of BlendSwap, nor Google Poly models, so credits go to their respective and rightful owners. Please follow the CC Zero license, or the CC-BY 3.0 license when you use them.

CC-BY 3.0:
https://creativecommons.org/licenses/...
https://creativecommons.org/licenses/...


3D model files I used:
1) Pomeranian Creazilla Open-Source License (C) by Michael
https://creazilla.com/nodes/3518148-p...
License Terms:
https://creazilla.com/pages/11-creazi...
If you can't access the above link, download the model from here:
https://sites.google.com/view/flying-...

2) Female CC BY 3.0 US (C) by Reallusion
http://www.sweethome3d.com/freeModels...
License Terms:
https://creativecommons.org/licenses/...

3) Dancer MorriganAensland 2 TheWaveVR Public/Remixable (CC-BY) (C) by Evol-Love
https://sites.google.com/view/flying-...


Image files I used:
1) Deep Star Maps 2020 & Constellation figures in celestial coordinates
Visualizations by:Ernie Wright (C) by NASA/Goddard Space Flight Center Scientific Visualization Studio. Gaia DR2: ESA/Gaia/DPAC. Constellation figures based on those developed for the IAU by Alan MacRobert of Sky and Telescope magazine (Roger Sinnott and Rick Fienberg).
https://svs.gsfc.nasa.gov/4851#media_...
License Terms:
https://asdc.larc.nasa.gov/copyright-...
https://www.nasa.gov/nasa-brand-cente...

To learn more:
About Java 3D:

Free online books:
Dr. Andrew Davison's "Killer Game Programming in Java":
http://fivedots.coe.psu.ac.th/~ad/jg
Dr. Andrew Davison's "Pro Java 6 3D Game Development":
http://fivedots.coe.psu.ac.th/~ad/jg2


About Java:
   • Java Programming Tutorial - 2 - Running a ...  
https://www3.ntu.edu.sg/home/ehchua/p...


To use the KeyNavigatorBehavior class in this source code, I used the following code:

1) Part of code from BackgroundApp.java included in the source bundle
that accompanies Sun Microsystems' Java 3D API Tutorial
Copyright (c) 1996-2000 Sun Microsystems, Inc. All Rights Reserved.

Copy of the above tutorial:
https://web.cs.ucla.edu/classes/cs269...
Change ch0.pdf to ch1.pdf-ch7.pdf in the address bar to display other chapters.

Example source code:
http://www.interactivemesh.org/off/do...


Java3D FAQ
https://jogamp.org/wiki/index.php/Jav...

Java3D Forum
https://forum.jogamp.org/java3d-f3728...


Thank you for watching my video.