CGTalk > Software Specific Forums > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »
 
Thread Tools Search this Thread Display Modes
Old 04-06-2013, 10:26 PM   #16
gazybara
Architect
 
gazybara's Avatar
portfolio
Branko Živković
Freelancer
Niš, Serbia
 
Join Date: Apr 2011
Posts: 1,077
Quote:
Originally Posted by denisT
do you want a real fun and challenge? write new Rollout Creator. make it smarter, more robust, and being able to support dotnet controls.

Denis, I think this is the best idea for now.
Also it would be nice to create Parquet Flooring Tool (like floorGenerator) that will produce patterns like this
__________________
Looking in the right side. [bgaTools]
 
Old 04-07-2013, 03:50 AM   #17
rodbrew
Veteran
Rod Brewster
USA
 
Join Date: Jun 2005
Posts: 85
Quote:
Originally Posted by denisT
do you have any idea about its cool using? the thing has to be generally useful i guess...


Yeah a couple things off the top of my head. Building things like roads where you have different profiles along the ditches or maybe the road widens ect. Probably also be useful for building terrain from maybe autocad splines. Also for a way of stitching geometry together.

Say you have some usgs terrain and you want to model a road through it. You could cut out the section from the usgs model build your road and then sweep a profile with one edge being the road and the other edge being the cutout edge of the terrain if this make sense.
 
Old 04-07-2013, 07:55 PM   #18
Kickflipkid687
Art and Music are Life
 
Kickflipkid687's Avatar
portfolio
Matthew Lichy%2B
3D Artist
United%2BStates
 
Join Date: Jan 2005
Posts: 1,640
Send a message via AIM to Kickflipkid687 Send a message via MSN to Kickflipkid687
Thanks for that tip Dennis.

I got it working as a Custom XView Type. But now I need to make it faster. There's a 1/2 second delay or something when processing/finding UV Island Borders.
__________________
http://matthewlichy.com

 
Old 04-07-2013, 08:07 PM   #19
MZ
Expert
 
MZ's Avatar
portfolio
Mehdi Zangeneh
Animation TD
Bina Film
Tehran, Iran
 
Join Date: Sep 2007
Posts: 337

In bigger idea, I think we need to split 3dsmax to some subsoftware’s:


- Animation


- VFX


- Visualization


- 2D Animations (Cutout)


- ...



And make separate version of 3dsmax for each of them. Ihave been already done this for cutout animations (3dCutout).we can dothis by removing unused tools, updating existing tools and make new tools.




3dsmax is composed of many usable and unusable tools, weneed to remove them first! who makes animations by CAT? they really makes theiranimations just by walk cycle? we need to know what really users want.

__________________
http://3dcutout.com/
 
Old 04-07-2013, 08:22 PM   #20
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,102
Send a message via ICQ to denisT
Quote:
Originally Posted by Kickflipkid687
I got it working as a Custom XView Type. But now I need to make it faster. There's a 1/2 second delay or something when processing/finding UV Island Borders.

how many faces in the object? how do you search for open map edges? i have ~30ms for 10,000 faces mesh
 
Old 04-07-2013, 08:41 PM   #21
Kickflipkid687
Art and Music are Life
 
Kickflipkid687's Avatar
portfolio
Matthew Lichy%2B
3D Artist
United%2BStates
 
Join Date: Jan 2005
Posts: 1,640
Send a message via AIM to Kickflipkid687 Send a message via MSN to Kickflipkid687
Quote:
Originally Posted by denisT
how many faces in the object? how do you search for open map edges? i have ~30ms for 10,000 faces mesh


I am going off an Example on how to Split a Mesh by UV Elements. It's using the

Code:
meshop.getMapVertsUsingMapFace meshop.getMapFacesUsingMapVert


I did a test, my code runs on an EditableMesh in 0.1 seconds, vs 0.4 or higher on EditablePoly.
But I need to run this on an EditablePoly.

This is just on a simple Teapot.

Here's the main part of the code. Getting the Island Faces.

