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 Horvath379November 01, 2013 05:14AM
Re: SNOT road generator help Attachments Michael Horvath122November 01, 2013 10:27AM
Re: SNOT road generator help Roland Melkert116November 01, 2013 10:51AM
Re: SNOT road generator help Attachments Michael Horvath123November 01, 2013 11:05AM
Re: SNOT road generator help Attachments Michael Horvath115November 01, 2013 11:52AM
Re: SNOT road generator help Roland Melkert108November 01, 2013 12:13PM
Re: SNOT road generator help Michael Horvath138November 01, 2013 07:30PM
Re: SNOT road generator help Michael Heidemann139November 02, 2013 10:05AM
Re: SNOT road generator help Attachments Michael Horvath167November 02, 2013 07:35PM
Re: SNOT road generator help Michael Heidemann144November 03, 2013 12:40AM
Re: SNOT road generator help Attachments Michael Horvath175November 03, 2013 01:01AM
Re: SNOT road generator help Michael Heidemann161November 03, 2013 01:50AM
Re: SNOT road generator help Tim Gould147November 03, 2013 12:33PM
Re: SNOT road generator help Michael Horvath140November 03, 2013 04:43PM
Re: SNOT road generator help Michael Horvath119November 05, 2013 09:28AM
Re: SNOT road generator help Philippe Hurbain113November 05, 2013 11:49AM
Re: SNOT road generator help Michael Horvath135November 05, 2013 12:40PM
Re: SNOT road generator help - Progress!! And problems. Attachments Michael Horvath143November 03, 2013 11:49PM
Re: SNOT road generator help - Progress!! And problems. Attachments Roland Melkert141November 04, 2013 11:22AM
Re: SNOT road generator help - Progress!! And problems. Michael Horvath138November 04, 2013 01:06PM
Re: SNOT road generator help - Progress!! And problems. Attachments Michael Horvath136November 04, 2013 10:52PM
Re: SNOT road generator help - Done? Attachments Michael Horvath204November 05, 2013 09:11PM



Sorry, only registered users may post in this forum.

Click here to login