Home
Fusion 2.5+
Firefly+
Tutorials+
Videos+
Guides & Tips+
Extensions
Versions
Teaching


Firefly Camera Object

Firefly Camera Object

The Camera object is your “viewport” into the 3d world you create with Firefly. As with the Engine object, you can drag out the object to fill parts of your frame. The area the object covers will be the camera display surface in the app.

Firefly Engine Object


The Camera object is your “viewport” into the 3d world you create with Firefly. As with the Engine object, you can drag out the object to fill parts of your frame. The area the object covers will be the camera display surface in the app. This means you can have two cameras displaying at the same time. Useful in main situations. You could even make a app capable of VR with this method.

 

Here is a list of the unique Actions, Conditions and expressions for Camera Object

 

Actions

  • Set Object Width - Set the horizontal size of the viewspace

  • Set Object Height - Set the vertical size of the viewspace

  • Viewports -

    • Add to Firefly Engine Stack -

    • Insert into Firefly Engine Stack -

    • Remove from Firefly Engine Stack at -

    • Remove all from Firefly Engine Stack 0

  • Target - Actions for pointing the camera

    • Set (X,Y & Z) Target - Three separate actions for each vector, where you pass a value to set its relative target vector.

    • Set Target - Pass using the expression editor values for each of the three vectors (X,Y & Z) to determine target vector.

  • Up Vector -

    • Set (X, Y & Z) Vector - Sets the coordinate which the camera sees as the “up” direction which it rotates by. In Local coordinates.

  • Set Field of View - Set the size of your “eye” in degrees, bigger values will extend the observable game world but view will look more fish eye’d. Default 90, recommended maximum is 120.

  • Set Aspect Ratio - Ratio between the camera’s width and height, for best results set this to Camera’s Width / Camera’s Height.

  • Set Near Clipping Plane - Allows you to change how close the faces need to be in order for them to not render.

  • Set Far Clipping Plane - Allows you to change how far the faces need to be in order for them to no longer render, bigger values will have a greater impact on performance on large scenes.

  • Bind Target and Rotation - Allows you to match the camera to a node's rotation and position if previously have set a parent node.

    • Off/On or Set - Three actions allowing you to manually set Off or On or set using a boolean expression

  • Mouse Pick - allows you to “Shoot” from the camera and return the first node the “shot” collides with and return its Fixed Value for selection purposes

    • Check Off/On - Sets Off or On the constant use of the Mouse Pick function

    • Check Once - Runs the check once during main loop

 

Conditions

  • Viewports > Is viewport added to Firefly Engine Stack - Checks to see if in fact the viewport is part of the Firefly Engine Stack, Need to select the proper Fixed value from the Firefly Engine object you are testing against

  • Binds Target and Rotations - This condition is triggered TRUE when you have Binding set to on

Expressions

  • Viewports > Get indices in Firefly Engine Stack - Returns indices of relative Firefly Engine Stack, requires passing of Fixed Value of Engine object in expression

  • Target > Get (X,Y & Z) Target - Three separate expressions returning one of the vectors currently used as a camera target.

  • Up Vector > Get (X, Y & Z) Position - Three separate expressions returning one of the vectors currently used as a up vector value.

  • Get Field of View

  • Get Aspect Ratio

  • Get Near Clipping Plane

  • Get Far Clipping Plane

  • Mouse Pick

    • Get Fixed value of Mouse Pick Node - Returns fixed value of node selected during mouse pick

    • Get name of Mouse Pick Node - Returns name of node selected during mouse pick

    • Get (X, Y & Z) Intersection Point from Mouse Pick - Three expressions that return the vector value from the intersection point from the selected vector.



Spread the word!



You can share this document using the following buttons.




Submit your own User Tip