Animasyon özelliği ve kurulum hedef kamerayı 3D belgesine ekleyin
Animasyon özelliğini 3D belgesine ekleyin
Aspose.3D for Python via .NET animasyonlu sahne oluşturmayı destekler. Bu makale, bir nesneyi taşımak için ön şartları açıklar.
Move Cube’s Position
Mesh class object is being used in the code. We can create a Mesh class object as narrated there and it’s must animate the local translation property of the node too: Adding the Transformation to the Node.
In Aspose.3D, object animation is actually key-frame animation that animates on properties. To animate properties, you need a CurveMapping instance which maps components of a property to different curves, for example, a Vector3 property can have 3 components X/Y/Z, which will set up three channels in CurveMapping, every channel can have a set of Curve.
Hedef kamerayı 3D dosyasında kur
Aspose.3D for Python via .NET offers to setup the target camera in 3D file. In some file formats, light/camera supports target, which allows the light/camera always facing a specified node, this is useful in animation.
Scene, Camera, Node ve Transform sınıfları kodda kullanılıyor. Bir sahneyi kaydetmek için, Scene.Save yöntemi kullanılıyor, tam yol ve FileFormat parametresi olan bir dosya adını kabul ediyor.
Aşağıdaki örnekte, hedef ve kamera 3D dosyasında kurulur: