CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 08-17-2013, 02:30 PM   #1
New Member
leonfcs's Avatar
León Carrizosa
Digital image and sound designer
Chia, Colombia
Join Date: Feb 2003
Posts: 8
Random curves on a surface

Hi there,

Is there any mel script to help to create random curves on a surface? I trying to create something like this:

::: León :::
Old 08-22-2013, 11:48 PM   #2
Nathaniel Anozie
Baltimore, USA
Join Date: Dec 2008
Posts: 70

idea A
basically use 2D circle sampling to sample points on the 3D mesh, then use an algorithm to draw curves using two 3d points that lie on 3D mesh.

using a circle
Maybe put the 3D spherical object at 0,0,0. Then make a 2D circle that roughly fits the 3d spherical one (save the distance from the center of circle to the outer of circle ... the radius).

Then maybe have something that samples two points in a circle with given radius. Then use one of Maya's closest point on mesh to get where the sampled point would be if it was on the top half of the 3D object. (maybe make a copy of 3D object but only keep its upper half and use that to get two 3D points for each sampled 2D point).

use a Maya command to draw a curve between each pair of 3D points. Maybe extrude something along curve to create twirly thingies.

idea B
Maybe there is a way to use the randomess of a noise texture on a nurbs surface roughly fit to 3D object. Then maybe find 3D positions using UV maps where the texture meets some criteria. (example where the noise texture is really dark pick two uvs there, then find the pair of 3D positions by using UVs, and draw curves for them). I think the advantage of this one is the artistic control of the texture to create different effects.

Hope this was helpful.


Maybe check out
Ben Tilly's idea for sampling points on a circle
(bentilly dot blogspot dot com)
Old 08-22-2013, 11:48 PM   #3
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 01:34 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.