New NURBS tools

User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

trueBlue wrote: 03 Dec 2020, 14:52 I am updating your Select script to include selecting NURBS & Curves
Select.png
For the NURBS script I am using

Code: Select all

if(!Node.IsLight(subobj) && !Node.IsCamera(subobj) && Node.ConExists(subobj, "U precision"))
For the Curves script I am using

Code: Select all

if(!Node.IsLight(subobj) && !Node.IsCamera(subobj) && Node.ConExists(subobj, "CurvePosition"))
Would this be correct and is there anything else that could be addded?
You don't need to check for NURBS connectors and check for Light and Camera as well. NURBS don't have anything in common with them so no need to check.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBStoolbar.jpg

No testing as planned. Was getting trueSpace hard crashes even on fresh install and update.
Latest toolbar is shown, getting pretty long, but at least it's ready for testing again.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New NURBS tools

Post by trueBlue »

I just found some 300x300 bmps that Paul gave me if your interested
300x300.png
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

trueBlue wrote: 05 Dec 2020, 02:08 I just found some 300x300 bmps that Paul gave me if your interested
300x300.png
Yes, I'm interested. Is it only nurbs images?
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New NURBS tools

Post by trueBlue »

I added a few others that might be of use.
Attachments
New Compressed (zipped) Folder.zip
(480.15 KiB) Downloaded 156 times
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

trueBlue wrote: 05 Dec 2020, 04:34 I added a few others that might be of use.
Thanks.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBSgogglesTest.jpg

Good test session. Found all sorts of things to fix.
There was a bunch of minor bugs and the curve from points tool can be cancelled now, before there was no way
Found that the double sided patch was the way to go because single sided can't be selected from the back even if the display is set to show back faces.
While building the main surface above found a block of code that was messing up the skin curves to patch and giving some crazy looking results.

In the tutorial the birail1 was used to create the rubber lip at the face. My version had a problem with rotations and flipped the last part of the lip inside out.
Next I copied the profile curve to the end of the lip and tried the birail2, but the automatic curve flipping didn't work and part of the lip was offset. Final attempt I turned off the automatic curve flipping, oriented the curves by hand and went through the proper selection order and it worked perfectly.
The auto flip function uses the distance from the start and end of the curves to determine if they should be flipped before skinning. The curves I think have start and end close enough that it gets confused and can't tell one from the other.

The next part of the tutorial mirrors the shape and uses the nurbs lathe function to create the scopes. It also uses an offset curve tool, which I don't have.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBS_Utilities.jpg
NURBS Utility Panel - not the final version


Spent time working on helper utilities.
Added color controls for the edges and points, mesh edit settings, control for patch double sided or not, patch display controls and started the convert patch to mesh script.
Most of the new utilities are used to make the NURBS handles easier to see.

Next I think I'll cleanup the utilities UI, then do some tutorial tests and then finish the mesh converter
Clinton Reese

http://clintons3d.com
User avatar
the_ant
Chief Petty Officer
Posts: 149
Joined: 02 Jun 2009, 09:26
Type the number ten into the box: 0
Location: Perugia - Italy

Re: New NURBS tools

Post by the_ant »

:o :worship: :worship: :worship: :o
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New NURBS tools

Post by trueBlue »

I have no idea how your Mesh Normals are being used or any consequences in changing the Angle
But it sure looks better changing the Angle from 170 to 30
Normals.png
Normals.png (37.71 KiB) Viewed 2112 times
30 being trueSpace's default for Auto Faucet which runs from 0 to 90
Edit: 45 is the default
Msh Editor Settings.png
Msh Editor Settings.png (3.38 KiB) Viewed 2110 times
Post Reply