This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Notes | |
--This project shows how to add different types of lighting to 3D scenes (in this case, a cube) | |
--The original code was written by spacemonkey. This explanation is by ignatz. | |
--HOW TO USE THIS PROJECT | |
--There are a number of tabs at the top. Press on a tab to see its code. | |
--Work through the tabs from left to right, to see the project develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
--Flying demo | |
--by Andrew_Stacey and ignatz | |
--February 2014 | |
function setup() | |
--NOTE - there are lots of settings in this setup function, but you don't have to | |
--keep all this code. You will find that the draw and RotateAndDraw functions use "if" tests to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Notes | |
--[[ | |
ROTATION WITH QUATERNIONS AND FLYING | |
This project demonstrates the use of quaternions to rotate objects and fly them | |
The Main tab only contains code to help you choose from a number of demo projects. You will not need it in | |
your own projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Notes | |
--[[ | |
ROTATION WITH QUATERNIONS AND FLYING | |
This project demonstrates the use of quaternions to rotate objects and fly them | |
The Main tab only contains code to help you choose from a number of demo projects. You will not need it in | |
your own projects. |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newmtl x-Wing.mtl | |
Ns 96.078431 | |
Ka 0.000000 0.000000 0.000000 | |
Kd 0.320000 0.320000 0.320000 | |
Ks 0.000000 0.000000 0.000000 | |
Ni 1.000000 | |
d 1.000000 | |
illum 2 | |
[obj] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Notes | |
--[[ | |
ROTATION WITH QUATERNIONS AND FLYING | |
This project demonstrates the use of quaternions to rotate objects and fly them | |
The Main tab only contains code to help you choose from a number of demo projects. You will not need it in | |
your own projects. |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Blender MTL File: 'None' | |
# Material Count: 30 | |
newmtl Color_003noCulling | |
Ns 37.254902 | |
Ka 0.000000 0.000000 0.000000 | |
Kd 0.533334 0.533334 0.533334 | |
Ks 0.165000 0.165000 0.165000 | |
Ni 1.000000 | |
d 1.000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newmtl plane | |
Ka 0.117647 0.117647 0.117647 | |
Kd 1 1 1 | |
Ks 0.752941 0.752941 0.752941 | |
illum 2 | |
Ns 8 | |
map_Kd FA-22_Raptor_P01.png http://i1303.photobucket.com/albums/ag142/ignatz_mouse/F22/FA-22_Raptor_P01_zps30a76b83.png | |
//map_bump FA-22_Raptor_N.png http://i1303.photobucket.com/albums/ag142/ignatz_mouse/F22/FA-22_Raptor_N_zps8ef01242.png | |
//bump FA-22_Raptor_N.png | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Notes | |
--[[ | |
ROTATION WITH QUATERNIONS AND FLYING | |
This project demonstrates the use of quaternions to rotate objects and fly them | |
The Main tab only contains code to help you choose from a number of demo projects. You will not need it in | |
your own projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
--3D asteroids | |
displayMode(FULLSCREEN) | |
function setup() | |
rocks={} | |
img=readImage("Dropbox:Surface") | |
timer=0 |
OlderNewer