I was wondering if it was possible to render an arbitrary creature's portrait in a custom UI, or get their custom portrait file (if they have one)
Question about rendering UIPortrait
Débuté par
Boozehound Blue
, juin 03 2011 05:14
#1
Posté 03 juin 2011 - 05:14
#2
Posté 03 juin 2011 - 06:16
you can select the portrait displayed of a creature in that creature property pannel.
#3
Posté 03 juin 2011 - 02:34
Yes, but can I retrieve that info via script/UI? I don't think so.
My basic idea was to create something of a mini-dialog screen, similar to the default message box, that shows the 'speaker's' portrait
My basic idea was to create something of a mini-dialog screen, similar to the default message box, that shows the 'speaker's' portrait
#4
Posté 03 juin 2011 - 03:37
It somehow gets loaded up when the convo window opens. Have you looked through the various conversation XMLs to see if there is anything in there that calls up the portrait?
#5
Guest_Chaos Wielder_*
Posté 03 juin 2011 - 05:00
Guest_Chaos Wielder_*
In the conversation UI--at least those based on the SOZ OLM conversations--here's the call for portraits:
<!-- Character Custom Portrait icon -->
<UIIcon name="CUSTOM_PORTRAIT_ICON" x="44" y="106" width="128" height="128" hidden="true" />
<!-- Character Portrait -->
<UIPortrait name="portrait" texture="p_m_gradient_bg_blue.tga" x="44" y="106" width="128" height="128"
OnRender=UIPortrait_OnRender_RenderConversationPortrait()
diffusecolor_r=.9 diffusecolor_g=.8 diffusecolor_b=.6
light_intens=1.3 >
<UIPointLight active="true" pos_x=".2" pos_y=".2" pos_z=".2" radius="4" intensity=".6"
color_r=".3" color_g=".2" color_b=".7"
speccolor_r=".3" speccolor_g=".2" speccolor_b=".3" />
<UIPointLight active="true" pos_x="-.2" pos_y="2" pos_z="0" radius="5" intensity="1"
color_r=".8" color_g=".8" color_b=".8"
speccolor_r="0.5" speccolor_g="0.5" speccolor_b="0.0" />
<UIPointLight active="true" pos_x=".5" pos_y="-2" pos_z="0" radius="10" intensity="2"
color_r=".6" color_g=".6" color_b=".5"
speccolor_r=".4" speccolor_g=".4" speccolor_b=".4" />
</UIPortrait>
So, you *might* be able to use that info if you know how to route through XML.
<!-- Character Custom Portrait icon -->
<UIIcon name="CUSTOM_PORTRAIT_ICON" x="44" y="106" width="128" height="128" hidden="true" />
<!-- Character Portrait -->
<UIPortrait name="portrait" texture="p_m_gradient_bg_blue.tga" x="44" y="106" width="128" height="128"
OnRender=UIPortrait_OnRender_RenderConversationPortrait()
diffusecolor_r=.9 diffusecolor_g=.8 diffusecolor_b=.6
light_intens=1.3 >
<UIPointLight active="true" pos_x=".2" pos_y=".2" pos_z=".2" radius="4" intensity=".6"
color_r=".3" color_g=".2" color_b=".7"
speccolor_r=".3" speccolor_g=".2" speccolor_b=".3" />
<UIPointLight active="true" pos_x="-.2" pos_y="2" pos_z="0" radius="5" intensity="1"
color_r=".8" color_g=".8" color_b=".8"
speccolor_r="0.5" speccolor_g="0.5" speccolor_b="0.0" />
<UIPointLight active="true" pos_x=".5" pos_y="-2" pos_z="0" radius="10" intensity="2"
color_r=".6" color_g=".6" color_b=".5"
speccolor_r=".4" speccolor_g=".4" speccolor_b=".4" />
</UIPortrait>
So, you *might* be able to use that info if you know how to route through XML.
Modifié par Chaos Wielder, 03 juin 2011 - 05:00 .





Retour en haut






