Developers looking for developers

Render part, the pressure value is invalid

image


As shown in the figure above, I use the function PointerMove, enter the force parameter, change the force value, the display thickness does not change.

Does the render module have a thickness display? Am I using it correctly?

thank you.


Dear User,


indeed, at present, the pressure is not taken into account to change the thickness.


If you need to change the thickness, this shall be done via the -myscript-pen-width property of the styling: https://developer.myscript.com/docs/interactive-ink/1.4/reference/styling/


Best regards,


Olivier

thank you.

The function I want to achieve is that a stroke contains multiple coordinate information, and each coordinate information contains X and Y coordinates and pressure value. When drawing, the thickness can be changed according to the pressure value to restore the real writing track and thickness.

if the pressure is not taken into account to change the thickness,there's no way to restore real handwriting.

Also, what is the role of the f parameter in the PointerMove function?

Dear User,


if the pressure is not taken into account to change the thickness,there's no way to restore real handwriting.

>>This is a use-case that is not easy to handle. We cannot commit if/when we will have such mechanism.


Also, what is the role of the f parameter in the PointerMove function?

>>Just in case for future use.


Best regards,


Olivier


IMAGED REMOVED!




The salesperson told me that "renderer.stroker-real-pressure-factor" can be used. But I did not find the relevant documents. Please send me the link to use "renderer.stroker-real-pressure-factor", thank you.


Best regards,


Larry

Dear Larry,


I just removed the exchanges you had with our sales person. These contain personal information that shall not appear on a public forum.


As said in the exchanges, the configuration can be set as follows: conf.setNumber("renderer.stroker.real-pressure-factor", 1.0);


The value can be tuned from 0 (only uses the speed) to 1 (only uses pressure) ; you can also set values in between.


Best regards,


Olivier

Login or Signup to post a comment