ivanisavich
@ivanisavich
New Member
Joined: Feb 15, 2024
Topics: 63 / Replies: 313
Reply
RE: [SDK] vertex animation

Oh, so you literally want to be able to keyframe individual vertices? Can’t help you there… Otherwise it seems like a typical geometry modifier is wh…

9 years ago
Forum
Reply
RE: [SDK] vertex animation

It’s impossible to answer such a broad question. Are you wanting to animate the verts of an existing object? Import a cache of animated verts? Affect …

9 years ago
Forum
Reply
RE: SDK: snapshotAsMesh?

Your function doesn’t make much sense to me. Firstly, you’re getting a copy of your new TriObject’s mesh (which is likely null…although maybe the …

9 years ago
Forum
Reply
RE: SDK: snapshotAsMesh?

Woops, forgot that we want a copy of the mesh Thanks Denis. Also didn’t realize that ConvertToType doesn’t do redundant conversions…good to know for…

9 years ago
Forum
Reply
RE: SDK: snapshotAsMesh?

Malkalypse: …requires the source node to be TriObject-collapsible Just remember that ‘CanConvertToType(triObjectClassID)’ doesn’t necessarily mea…

9 years ago
Forum
Reply
RE: SDK: snapshotAsMesh?

((TriObject*)node->EvalWorldState(t).obj)->GetMesh(); …is how you get the mesh of a node at a certain time. Note: this doesn’t do …

9 years ago
Forum
Reply
RE: Local Offset Transforms

which is acting very weird because the local position gets set to 0 each time the spinner increments. This makes sense because an object’s position …

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

You could use something like dotPeek to check your DLLs and see if they contain the classes in question. That’s how I originally found them.

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

Are you including “Autodesk.Max.Wrappers.DLL” in your project? It’s in [maxroot]/bin/assemblies. Definitions for ‘__Global’ and ‘__GlobalBMM_Color_fl…

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

Thanks for that, I’ve edited the code above with the change. 4k image in 0.25 seconds now. Approx 180x faster than maxscript alternative…not bad

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

Alright Pete, good news! I got the C# GetPixels function working on full scanlines now, so the image can be processed completely in C# and it will ret…

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

lo: but ideally you’d create an array the size of a row and pass a pointer to that. Any idea how to do that? I’m not super familiar with pointers…

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

Good idea, I’ve managed to pass a bitmaptexture to .net and extract the bitmap from it…the only issue is that dotnet’s GetPixels function crashes max …

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

Even C# could do the trick if you’re ok with the color values of your bitmap being rounded to integers and clamped between 0-255. This runs in 0.7 se…

9 years ago
Forum
Reply
RE: Bitmap Processing Efficiencies

Hmm, I’m unable to replicate your <=1024px pre-declare performance. The pre-declare function is pretty consistently about 1.5-2x slower than the ot…

9 years ago
Forum
Page 9 / 26