POV-Ray : Newsgroups : povray.advanced-users : How to use a bezier-curve (2D) for a function to use in a texture? : How to use a bezier-curve (2D) for a function to use in a texture? Server Time
28 Jul 2024 16:31:54 EDT (-0400)
  How to use a bezier-curve (2D) for a function to use in a texture?  
From: D  H  Berlin
Date: 11 Sep 2004 00:35:01
Message: <web.41427fd3c601232d88e4a61c0@news.povray.org>
Hi!

I don't have to much knowledge about the math I need. So I hope my
explanation what I want to achieve is right.

I want to use a curve-function (f.e. a cubic-bezier) which is defined
through points laying in the x,y-plane (2D-curve) in a function for a
texture. Where the curve runs, the function should give back 1 and it
should have a fallof described through a factor f (fallof maybe like when
using an airbrush) so the function gives back 0 when the texture-point to
be calculated is away  f.e. 0.01 povray-units.

If 1 povray-unit would be 1 meter, this function should draw a texture which
would be a line defined by the points of the bezier-curve and a fallof to 0
in a distance of 0.01 units to both side of the curve.

The goal would be, that one could just draw text using a bezier-curve for a
letter in a program, export the points, and by just putting the point-list
in to the povray-function could use the drawn-text as texture.

I hope it's not do difficult.

Greetings
Dieter


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.