Code:
with undo off ( local node = selection[1] local nodeMesh = node.mesh local islandArray = #() local faces = (nodeMesh.faces as BitArray) local app = append local find = findItem local getMapVertsFromFaces = meshop.getMapVertsUsingMapFace local getMapFacesFromVerts = meshop.getMapFacesUsingMapVert start = timeStamp() while ((faces as array).count > 0) do ( local cnt = 0 local face_array = #((faces as array)[1]) --repeat until the counter is higher than the faces stored in the array while cnt < face_array.count do ( cnt += 1 --increase the counter --get all map vertices used by the current map face in the collection array: theVerts = getMapVertsFromFaces nodeMesh 1 #(face_array[cnt]) --get all map faces used by these map vertices - --this gives us all neighbours of the current map face theFaces = getMapFacesFromVerts nodeMesh 1 theVerts --make sure only unique faces are written to the array for f in theFaces where find face_array f == 0 do app face_array f --appendIfUnique face_array f )--end while cnt app islandArray face_array local tempFaces = face_array as BitArray faces -= tempFaces ) end = timeStamp() format "Processing took % seconds\n" ((end - start) / 1000.0) )
__________________
http://matthewlichy.com

 
Old 04-07-2013, 09:00 PM   #22
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,102
Send a message via ICQ to denisT
to show my code will be too easy
i will give some tips first...
meshop.getMapVertsUsingMapFace and meshop.getMapFacesUsingMapVertare are slow methods... both go through all faces/verts... use getmapface, it processes only one face.
it's #1

Last edited by denisT : 04-07-2013 at 09:06 PM.
 
Old 04-07-2013, 09:02 PM   #23
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,102
Send a message via ICQ to denisT
Quote:
Originally Posted by Kickflipkid687
I am going off an Example on how to Split a Mesh by UV Elements.

where did you get this sample?
 
Old 04-07-2013, 09:11 PM   #24
Kickflipkid687
Art and Music are Life
 
Kickflipkid687's Avatar
portfolio
Matthew Lichy%2B
3D Artist
United%2BStates
 
Join Date: Jan 2005
Posts: 1,640
Send a message via AIM to Kickflipkid687 Send a message via MSN to Kickflipkid687
Quote:
Originally Posted by denisT
where did you get this sample?


From Autodesk, ha.

Quote:
How to Develop AFace Area xView Checker - Part 1
__________________
http://matthewlichy.com

 
Old 04-07-2013, 09:19 PM   #25
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,102
Send a message via ICQ to denisT
actually i was asking about the 'split' sample... i've found it in the mxs. well... what can i say? not fastest method is shown
 
Old 04-08-2013, 01:14 AM   #26
Kickflipkid687
Art and Music are Life
 
Kickflipkid687's Avatar
portfolio
Matthew Lichy%2B
3D Artist
United%2BStates
 
Join Date: Jan 2005
Posts: 1,640
Send a message via AIM to Kickflipkid687 Send a message via MSN to Kickflipkid687
Quote:
Originally Posted by denisT
to show my code will be too easy
i will give some tips first...
meshop.getMapVertsUsingMapFace and meshop.getMapFacesUsingMapVertare are slow methods... both go through all faces/verts... use getmapface, it processes only one face.
it's #1



Hm. I'm not sure I can figure it out that way. But, it seems like using that method, I'd get the face map verts, then compare the verts between faces to see if they share some, if they do, then group those together in an array?
__________________
http://matthewlichy.com

 
Old 04-08-2013, 06:21 PM   #27
JokerMartini
Expert
 
JokerMartini's Avatar
portfolio
John Martini
CG Supervisor, 3D, Maxscript, VFX
Ingenuity Engine
Los Angeles, USA
 
Join Date: Mar 2009
Posts: 1,296
Send a message via AIM to JokerMartini
The idea of creating a visual maxscript dialog creator with support of dotnet controls is a very cool idea.
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 04-08-2013, 06:25 PM   #28
lo
the frequentest!
portfolio
Rotem Shiffman
Tel Aviv, Israel
 
Join Date: Jul 2005
Posts: 2,822
Quote:
Originally Posted by JokerMartini
The idea of creating a visual maxscript dialog creator with support of dotnet controls is a very cool idea.


Now, that is an idea!
 
Old 04-08-2013, 06:49 PM   #29
MZ
Expert
 
MZ's Avatar
portfolio
Mehdi Zangeneh
Animation TD
Bina Film
Tehran, Iran
 
Join Date: Sep 2007
Posts: 337
It would be nice to have node-based editor.
__________________
http://3dcutout.com/
 
Old 04-08-2013, 07:15 PM   #30
JokerMartini
Expert
 
JokerMartini's Avatar
portfolio
John Martini
CG Supervisor, 3D, Maxscript, VFX
Ingenuity Engine
Los Angeles, USA
 
Join Date: Mar 2009
Posts: 1,296
Send a message via AIM to JokerMartini
node based editor for doing what?
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:41 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.