MasterZap
@masterzap
New Member
Joined: Feb 15, 2024
Topics: 0 / Replies: 7
Reply
RE: SDK Custom Render Element, can't access element's bitmap

…and checking the render dispatcher code, yes you must have your element enabled to get the bitmap created!! And this is done by the render executor, …

7 years ago
Forum
Reply
RE: SDK Custom Render Element, can't access element's bitmap

Remember that there are a ton of samples in the SDK directory, and many of the “samples” aren’t actually samples – it’s the actual code being run in m…

7 years ago
Forum
Reply
RE: Max Maps to Mental Ray

In principle yes, but unfortunately, max tries to be smart and compact the channel data. To know which channel goes where, you would need to look up …

16 years ago
Forum
Reply
RE: Max Maps to Mental Ray

Do you have a code sample? /Z

16 years ago
Forum
Reply
RE: Max Maps to Mental Ray

Where are you gettings state->tex value from? You are adding to it – does it have a meaninful value going in? I’d do something like vectorAdd(&am…

16 years ago
Forum
Reply
RE: Max Maps to Mental Ray

In both cases, the max guys decided to implement these as subshaders, passed as shader parameters. Basically, you call these with mi_call_shader_x fro…

16 years ago
Forum
Reply
RE: Max Maps to Mental Ray

You are not allocating storage for the value. You do miColor *c0; mi_lookup_color_texture(c0, …); This will crash because c0 is a pointer, not poin…

17 years ago
Forum