00:00
00:00
Newgrounds Background Image Theme

Unknownfornow just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Away3D 4.1.6 Flash Player 11 | Advanced Terrain Demo

Share Collapse

Author Comments

Abstract:

Away3D was another open-source 3D framework forked from Papervision3D developed and used for Flash in 2007 until it was discontinued in 2014. The history surrounding this framework is absolutely impressive. They have their own model format, their own builder software, and Adobe incorporated the framework into the Adobe Gaming SDK in 2013.

Unlike Papervision3D, Away3D 4.x fully supports 3D rending via Stage3D. Meaning most of the 3D graphics on screen is rendered using the GPU. This frees up a lot of CPU compared to Away3D 3.x and especially 2.x and Papervision3D.


This demo creates a scene with a skybox, dynamic reflective lighting on clouds, "running" water, and mountains. The interesting thing about this scene is there is no external .obi to create the scene. The entire world is generated though the Away3D libraries and Away3D diffusion methods. It really is an impressive demo solely due to the world being generated at runtime, leaving the release .swf at an impressive 4,153 Kilobytes.


Controls:

  • Click and drag to move the world to see the world.
  • Use WASD to move around the scene and go into the water


Bugs:

  1. FATAL Ruffle Port Nightly 2023-11-30 keeps panicking but 2023-11-29 does not. What the fuck?
  2. Extremely buggy, pixelated, and lags a lot compared to running in Flash.
  3. Away3D Statistics seem to now show the graph properly, as well as show `Dummy` for the GPU driver. May come in use to detecting Ruffle or Flash.
  4. Away3D Statistics also seem to not display the ram usage


Performance:

Platform: Intel(R) Core(TM) i7-10875H CPU 2.30 GHz (Intel64 Family 6 Model 165 Stepping 2) with NVIDIA GeForce RTX 2080 Super with Max-Q Design

NOTE: These results are after one generation of the tree with default settings.


Newgrounds Player:

  • 37.1 ~ 43.9 CPU%
  • 0 GPU% (Note: the Newgrounds Player does not use any GPU, instead opting all 3d graphics to be drawn via software rasterization hence the high CPU percent.)
  • 232.1 MB Ram Usage
  • FPS: 13 ~ 16 ~ 21

Flash 11.8 r800 (32-bit):

  • 0.5 ~ 0.8 CPU%
  • 7.2 ~ 8.3 GPU% (GPU-1)
  • 88.7 MB Ram Usage
  • FPS: 45 (frame locked despite the set frameRate being 300)

Flash 32:

  • 0.8 ~ 1.2 CPU%
  • 6.4 ~ 7.2 GPU% (GPU-1)
  • 78.7 MB Ram Usage
  • FPS: 45 (frame locked despite the set frameRate being 300)

Ruffle (Windows port, Nightly 2023-11-29):

  • Note: Long initial loading time, 1 to 2 seconds
  • 6.4 ~ 7.2 CPU%
  • 6.6 ~ 6.8 GPU% (GPU-1)
  • 578.0 MB Ram Usage
  • FPS: 45 (frame locked despite the set frameRate being 300)

Ruffle (Web port):

  • Note: Long initial loading time, 5 to 7 seconds
  • 17.3 ~ 18.3 CPU%
  • 5.3 ~ 6.4 GPU% (GPU-0, Based off of the graphics card of the browser)
  • 1,153 MB Ram Usage (~1.1 GB Ram Usage) (Loaded with the Newgrounds Portal, this is not accurate for Ruffle but IRL Webpages)
  • FPS: 13 ~ 16

Ruffle (Windows Port, Nightly 2023-11-30) BROKEN (PANIC):

Ruffle has encountered a fatal error, this is a bug.

panicked at
C:\Users\runneradmin\.cargo\git\checkouts\wgpu-53e70f8674b08dd4\4bf9c5\wgpu-core\src\resource.rs:207:13:
Map callback was leaked

Please report this to us so that we can fix it. Thank you!


Note:

The latest Nightly version of Ruffle keeps panicking, something to do with the resources.

Edit: Now the 2023-11-29 version of Ruffle keeps panicking, same issue?????


Todo:

  • Double check compatibility with Away3D 3.x and 2.x, it seems as if 4.x works better on Ruffle due to the dependence on Stage3D instead of AS3.
  • Go though and trace(Object) to figure out where the scene failed.
  • Report Panic


Credits:

  1. Away3D - Website
  2. Away3D Example Files - Found Here (Internet Archive via Wayback)


Source Code: http://www.mediafire.com/file/nmazldo9nplr8nr/Advanced_TerrainDemo.zip

Binaries (.swf release): https://www.mediafire.com/file/7xb3dhgmv31j61d/Advanced_TerrainDemo.swf/file

Log in / sign up to vote & review!

Credits & Info

Views
195
Votes
71
Score
3.16 / 5.00

Uploaded
Nov 30, 2023
4:16 AM EST
Genre
Spam
Misc. Kit
  • Flash Builder 4.7