[Stencyl 3.5/4.0.x] Away3D Extension

mdotedot

  • Posts: 1568
Away3D Stencyl 3.5 Extension

For publication to:
  • Flash
  • HTML5
  • Android
  • iOS
  • Mac OSX
  • Windows
  • Linux

Download extension and examples : Away3D Extension
(Some of the examples are ports from demonstration/games made by LIBERADO; who gave permission to use them)


Documentation:

*** DISCLAIMER ***
Stencyl is a 2D Tool/Engine. Not everything you see done with 3D engines/tools is possible with this Extension.
******************

*** WARNING ***
The Library is not scale aware. Binding of Actors and Tiles is done on a 32px by 32px size. 3D Camera does not perfectly align Meshes with 2D objects.
You have to adjust to these yourself.
***************

Special Thanks to : Justin, LIBERADO, Merrak, SadiQ (alphabatic order)


 

« Last Edit: June 13, 2019, 10:46:16 pm by mdotedot »
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

NerdinaNutshell

  • *
  • Posts: 197
Cool beans. I just wish there was a little more info on how to use it
Plot Twist... I'm a ghost


Jo3m

  • Posts: 22
Hello,

Error : invalid field:shadowMap

Stencyl 4.0.1

A solution ?

Thank you :)

mdotedot

  • Posts: 1568
More information!
I created a virtual machine specific for 4.0.1 (I'm on later versions) and installed the extension and ran the Away3D Demo.
All the shadow examples work in HTML5.

Give detailed step by step instructions how to reproduce this. What example did you test, what did you do, etcetera.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Jo3m

  • Posts: 22
Ok ! It is Angry3d first person and launch for "windows"... (windows 10).

HTML5 is OK ! Don't run for windows ? Thank you very much.

mdotedot

  • Posts: 1568
When you deactivate the code '3D: name: MatFloor0 property shodowMap value [3d:getname[shadow1]] ' in the createFloor behavior (Angry3D) then the game will run on Windows.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

NerdinaNutshell

  • *
  • Posts: 197
Just out of curiosity does the extension support multiple cameras?
Plot Twist... I'm a ghost

mdotedot

  • Posts: 1568
I've made a Virtual Reality Game with it. So yes.
But not sure if that was really using the extension blocks. It definitely can be called from Stencyl but it could be using code blocks.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

NerdinaNutshell

  • *
  • Posts: 197
Oh goody (that'll be a gamer changer)! Would you just call them camera0 and camera1 ?
Plot Twist... I'm a ghost

mdotedot

  • Posts: 1568
      The Virtual Reality Camera is just one camera apparently and I used code to create it rather than the blocks.

      I've tested changing camera's.
      
      Yeah you call it with another name
      
      In Create phase:
      3D: create name [Camera0] type: [Camera3D]  argument list: [create new list]
      3D: create name [Camera1] type: [Camera3D]  argument list: [create new list]
      
      ... some position initialization of camera0 and change of position (I used Basic_Controller from the Demo )
      
      
      And then every second I change the camera:
      
      if remainder of [counter / 2] = 0
           3D: name: [View0] property [camera] value [3D: get name [Camera0]]
      else
           3D: name: [View0] property [camera] value [3D: get name [Camera1]]
      

Every Second it changes the view accordingly
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

NerdinaNutshell

  • *
  • Posts: 197
      The Virtual Reality Camera is just one camera apparently and I used code to create it rather than the blocks.

      I've tested changing camera's.
      
      Yeah you call it with another name
      
      In Create phase:
      3D: create name [Camera0] type: [Camera3D]  argument list: [create new list]
      3D: create name [Camera1] type: [Camera3D]  argument list: [create new list]
      
      ... some position initialization of camera0 and change of position (I used Basic_Controller from the Demo )
      
      
      And then every second I change the camera:
      
      if remainder of [counter / 2] = 0
           3D: name: [View0] property [camera] value [3D: get name [Camera0]]
      else
           3D: name: [View0] property [camera] value [3D: get name [Camera1]]
      

Every Second it changes the view accordingly

Sorry, I'm not quite following. First off, which demo are you referring to? Also, I'm confused about the "counter" in the second chunk of code. Obviously, Stencyl doesn't have a block for it, but when I tried the use the code block with the code you provided it would just give me errors.
Plot Twist... I'm a ghost

mdotedot

  • Posts: 1568
From
http://htmlstarter.com/Away3D/Demos/Images/list.html
And then this:
http://htmlstarter.com/Away3D/Demos/Away3D_V96.stencyl

The counter is used to switch between views. Do whatever you want to switch between views. You can do it with buttons (those can be made with actors)

Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

NerdinaNutshell

  • *
  • Posts: 197
Sorry, I wasn't being clear in the first place. When I said multiple cameras, I meant split-screen
Plot Twist... I'm a ghost

mdotedot

  • Posts: 1568
Split-screen is not something that I've been looking at.  For a puzzle game it should be no problem, but when you want kind of like what GTA5 is doing I wouldn't know how to do that.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.