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 Horvath393November 01, 2013 05:14AM
Re: SNOT road generator help Attachments Michael Horvath128November 01, 2013 10:27AM
Re: SNOT road generator help Roland Melkert122November 01, 2013 10:51AM
Re: SNOT road generator help Attachments Michael Horvath130November 01, 2013 11:05AM
Re: SNOT road generator help Attachments Michael Horvath120November 01, 2013 11:52AM
Re: SNOT road generator help Roland Melkert117November 01, 2013 12:13PM
Re: SNOT road generator help Michael Horvath143November 01, 2013 07:30PM
Re: SNOT road generator help Michael Heidemann147November 02, 2013 10:05AM
Re: SNOT road generator help Attachments Michael Horvath176November 02, 2013 07:35PM
Re: SNOT road generator help Michael Heidemann150November 03, 2013 12:40AM
Re: SNOT road generator help Attachments Michael Horvath181November 03, 2013 01:01AM
Re: SNOT road generator help Michael Heidemann170November 03, 2013 01:50AM
Re: SNOT road generator help Tim Gould155November 03, 2013 12:33PM
Re: SNOT road generator help Michael Horvath145November 03, 2013 04:43PM
Re: SNOT road generator help Michael Horvath122November 05, 2013 09:28AM
Re: SNOT road generator help Philippe Hurbain119November 05, 2013 11:49AM
Re: SNOT road generator help Michael Horvath142November 05, 2013 12:40PM
Re: SNOT road generator help - Progress!! And problems. Attachments Michael Horvath149November 03, 2013 11:49PM
Re: SNOT road generator help - Progress!! And problems. Attachments Roland Melkert149November 04, 2013 11:22AM
Re: SNOT road generator help - Progress!! And problems. Michael Horvath145November 04, 2013 01:06PM
Re: SNOT road generator help - Progress!! And problems. Attachments Michael Horvath141November 04, 2013 10:52PM
Re: SNOT road generator help - Done? Attachments Michael Horvath216November 05, 2013 09:11PM



Sorry, only registered users may post in this forum.

Click here to login