Animating Lights???

15 views
Skip to first unread message

sherholz

unread,
Nov 15, 2011, 9:23:33 AM11/15/11
to G3D Users
Hi
in the *.scn.any files I can describe scenes with animated objects
(like in the crates.scn.any from the stater demo).
With:

""
s0 = Entity {
model = "shipModel",
position = PhysicsFrameSpline {
control = (CFrame::fromXYZYPRDegrees( -1.1f, 8.1f,
-12.3f, 181.8f, -55.6f, 0.0f),
CFrame::fromXYZYPRDegrees( 0.5f, 4.6f,
-7.0f, 184.7f, -53.3f, 0.0f),

// Hover:
CFrame::fromXYZYPRDegrees( 0.6f, 2.5f,
-2.0f, 175.5f, -6.9f, 2.0f),
CFrame::fromXYZYPRDegrees( 0.6f, 2.5f,
-2.0f, 175.5f, -6.9f, -2.0f),

// Turn:
CFrame::fromXYZYPRDegrees( 0.6f, 2.5f,
-2.0f, 175.5f, -6.9f, 0.0f),

// Fly off
CFrame::fromXYZYPRDegrees( -0.6f, 2.5f,
-2.0f, 137.1f, -1.7f, 0.0f),
CFrame::fromXYZYPRDegrees( -1.2f, 5.3f,
0.0f, 95.9f, 6.9f, -45.0f),
CFrame::fromXYZYPRDegrees( -2.2f, 6.7f,
-14.9f, 343.0f, 9.7f, 0.0f),
CFrame::fromXYZYPRDegrees( -3.0f, 8.3f,
-16.1f, 270.8f, 5.2f, 10.0f)),
time = (0,3,4,6,8,10,12,14,16),
cyclic = true
}
},
""
I am able to animate the position of an entity.

My question is, if there is a way to animate the position of light
sources through an scn.any scene file??

Cheers

Sebastian




I am just wondering

Corey Taylor

unread,
Nov 18, 2011, 10:59:14 PM11/18/11
to g3d-...@googlegroups.com
I missed this email.

Morgan, is there a way to give a light entity a spline?

corey

Morgan McGuire

unread,
Nov 18, 2011, 11:14:39 PM11/18/11
to g3d-...@googlegroups.com
There is no way to animate lights using the sample Scene class; you have to write it yourself (presumably, following the same code structure as GEntity)

-m

Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan

sherholz

unread,
Dec 15, 2011, 8:39:28 AM12/15/11
to G3D Users
Hi Morgan,

I played around with animating lights a little
bit and it works for me quite well know.
I just want to know if you guys would be interested in adding such a
feature in G3D.
I could write a clean implementation over the holidays and send you a
patch?

Cheers

Sebastian

On Nov 19, 5:14 am, Morgan McGuire <mor...@cs.williams.edu> wrote:
> There is no way to animate lights using the sample Scene class; you have to
> write it yourself (presumably, following the same code structure as GEntity)
>
> -m
>
> Prof. Morgan McGuire
> Computer Science Department

> Williams Collegehttp://cs.williams.edu/~morgan

Morgan McGuire

unread,
Dec 15, 2011, 8:42:58 AM12/15/11
to g3d-...@googlegroups.com
That's great!

Thanks for your offer, I'm not currently interested in adding high-level functionality to G3D. Our focus is immediate-mode rendering on GPUs, and the GEntity and Scene classes are provided for bootstrapping. We're spending most of our development time upgrading low-level functionality such as image and model loading at the moment.

-m

Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan


Reply all
Reply to author
Forward
0 new messages