ripe-tech / ripe-sdk

The public Javascript SDK for RIPE Core
https://www.platforme.com
Apache License 2.0
8 stars 4 forks source link

#429 Support `CsrRenderedInitials` mesh morphing #423

Closed NFSS10 closed 2 years ago

NFSS10 commented 2 years ago
- -
Issue Need to bend the mesh of the initials
https://github.com/ripe-tech/ripe-sdk/issues/429
Dependencies --
Decisions Add setPoints() method to CsrRenderedInitials. This method allows to set the reference points for the curve that is used when bending the mesh geometry. It's usage is optional so if the user doesn't set the points, it will return a flat plane like it did before.

Morphed initials example:

Points used: [Vector3(-500, 0, 0), Vector3(0, 0, -250), Vector3(500, 0, 0)]

https://user-images.githubusercontent.com/22588915/191948455-4b4d7df3-50ba-4473-8e83-cff6a85bdc91.mp4

Plane morph examples:

Runtime morphing:

https://user-images.githubusercontent.com/22588915/191941180-c67dcc2d-81d0-467e-947e-49758ffa2ce8.mp4


Points used: [Vector3(-100, 0, 0), Vector3(-50, 100, 0), Vector3(0, 0, 0), Vector3(50, 100, 0), Vector3(100, 0, 0)]

imagem imagem


Points used: [Vector3(-100, 0, 0), Vector3(-50, -75, 0), Vector3(25, -25, -100), Vector3(100, 0, 0)]

imagem imagem imagem imagem