Java 3D: How to Make 3D Models Punching Each Other Lightly (with Source Code)

Опубликовано: 18 Июнь 2026
на канале: fukinotou11d
53
0

#Java3D #Constellation #Punch

In this video, Ponta was upset by what Pom said, but Pom thought he was just trying to help him in his own way, so they had a little fight. I created the punchTheOtherLightly method and the lookAtTheOther method to make them behave that way.


0:00 Java 3D: How to Make 3D Models Punching Each Other Lightly
5:34 Creating a Punch Pose and Its Mirror Pose in Blender
9:32 Preparing Lines and Voice File Names
9:54 Creating Voice Files Using Ondoku
14:16 Using Audacity to Convert the Voice Files from .mp3 to .wav
17:02 Source Code Explanation
21:07 Initially Connecting Two Poses below a Switch Object
23:36 Creating the lookAtTheOther Method
34:15 Creating the punchTheOtherLightly Method
48:39 Run


For your convenience I have created a zip file for the model and sound folders I used in this video. Click the download mark button at the top right to download the model.
Model folder:
https://drive.google.com/file/d/1kNNM...
Sound folder:
https://drive.google.com/file/d/1ULHz...

New Google Site:
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 Make Leo Tell His Brothers Constellation Names"

https://sites.google.com/view/flying-...


Lines_and_voice_file_names
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 the Creazilla, 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 file 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...


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...


Software I used to create sound files:
1) Ondoku Voice files Created By ondoku3.com
https://ondoku3.com/en/
License Terms:
https://ondoku3.com/en/post/terms-lic...
2) Audacity
https://www.audacityteam.org/
License Terms:
https://www.audacityteam.org/about/li...


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.