Welcome! Log In Create A New Profile

Advanced
SNOT road generator help
November 01, 2013 05:14AM
I'm writing a script to generate SNOT roads but I have encountered a problem. As you can see the bricks in the attached file follow a neat curve. However the rotation of the parts around the z-axis is backwards. How do I fix this in the bricks' rotation matrices? Here's the relevant bit of code in the script I wrote:

var fTime = 1/2
while (fTime <= 1)
{
	var thisCoo = tCoordinates(fTime)
	var thisDiv = tDerivatives(fTime)
	thisDiv = vnormalize(thisDiv)
	sOutString += '1 16 ' + thisCoo[0] + ' ' + thisCoo[1] + ' 0 ' + thisDiv[0] + ' ' + thisDiv[1] + ' 0 ' + (-thisDiv[1]) + ' ' + thisDiv[0] + ' 0 0 0 1 3004.dat\n'
	fTime = bGetStuff(fTime, fTime + steps_distance_big, steps_distance_big, 1)[0]
}


Edited 1 time(s). Last edit at 2013-11-01 05:21AM by Michael Horvath.
Attachments:
open | download - temp.ldr (1.2 KB)
SubjectAuthorViewsPosted
SNOT road generator help Attachments Michael Horvath425November 01, 2013 05:14AM
Re: SNOT road generator help Attachments Michael Horvath140November 01, 2013 10:27AM
Re: SNOT road generator help Roland Melkert135November 01, 2013 10:51AM
Re: SNOT road generator help Attachments Michael Horvath143November 01, 2013 11:05AM
Re: SNOT road generator help Attachments Michael Horvath133November 01, 2013 11:52AM
Re: SNOT road generator help Roland Melkert130November 01, 2013 12:13PM
Re: SNOT road generator help Michael Horvath153November 01, 2013 07:30PM
Re: SNOT road generator help Michael Heidemann158November 02, 2013 10:05AM
Re: SNOT road generator help Attachments Michael Horvath189November 02, 2013 07:35PM
Re: SNOT road generator help Michael Heidemann168November 03, 2013 12:40AM
Re: SNOT road generator help Attachments Michael Horvath194November 03, 2013 01:01AM
Re: SNOT road generator help Michael Heidemann188November 03, 2013 01:50AM
Re: SNOT road generator help Tim Gould174November 03, 2013 12:33PM
Re: SNOT road generator help Michael Horvath162November 03, 2013 04:43PM
Re: SNOT road generator help Michael Horvath137November 05, 2013 09:28AM
Re: SNOT road generator help Philippe Hurbain133November 05, 2013 11:49AM
Re: SNOT road generator help Michael Horvath154November 05, 2013 12:40PM
Re: SNOT road generator help - Progress!! And problems. Attachments Michael Horvath159November 03, 2013 11:49PM
Re: SNOT road generator help - Progress!! And problems. Attachments Roland Melkert169November 04, 2013 11:22AM
Re: SNOT road generator help - Progress!! And problems. Michael Horvath163November 04, 2013 01:06PM
Re: SNOT road generator help - Progress!! And problems. Attachments Michael Horvath153November 04, 2013 10:52PM
Re: SNOT road generator help - Done? Attachments Michael Horvath241November 05, 2013 09:11PM



Sorry, only registered users may post in this forum.

Click here to login