≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
VMD Camera Animation Extension released. Supporting over 10000+ camera animations
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b][/b] wrote: In addition to that, I bring a lot of new functions to make it easier for you to develop games. This is the function documentation, which is also included in ReadMe.txt. Documentation ReadCCBinFile(path) Path is the ccbin file path. The ccbin file needs to use the bin2cc tool, see the URL link: [url]https://ambiera.com/forum.php?t=11286[/url] ArrayToInt32(array) Convert 4 bytes to Int32, support hex string or int array. ArrayIndexToInt32(array,index) Executes ArrayToInt32 from the specified position in the array. ArrayToFloat32(array) Convert 4 bytes to Float32, support hex string or int array. ArrayIndexToFloat32(array,index) Executes ArrayToFloat32 from the specified position in the array. RadToDeg(rad) Convert radians to degrees. DegToRad(rad) Convert degrees to radians. CubicBezierCurve(point1,point2,point3,point4,time) Using Cubic Bezier Curve, the interpolation is based on the P1-P4 coordinates, with Time as a step. Point structure is {x:0,y:0}. Time Range is [0-1]. GetEndPoint(startPoint,pitch,heading,distance) Using the start point as the origin, pitching at a certain degree and heading at a certain degree, find the coordinates of the end point at a certain distance from the start point. Point is a 3D coordinate, structure is {x:0,y:0,z:0}. Pitch is the X-axis rotation. heading is the Y-axis rotation. LoadVMDCamera(cameraNode,objectNode,playSpeed,vmdData,cameraOffset) Play the VMD camera animation. For camera nodes and object nodes, please use ccbGetSceneNodeFromName to get them. Usually the object node is the model. Play speed range is [0-1]. When set to 1, this equal to the game frame rate. VMD data please use ReadCCBinFile to read. The camera offset is an optional parameter with the structure {x:0,y:0,z:0}, you can adjust the camera position. StopVMDCamera() Stops play VMD camera animation. PauseVMDCamera(isPause) Pause the VMD camera animation. Setting isPause to true will pause play, setting it to false will resume play. IsVMDCameraStop() Return the VMD animation playing status, true means it is playing, false means it is stopped. When I update the function library in the future, only the latest functions will be introduced. If you want to see the documentation of all functions, you can check the ReadMe.txt. Here is the demo video 6: [img]https://i3.lensdump.com/i/TSwZHQ.gif[/img][/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact