nvpx.CreateConvexHull Error - Cannot convert Editable Mesh to type Mesh

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2012   #1
nvpx.CreateConvexHull Error - Cannot convert Editable Mesh to type Mesh

After updating the PhysX plugin to 2.71 in Max 2012 a chunk of code now fails. In fact, the code fails in a vanilla install of Max 2013 too. The following code worked for me in previous versions, though.


 
/*Make a teapot*/
tp = TeaPot()
 
/*convert teapot to mesh to pass into PhysX function*/
ConvertToMesh tp
 
/*Create an empty Editable_mesh to store the new hull*/
newnode = Editable_mesh() 
 
newnode.mesh = nvpx.CreateConvexHull (tp) 44 0 --Exception happens here! 
 
update newnode


The exception that happend:
Quote: -- Unable to convert: $Editable_Mesh:Teapot001 @ [0.000000,0.000000,0.000000] to type: Mesh


Any ideas? Is it that I was originally using this function incorrectly (but it magically worked), or is this a new bug?
__________________
Shawn Olson
Autodesk Expert Elite
3ds Max Charter Member

Developer of:
Wall Worm Tools for the Source Game Engine
CorVex Level Design Plugin
 
Old 04 April 2012   #2
ss = editable_mesh ()
classof ss.mesh --> TriMesh

make a box , convert it to mesh . select it . then :
classof $ --> Editable_mesh
classof $.mesh --> TriMesh

Editable_mesh == TriMesh -- > false

that is means :
classof ss.mesh != classof any mesh object .

--------------------------------------------------
Maybe the return of function u mentioned is a "Editable_mesh" . then u assign it to a TriMesh varable of the Editable_mesh modifier class instance .
---------------------------------------------------
maybe coding like this will be ok :
(editable_mesh()).mesh = (the return of the function).mesh
__________________
-- to be better every day --
google talk : haibo.lan@gmail.com
msn: ehblan@hotmail.com
-- add me to ur IM buddy list as u wish.
 
Old 04 April 2012   #3
Thanks for the feedback. I actually tried that and various similar ideas when the functions stopped working... and it would always simply fail. It just happens that in previous versions you could pass an editable_mesh (and the function would work fine). But now it simply won't work in any way I write it.

nVidia has now confirmed this to be a bug in these versions of PhysX/MassFX. There are related hull functions that are also broken that specifically take nodes instead of a trimesh and they are also broken.
__________________
Shawn Olson
Autodesk Expert Elite
3ds Max Charter Member

Developer of:
Wall Worm Tools for the Source Game Engine
CorVex Level Design Plugin
 
Old 04 April 2012   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



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 01:30 AM.


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