Full Version: Rebuild dense nurbs mesh to lighter one after importing it as obj/subd (script)

From: bartosh44 [#1]
 11 Oct
To: ALL

Is there any script for MoI3d to rebuild dense nurbs mesh to lighter one. Something like rebuild curve but for shapes and surfaces?

Reply


From: Michael Gibson [#2]
 11 Oct
To: ALL

Hi bartosh, sorry no I'm not aware of any such script.

Probably the main way to reduce complexity would be to do more processing in a polygon modeling program to simplify your sub-d control cage first before doing the NURBS conversion. You'd do that by using retopology tools in the poly modeling program. There are some automated tools for this as well, check out 3D Coat or ZBrush.

- Michael

Reply


From: AlexPolo [#3]
 11 Oct
To: ALL

Hi Bartosh,

One method I use which works simply is to take the SUBd shape and ran a few cross section planes through the shape capturing the details where wanted. Then I use loft or curve network to manually rebuild the shape. I usually rebuild the new curve set to a lower point count so the mesh is lighter. Works well on certain shapes.

hope that helps.

Reply


From: mkdm [#4]
 11 Oct
To: ALL

Hi bartosh44.

Well...there many ways to do it.

If you want, at any cost, doing that all inside Moi, one of the ways is like AlexPolo said.

I've made a brief video example of what I'm talking about.

Is a simple use case where I have a very simple polygonal cage made in some Poly/SDS software, in this case Rocket3F, and I export it to Moi.
Than in Moi I first apply Max's subdiv and then I do a "downgrade" of topology of the resulting joined surface.

Clearly this method is good only if you don't need to exactly match the starting surface, but you can accept a certain degree of approximation.

You can watch it here : http://take.ms/diY5A

Anyway...this is a very time consuming method and I think that all should be done more easily in Poly/SDS/Sculpt environment as Michael said.

But, if you like it, consider this as a alternative way.

Bye!

Marco (mkdm)

Reply


From: mkdm [#5]
 11 Oct
To: ALL

Anyway, "bartosh44".... It's nothing personal but, it's a common courtesy to thanks those who tried to help you with answers and examples.
(Michael, AlexPolo and me)

Nothing personal....only simple education.

Bye.

Reply


From: Mike (MGG942) [#6]
 11 Oct
To: ALL

Interesting technique - thanks for sharing it.

Mike.

Reply


From: mkdm [#7]
 11 Oct
To: ALL

You're welcome Mike!

Bye.

Reply


From: bartosh44 [#8]
 12 Oct
To: ALL

Pardon me. I didn't mean to be rude. Thanks for your answers and for time. Your answers are very helpfull for me. I`ve read it few times. I am writing not only about present thread. It`s about all my threads and all my questions.

I promise to be better :)

I`m mainly Modo and Zbrush modeler so I thought there is some hidden "magic button" ;) to do that

@mkdm: I`ve seen on your movie that you have some fancy icons palette. How to turn it on.

Reply


From: Michael Gibson [#9]
 12 Oct
To: ALL

Hi bartosh, I didn't think you were being rude, I'm sorry if I gave that impression.

There just isn't really the same concept of reconstructing an object in a CAD solids modeler like there is in a polygon modeler. That's why it's probably better to do that type of thing in a poly modeler instead of in MoI. For simple cases you could use the techniques others described above but that won't really work with forms that have branching structures in them.

One of the things that makes that difficult with CAD solids is that in any solids that have had booleans done on them, the object is not just made up of simple surfaces, they're made up of surfaces that have trim curves on them and different faces are glued together at those trim boundaries. There's some illustration of this in this FAQ answer here. So it's not enough to just simplify the "underlying surfaces" alone, you'd have to try and simplify them while still making them intersect with each other which is really complicated.

With a sub-d model you have a particular case where there aren't any internal trim curves, the "underlying surfaces" are all matching with each other, but that's not the normal type of model that is produced in CAD. It is the normal type of thing that's produced in a polygon modeler though so it's in a polygon modeler where you'll find the reconstruction tools for that type of data as well.

- Michael

Reply


From: James (JFH) [#10]
 12 Oct
To: ALL

Hi bartosh44,

Attached is a .nod file to retopologize a dense nurbs surface

UPDATED: Only applicable for an individual nurb surface.
Will not work for a polysurface, such as imported .obj file, even after applying subD script.
Marco's method above will achieve result for polysurfaces.


In the image you can see the control vertices (dots) and the newly generated U&V curves.
Select all, and apply Construct/Network with setting Mode:Custom & Tolerance:0.5 (higher if desired).
Select generated surface, and apply Edit/Show pts to see vertex mesh.

Hope this helps
James

PS To run .nod file to must first open pretopologize.3dm, select it and create new Object/Selected node.
as above.


Attachments:
pretopologize.3dm
retopologize2.nod

Image Attachments:
retopologize.jpg 

Reply


From: mkdm [#11]
 12 Oct
To: ALL

FANTASTIC JOB James !!! FANTASTIC JOB!!!

You turned into programmatic way what I've done manually!! (more or less)

Great job! Thanks a lot. This is a great stuff to study :)

You did the magic!

Thanks.

Reply


From: mkdm [#12]
 12 Oct
To: ALL

Hi bartosh44!

@You : "...Pardon me. I didn't mean to be rude. Thanks for your answers and for time..."

Ok. It's all right. You're welcome.


@You : "...I`ve seen on your movie that you have some fancy icons palette. How to turn it on..."

Well...that fancy icons palette it's part of a huge Moi's UI rewrite I did some times ago.
It includes some plugins also.
I wanted many times to publish my whole Moi's folder with all my UI's plugins and extensions, as I wrote some times in some posts,
but so far, unfortunately, I never had time to cleanup all the html/js code and the Moi's folder in order to create something easily "testable" by all other users.

For the moment all that I can do is to give you the links to the original posts where I talked about this topic :

1) http://moi3d.com/forum/index.php?webtag=MOI&msg=8122.1
"Showcase of very personal Moi"
This is not very useful because it's only a showcase of my personal Moi

2) http://moi3d.com/forum/index.php?webtag=MOI&msg=7862.1
"Scripts Icons Gallery"
Although this is not referring to what you are asking for, it's another UI's plugin that I wrote some times ago and that I daily use.
If you want to personalize your Moi in that way, you will find all the instructions into the original post.

But I want to advice you that you have to do some heavy modification on some Moi's files and if you are new to Moi maybe it's better not to do.
Or, at least, it's better that you first make a complete backup of your actual Moi's folder.

Unfortunately actually I haven't extra spare time to help you in this configuration.

Maybe some some day I will be able to publish my whole Moi's folder and you or others will be able to easily test it.

That's all!

Have a nice day.

Reply


From: Karsten (KMRQUS) [#13]
 12 Oct
To: ALL

Hello James,

Yep!

It seems that we are missing a Network node;-) And rebuild curve would also help for a complete toolchain!

In a first step we can use a loft for u or for v, but it's not the same!

Have a nice day
Karsten

Reply


From: mkdm [#14]
 12 Oct
To: ALL

Hi Karsten.

@You : "...It seems that we are missing a Network node;-) ..."

Maybe I don't remember well, but...Network node had not already been written by someone ?

Reply


From: Barry-H [#15]
 12 Oct
To: ALL

Hi James,
I can not get a result having followed your instructions.
The node loads ok and runs but no result so not sure if
I'm missing something.
Any thoughts?
Cheers
Barry

Reply


From: James (JFH) [#16]
 12 Oct
To: ALL

Hi Barry

Try the attached, ensuring that "pretopologize.3dm" is opened prior to loading "retopologize3.nod"
"SelectByName" will auto load surface for re-topologizing.

James

Attachments:
pretopologize2.3dm
retopologize3.nod

Reply


From: Barry-H [#17]
 13 Oct
To: ALL

Hi James,

found the problem when I opened the retopologize macro the IsoCrvs & mPathArray node are in red meaning I don't have them.
So can you post them or point to where they are on the forum please.

Cheers
Barry

Reply


From: James (JFH) [#18]
 13 Oct
To: ALL

Hi Barry,

Replace nodes/extensions folder with one from here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8197.7

It would be prudent to make a copy of existing extensions folder
just in case you need to reinstate it.

James

Reply


From: Barry-H [#19]
 13 Oct
To: ALL

Hi James,
sorry still no luck getting the following error message.
Cheers
Barry

Image Attachments:
Error report.png 

Reply


From: mkdm [#20]
 13 Oct
To: ALL

Hi Barry.

I'm running "retopologize" nodes with LATEST 0.97 version of NE and all works fine.

You are running 0.96

Maybe that is the problem.

Marco (mdkm)

Reply


Show messages:  1-20  21-24

Reply to All

Back to thread list | Login

© 2017 Project Beehive Forum