Serejah
@serejah
New Member
Joined: Feb 14, 2024
Topics: 34 / Replies: 1221
Reply
RE: Cast ray and get its color?

Look at c++ sdk Bitmap class and its available methods. .GetStoragePtr isn’t documented, but perhaps it is the pointer to raw pixel data. You can get…

4 years ago
Forum
Reply
RE: Cast ray and get its color?

so what if you do a dozen of quick 2×2 px region renders (maybe it should be a blowup renders) instead of single whole-frame render? getPixels shouldn…

4 years ago
Forum
Reply
RE: Cast ray and get its color?

Rendertime color depends on the renderer, lighting, camera, material and texturemap settings so you obviously can’t just get it from a scene. What you…

4 years ago
Forum
Reply
RE: Convert data to string (C#)

Try to make a IMatrix3Value from IMatrix3 and get string from there or simply read and dispose every row manually ( g = (dotNetClass “Autodesk.Max.G…

4 years ago
Forum
Reply
RE: BlendMatrix

fixed the link

4 years ago
Forum
Reply
RE: BlendMatrix

Reference types like IPoint3 & IMatrix3 allocate themselves on the heap so I had to use custom value type structs example to eliminate mem leaks. …

4 years ago
Forum
Reply
RE: BlendMatrix

Did you test it for memory leaks? Last time I used matrix3 and point3 classes intensively it was leaking as hell

4 years ago
Forum
Reply
RE: BlendMatrix

really? изображение.png463x647 22.2 KB or maybe you’re talking about something else?

4 years ago
Forum
Reply
RE: Align object to face normal problem

you can try inverseHighPrecision <matrix>, if you’re really sure that polygon is 100% flat in the first place.

4 years ago
Forum
Reply
RE: MaxScript: Way to find all instances of a texturemap and define a material slot

What I found is that ‘copy some_texmap’ actually copies whole tree, which sometimes isn’t what we want In sme it is possible to make a copy of whole s…

4 years ago
Forum
Reply
RE: MaxScript: Way to find all instances of a texturemap and define a material slot

But how is it possible without makng Mix_1 unique first?

4 years ago
Forum
Reply
RE: MaxScript: Way to find all instances of a texturemap and define a material slot

Ok. What should happen if the Mix_1 map containing Noise_1 is in the valid slot? I mean diffuseMap and bumpMap (valid and invalid slot) share same ins…

4 years ago
Forum
Reply
RE: MaxScript: Way to find all instances of a texturemap and define a material slot

So what you want is to make the particluar Noise map instance unique in the rest of the slots no matter how deep in shader hierarchy they are? In this…

4 years ago
Forum
Reply
RE: MaxScript: Way to find all instances of a texturemap and define a material slot

I’d try to replace getPropNames with smth like this. Don’t know if it is actually any better, but at least you can parse the type of the property and …

4 years ago
Forum
Reply
RE: MaxScript: Way to find all instances of a texturemap and define a material slot

But what’s wrong with the refs.dependents from the above example? It does exactly what you need. It returns the list of the materials/modifiers/etc th…

4 years ago
Forum
Page 22 / 84