Comments (2)
I think it's possible. Basically, you can look into the sceneBuilder.createAnimation()
and Animation
class under Scripts document.
Here is an example how you can define a linear camera movement from a start point to an end point:
# Add camera2
camera2 = Camera("Camera2")
camera2.position = float3(-5.190841, 3.900723, 20.509645)
camera2.target = float3(-5.501971, 3.859276, 19.560183)
camera2.up = float3(0.000000, 1.000000, 0.000000)
camera2.focalLength = 35
camera2.focalDistance = 1000.0
camera2.apertureRadius = 0.0
sceneBuilder.addCamera(camera2)
# Add camera 2 animation
cameraDuration = 10 # in seconds
cameraAnimation = sceneBuilder.createAnimation(camera2, "Camera2 Animation", cameraDuration)
tf_start = Transform()
tf_start.lookAt(camera2.position, camera2.target, camera2.up)
tf_end = Transform()
tf_end.lookAt(
float3(-8.160987, 3.505056, 11.445773),
float3(-8.472117, 3.463609, 10.496310),
float3(0.000000, 1.000000, 0.000000)
)
cameraAnimation.addKeyframe(0, tf_start)
cameraAnimation.addKeyframe(cameraDuration, tf_end)
from falcor.
@guiqi134
Thanks to you, succeeded basic camera animation!
It has been really helpful.
I will refer to the code you provided and study documents further :)
from falcor.
Related Issues (20)
- Consistent framerate drops in 7.0
- Consistent framerate drops in 7.0
- Mogwai crashes in Ubuntu File Dialog
- Bug when importing USD file with BasisCurves prim included
- Packman Download Failure for Legacy Falcor Versions Due to 403 Error on External Modules HOT 3
- ModuleNotFoundError: No module named 'falcor' HOT 1
- Warped Area Sampling Harmonic Weight Computation HOT 1
- Issue with Importing USD Animated Models in Falcor 5.2 HOT 1
- What is the coordinate system of falcor?
- How can I optimize Textures with differentiable slang and python API?
- How to capture video? (after v6) HOT 1
- Atribute Error
- AABB::overlaps false negative for edge cases
- RenderGraphEditor; Load File; GFX call ... failed with error
- volume scene not rendered HOT 1
- Build failed in Linux, VSCode HOT 5
- Few basic questions about Falcor HOT 1
- RenderGraphEditor run error
- 403 Forbidden Error On Required Dependencies in Falcor 7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falcor.