CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 17 Aug 2025 09:54:52 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081204121127
location: https://web.archive.org/web/20081204121127/https://www.github.com/itfrombit/nuopenglcubedemo/tree
server-timing: captures_list;dur=0.748083, exclusion.robots;dur=0.024775, exclusion.robots.policy;dur=0.012310, esindex;dur=0.014134, cdx.remote;dur=48.346508, LoadShardBlock;dur=173.000190, PetaboxLoader3.datanode;dur=69.865100, PetaboxLoader3.resolve;dur=52.584833
x-app-server: wwwb-app215
x-ts: 302
x-tr: 265
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app215; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 17 Aug 2025 09:54:53 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Thu, 04 Dec 2008 20:11:27 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--be4d4fe64136ba4b5a9e8e7643f35a4e640dd18d; domain=.github.com; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 3449ms
x-archive-orig-etag: "2335e9042b8003ecb53f3c8fa5c8081f"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-x_commoncrawl_parsesegmentid: 5272
x-archive-orig-x_commoncrawl_originalurl: https://www.github.com/itfrombit/nuopenglcubedemo/tree
x-archive-orig-x_commoncrawl_urlfp: -4776604113575000159
x-archive-orig-x_commoncrawl_hostfp: -8801896244620822287
x-archive-orig-x_commoncrawl_signature: 2335e9042b8003ecb53f3c8fa5c8081f
x-archive-orig-x_commoncrawl_crawlno: 1
x-archive-orig-x_commoncrawl_fetchtimestamp: 1228421487652
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
x-archive-orig-content-encoding: gzip
memento-datetime: Thu, 04 Dec 2008 12:11:27 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 04 Dec 2008 12:11:27 GMT", ; rel="memento"; datetime="Thu, 04 Dec 2008 12:11:27 GMT", ; rel="last memento"; datetime="Thu, 04 Dec 2008 12:11:27 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 1230896254769_17-c/1230896608554_18.arc.gz
server-timing: captures_list;dur=0.503112, exclusion.robots;dur=0.020539, exclusion.robots.policy;dur=0.011269, esindex;dur=0.011977, cdx.remote;dur=10.295389, LoadShardBlock;dur=117.102405, PetaboxLoader3.datanode;dur=125.563992, PetaboxLoader3.resolve;dur=138.857724, load_resource;dur=180.788463
x-app-server: wwwb-app215
x-ts: 200
x-tr: 368
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
itfrombit's nuopenglcubedemo at master — GitHub
GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009! [ hide ]
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | A example of using OpenGL in Nu |
Clone URL: |
git://github.com/itfrombit/nuopenglcubedemo.git
Give this clone URL to anyone.
git clone git://github.com/itfrombit/nuopenglcubedemo.git
|

Jeffrey Buck (author)
Thu May 01 23:47:24 -0700 2008
name | age | message | |
---|---|---|---|
![]() |
Nukefile | Thu Mar 27 20:51:30 -0700 2008 | Initial commit. [Jeffrey Buck] |
![]() |
README | Fri Mar 28 07:09:11 -0700 2008 | Updated SpaceVector accessor to valueAtIndex:. [Jeffrey Buck] |
![]() |
nu/ | Thu May 01 23:47:24 -0700 2008 | Changed SpaceVector setValue:atIndex to use sta... [Jeffrey Buck] |
![]() |
objc/ | Thu Mar 27 20:51:30 -0700 2008 | Initial commit. [Jeffrey Buck] |
README
INTRODUCTION NuOpenGLCubeDemo is a simple example of using low-level OpenGL in Nu to draw and animate a cube. This demo calls older OpenGL primitives, and doesn't use a modern OpenGL architecture. I wouldn't recommend using this approach for real applications, but I was mostly interested to see how much of the application I could implement in Nu. It turns out that just about everything could be implemented in Nu except for a 1-line function at initialization. Nice job Tim and libffi! You can have fun with the application using the Nu Console. Here are a few things to try: ($view startAnimation) ($view stopAnimation) ($view resetCameraAndUpdateProjection) You can experiment with changing the velocity and acceleration vectors when animating the cube: ;; Use indexes 0,1,2 to explore ;; and set X/Y/Z parameters ($rVel valueAtIndex:0) ;; X velocity ($rVel setValue:0.5 atIndex:0) ($rAccel setValue:0.004 atIndex:0) ;; acceleration You can also play with the camera settings like the aperture, but not all of these setting have global variables so you'll have to get at them using the view: (($view camera) setAperture:80.0) When the main application view has the focus, you can hit the space bar to toggle the animation on and off. Drag the cube around in real-time to rotate it. Right-click and drag to pan the camera. Option-click and drag (or use your scroll wheel, if you have one) to move the dolly to zoom in and out. If you lose the cube while zooming and panning, hit 'r' to reset the camera. You can find the latest version of NuOpenGLCubeDemo at https://github.com/itfrombit/nuopenglcubedemo This application was adapted from Apple's Cocoa OpenGL sample code. You can find the original version at https://developer.apple.com/samplecode/CocoaGL/index.html The shell of the Nu application was adapted from Tim Burks' Benwanu example in the Nu distribution. REQUIREMENTS NuOpenGLCubeDemo requires Nu, nuke and the Apple Developer Tools. It was written and tested on OS X 10.5.2. You can find out more about Nu at https://programming.nu You can get Nu from the git repository at https://github.com/timburks/nu INSTALLATION Build the NuOpenGLCubeDemo by typing "nuke" in the top-level NuOpenGLCubeDemo directory. You can run the resulting application from the same top-level directory. AUTHOR NuOpenGLCubeDemo was written by Jeff Buck.
This feature is coming soon. Sit tight!