Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Feature Requests => Topic started by: romullus on 2019-08-12, 17:29:34

Title: Triplanar mapping mode directly in CoronaBitmap
Post by: romullus on 2019-08-12, 17:29:34
Feature request based on discussion in this topic: https://forum.corona-renderer.com/index.php?topic=25750.0

It would be very nice to have triplanar mapping implemented directly in CoronaBitmap for easier set up and more convenient use. I guess that due to lack of UI space, triplanar in CBitmap would have to be simplified, so separate triplanar node should still be available for full features access and for backward compatibility.

It seems that Fstorm has already such feature implemented, as it can be seen from image below.

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=25750.0;attach=110744;image)
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: agentdark45 on 2019-08-12, 17:56:22
How would you control the rotation and scale of the triplanar map with this setup?
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: romullus on 2019-08-12, 19:30:09
Scale control should be definitely implemented. Rotation and offset probably could be considered as advanced features and only available in dedicated node. Image in the first post, is from Fstorm implementation, it does not imply that Corona team should follow exact implementation.
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: danio1011 on 2019-08-12, 19:47:48
You just drive it using tiling like you would a normal bitmap but it also drives Triplanar.  I enable real world scale most of the time.  Works really well.
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: iancamarillo on 2019-08-12, 22:36:13
seems like an excellent opportunity to include Stochastic texturing at the same time?
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: maru on 2019-08-15, 10:11:46
Logged for the devs to consider.

(internal id=386309989)
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: cjwidd on 2019-09-08, 00:40:15
Thought it was about time to chime in and see whether there has been any movement on this feature request(?)
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: cjwidd on 2019-09-14, 20:41:28
denisT.MaxDoctor offered some code support in response to the suggested implementation, which you can see here (https://forums.autodesk.com/t5/3ds-max-programming/faster-triplanar-setup-maxscript/td-p/9020203), although it doesn't appear that the code satisfies the proposed feature request, exactly.

The Fstorm implementation is a good solution, however a script-based solution might function differently and I have outlined a workflow below:

The idea is that the user sees a material with bitmaps attached in the Slate Material Editor (see 'before.png'), selects the material, clicks a button (or hotkey), and then sees that material with triplanar nodes inserted, and bezier float controllers attached to the 'scale' parameter of the triplanar nodes (see 'after.png').

Before
(https://i.imgur.com/xwlkamQ.png)

A material with different bitmaps already attached.
NOTE: the bump channel is connected to a 'Corona Normal Texmap' and a source bitmap (normal).

After
(https://i.imgur.com/2vuBP4u.png)

A material with triplanar nodes inserted between the CoronaMtl and incoming nodes. Bezier float controllers are attached to the 'scale' parameter of the triplanar nodes to globally adjust triplanar scaling.
NOTE: triplanar node in the bump channel is inserted between the Corona Normal Texmap and the material, rather than between the source bitmap (normal) and the Corona Normal Texmap.
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: cjwidd on 2020-10-15, 21:26:28
Did we ever get any feedback from the development team on enhanced integration for the Corona Triplanar Map? It seems like the FStorm style integration in which triplanar mode is folded into the Corona Bitmap is a strong suggestion.
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: maru on 2020-10-16, 17:29:17
Don't worry, it is not forgotten. ;)
Title: Re: Triplanar mapping mode directly in CoronaBitmap
Post by: cjwidd on 2020-10-16, 21:32:56
Nice! 🙏