Author Topic: How do i add AO in CTexmap via maxsript?  (Read 2344 times)

2016-03-28, 09:39:19

Mrshawn

  • Active Users
  • **
  • Posts: 9
    • View Profile
I have read this topic :https://forum.corona-renderer.com/index.php/topic,7294.msg48942.html#msg48942 and I know how to call the class of elements.
But I still don't know how to use it, "CTexmap.texmap=CoronaAO() or CTexmap().texmap=CoronaAO()??" --it does't work--
Sorry..I am a newbie. Please give me a tip.Thanks a lot~~

2016-03-28, 11:32:13
Reply #1

guest_guest

  • Guest
Try this ;)

(maxOps.getCurRenderElementMgr()).addrenderelement (CTexmap texmap:(CoronaAO samplesCount:128 maxDistance:10) name:"AO")


this script automatically add an renderelement type of CTexmap with assigned an CoronaAOto texture map of this element ...
the CoronaAO parameters can be changed ... i wrote a sample for you !! ;)
« Last Edit: 2016-03-28, 11:35:39 by guest_guest »

2016-03-28, 12:57:05
Reply #2

Mrshawn

  • Active Users
  • **
  • Posts: 9
    • View Profile
Try this ;)

(maxOps.getCurRenderElementMgr()).addrenderelement (CTexmap texmap:(CoronaAO samplesCount:128 maxDistance:10) name:"AO")


this script automatically add an renderelement type of CTexmap with assigned an CoronaAOto texture map of this element ...
the CoronaAO parameters can be changed ... i wrote a sample for you !! ;)
Wow~~That's great! Thank you very much. @guest_guest