NURBS ALPHA 2-3 PLUGIN

Smart people ~ Great Scripts
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

NURBS ALPHA 2-3 PLUGIN

Post by froo »

Ok folks.
I guess this is a beta version.
It has the dialog, so once you install and load the plugin, you will see the single-button
toolbar appear in the interface. The icon is courtesy of Clintonman. Thanks Clinton! :bananacool2: :bananacheers: :worship:

After you install the plugin, and load it, click the button on the toolbar. NP stands for:
Nurbs Plane. You can specify the number of control vertices, and surface vertices, over U and V.
I do not have error checking in yet, to ensure that the number of surface vertices is > than control vertices. I will do that tomorrow.

I also need to change the GUIDs; this will probably not affect you, unless you have the RsExamples plugin loaded when you try to load this plugin.

I should also change the title on the dialog, move the pieces around, etc.
but anyway. Please try this out, and enjoy!

Note; I tried this with a 400 x 400 nurbs surface; tS slowed down a lot. However, I can
incorporate a couple 'optimization streams', in which only those triangle blocks which are affected by an edit are passed for processing. This should speed things up. I have not tried
them yet, but I will!
Attachments
RsNurbsPlugin.zip
(121.55 KiB) Downloaded 59 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: NURBS ALPHA 2-3 PLUGIN

Post by clintonman »

It works! Will you be moving the control vertices closer to the nurbs surface in the future?

Do you also have any thoughts/plans for making the button survive Layout changes?
Clinton Reese

http://clintons3d.com
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

Thanks clinton! :D
Yes, I can move the control vertices closer. In fact, I could add that
as an option to the dialog.
I will have to talk to you about the button surviving Layout changes.
I am not sure how to do that yet.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

here's a spacecraft, made in about 10 minutes.
Attachments
cheapship.png
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

and here is one with the control surface visible.
Attachments
cheapship_Edit.png
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: NURBS ALPHA 2-3 PLUGIN

Post by clintonman »

froo wrote:Thanks clinton! :D
Yes, I can move the control vertices closer. In fact, I could add that
as an option to the dialog.
I will have to talk to you about the button surviving Layout changes.
I am not sure how to do that yet.
Too bad about the button survival. I was hoping you might have some trick up your sleeve. I guess I'll just go ahead with a more "brute force" approach of using a script to save toolbars to a library and another script to load them into a new/changed layout.
Clinton Reese

http://clintons3d.com
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

oh ok! I thought you had an answer!
We can figure it out. :D
Cayenne
Chief Petty Officer
Posts: 119
Joined: 03 Jun 2009, 20:05
Type the number ten into the box: 0
Location: U.K.

Re: NURBS ALPHA 2-3 PLUGIN

Post by Cayenne »

with this toolbar NP, in my tS , if I change layout , then exit and restart tS then the NP button shows itself again , however some of the other custom buttons don't show , eg : for the clintons 3d fbx ,(not sure if it has a toolbar ) and all others eg: obj imp /export.
The only other toolbar that shows is the testMatePlugin this shows again after a restart of tS.

regards
Paul
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

Oh; hehe I do have code in the plugin that handles toolbar loading, depending on the system message.
I'll take a closer look at it; and, I was going to post the source code as well. I want to clean it up, and
implement the 'triangle caching' stream: the triangle timestamp stream.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: NURBS ALPHA 2-3 PLUGIN

Post by trueBlue »

I took the RsAnimPlugin.rsx for a ride. It works between layout changes with the exception that you have to reboot tS761. Unless you save the layout, then it works.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

hey trueBlue.
If you search the rsAnim plugin source code for the word: toolbar, it will show
where the toolbar needs to be 'loaded'.
I will be uploading the source code for the nurbs tool, but have to head out for the evening.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: NURBS ALPHA 2-3 PLUGIN

Post by trueBlue »

Yeah I looked at all of those files. I think I remember it saying something about refreshing the Program Manager too. If the internal command for switching layouts (Tabs) would have used that command, I suppose there would not be an issue. You certainly would not want your plugin to constantly refresh the Program Manager. Of course as always this is just speculation on my part.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

thanks trueBlue.

Screenshots of fun stuff you've made with the nurbs plugin, anyone? :)
User avatar
BNG
Chief Warrant Officer
Posts: 684
Joined: 16 Oct 2009, 03:26
Type the number ten into the box: 0
Location: Texas

Re: NURBS ALPHA 2-3 PLUGIN

Post by BNG »

froo wrote:Ok folks.
I guess this is a beta version.
It has the dialog, so once you install and load the plugin, you will see the single-button
toolbar appear in the interface. The icon is courtesy of Clintonman. Thanks Clinton! :bananacool2: :bananacheers: :worship:

After you install the plugin, and load it, click the button on the toolbar. NP stands for:
Nurbs Plane. You can specify the number of control vertices, and surface vertices, over U and V.
I do not have error checking in yet, to ensure that the number of surface vertices is > than control vertices. I will do that tomorrow.

I also need to change the GUIDs; this will probably not affect you, unless you have the RsExamples plugin loaded when you try to load this plugin.

I should also change the title on the dialog, move the pieces around, etc.
but anyway. Please try this out, and enjoy!

Note; I tried this with a 400 x 400 nurbs surface; tS slowed down a lot. However, I can
incorporate a couple 'optimization streams', in which only those triangle blocks which are affected by an edit are passed for processing. This should speed things up. I have not tried
them yet, but I will!
Got it installed okay and I can't wait for the next release bro. When the next version comes out should we uninstall the old one and just replace the old with new? Thanks, BNG.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: NURBS ALPHA 2-3 PLUGIN

Post by froo »

Hey BNG.
If you copy the plugin to the same folder/directory, then start trueSpace,
you should be ready to go.

Return to “Scripts and SDK”