-

 - e-mail

 

 -

   seamanmur

 -

 -

 LiveInternet.ru:
: 14.04.2006
:
:
: 120

:

UDK.


: Unity3D(0), MyGame(2), misk(10), 3ds(34), 2d(4)
(0)

, 14 2010 . 11:22 +

UnrealScript!

,    .  - . . ...

.

,  , :

function RPGInvActor(class<Inventory> BaseClass, out Inventory Inv)

:

native final iterator function InventoryActors( class<Inventory> BaseClass, out Inventory Inv );

 InventoryManager. - Inv None,  .

foreach :

do
{
 ...
} until( Inv != None);

 

 RPGInvActor . , :

var Inventory        InvCash;            //

...

? .

. ,  ( ). ,  ,  .

,  ...

? - . .

, - . . ,  - .

 

3ds/UDK

:  
(0)

, 10 2010 . 14:40 +

. ,  . .

- . . - ... , 

...

good (393x505, 28 Kb)
3ds/UDK
MyGame

:  
(1)

, 23 2010 . 09:25 +

AS US.
1. US AS.
( , ) :
    import flash.external.ExternalInterface;
.
:
    ExternalInterface.call("OnPressNewGameButton");
- , US.
AS "New Game" US "OnPressNewGameButton", :
    function OnPressNewGameButton(GFxClikWidget.EventData ev)
    {
        PC.Player.Actor.ConsoleCommand("open Terra1", false);
    }

, AS "New Game" ...
"" AS:
    import gfx.controls.ButtonGroup;
    import flash.external.ExternalInterface;
    function SendNewGameCommand() {
        ExternalInterface.call("OnPressNewGameButton");   
    }
    btn_NewGame.addEventListener("click", this, "SendNewGameCommand");
    stop();

...
2. AS US.
, .
. :
    if (!options) {
        var options:Object = {};
    }

    var defScreen:Number = 2;
    var defBrightness:Number = 5;
    var defContrast:Number = 5;
    var defGamma:Number = 5;

    var defSpeak:Number = 5;
    var defMusik:Number = 5;
    var defSFX:Number = 5;
    var defAmbient:Number = 5;

    options.selectedScreen = (options.selectedScreen) ? options.selectedScreen : defaultScreen;
    options.Brightness = (options.Brightness) ? options.Brightness : defBrightness;
    options.Contrast = (options.Contrast) ? options.Contrast : defContrast;
    options.Gamma = (options.Gamma) ? options.Gamma : defGamma;

    options.Speak = (options.Speak) ? options.Speak : defSpeak;
    options.Musik = (options.Musik) ? options.Musik : defMusik;
    options.SFX = (options.SFX) ? options.SFX : defSFX;
    options.Ambient = (options.Ambient) ? options.Ambient : defAmbient;

- ( ). ( , )...

- CLIK-, - .
:
    stp_Screen.dataProvider = ["800*600", "1024*768", "1280*768", "1280*1024"];
    stp_Screen.selectedIndex = (options.selectedScreen) ? options.selectedScreen : defScreen;

    sld_Brightness.value = (options.Brightness) ? options.Brightness : defBrightness;
    sld_Contrast.value = (options.Contrast) ? options.Contrast : defContrast;
    sld_Gamma.value = (options.Gamma) ? options.Gamma : defGamma;

(, ) .
:
    function SendBrightness() {
        options.Brightness = sld_Brightness.value;
        ExternalInterface.call("OnChangeGraphic");
    }

, US US, .
:
    sld_Brightness.addEventListener("change", this, "SendBrightness");
, . .. :
    function SendChangeScreen() {
        options.selectedScreen = stp_Screen.selectedIndex;
    }

:
    function SetDefault() {
        stp_Screen.selectedIndex = defScreen;
    -----
        options.Gamma = defGamma;
        ExternalInterface.call("OnChangeGraphic");
    }

. :
    function ReturnToOptionsMenu2() {
        options.selectedScreen = stp_Screen.selectedIndex;
        options.Brightness = sld_Brightness.value + 0.001;
        options.Contrast = sld_Contrast.value + 0.001;
        options.Gamma = sld_Gamma.value + 0.001;
        gotoAndPlay("optionsmenu");
    }

. US ...   + 0.001 - , ...
US :
    import flash.external.ExternalInterface;
    ExternalInterface.call("OnCloseAnimationComplete");
    stop();

...
US ...
:
    function OnChangeGraphic()
    {
        Brightness = 2.f - MainMC.outer.GetVariableNumber("options.Brightness") / 5.f;
        Contrast = 1.05f - MainMC.outer.GetVariableNumber("options.Contrast") / 10.f;
        Gamma = MainMC.outer.GetVariableNumber("options.Gamma") / 10.f;
        ChangeDisplayOption();
    }
    function ChangeDisplayOption()
    {
        local Player PP;
   
        PP = GetLP();
   
        PP.PP_HighlightsMultiplier = PC.PostProcessPresets[0].Highlights * Contrast * Brightness * 2.f;
        PP.PP_MidTonesMultiplier = PC.PostProcessPresets[0].MidTones * Brightness;
        PP.PP_ShadowsMultiplier = PC.PostProcessPresets[0].Shadows * ( 1.f - Contrast ) * Brightness * 2.f;
        PC.SetGamma(Gamma);
    }

.outer.GetVariableNumber - AS. MainMC - GFxObject, Start :
    MainMC = GetVariableObject("_root");
, , "" .
:
    function OnChangeAudio()
    {
        SoundSpeak = MainMC.outer.GetVariableNumber("options.Speak") / 10.f;
        SoundMusik = MainMC.outer.GetVariableNumber("options.Musik") / 10.f;
        SoundSFX = MainMC.outer.GetVariableNumber("options.SFX") / 10.f;
        SoundAmbient = MainMC.outer.GetVariableNumber("options.Ambient") / 10.f;
        ChangeAudioOption();
    }
    function ChangeAudioOption()
    {
        PC.SetAudioGroupVolume( 'SFX', SoundSFX );
        PC.SetAudioGroupVolume( 'Dialog', SoundSpeak );
        PC.SetAudioGroupVolume( 'Announcer', SoundSpeak );
        PC.SetAudioGroupVolume( 'Music', SoundMusik );
        PC.SetAudioGroupVolume( 'Ambient', SoundAmbient );
    }

 / 10.f - .. 0 10, US 0 1.
PC - UTPlayerController :
    var UTPlayerController PC;
    function bool Start()
    {
    ...
    PC = UTPlayerController(GetPC());
    ...
    }

:
    function OnCloseAnimationComplete()
    {
        ScreenRes = MainMC.outer.GetVariableNumber("options.selectedScreen");
        switch(ScreenRes)
        {
            case 0:
                UT_ConsoleCommand("setres 800x600x32xw", true);
                break;
            case 1:
                UT_ConsoleCommand("setres 1024x768x32xw", true);
                break;
            case 2:
                UT_ConsoleCommand("setres 1280x768x32xw", true);
                break;
            case 3:
                UT_ConsoleCommand("setres 1280x1024x32xw", true);
                break;
            default:
                break;
        }
        UTGFxHudWrapper(GetPC().MyHUD).CompletePauseMenuClose();
    }


AS , SetVariableNumber. - DataProvider... / - ...

- GFx . :
defaultproperties :
    SoundThemes(0)=(ThemeName=default,Theme=UISoundTheme'UDKFrontEnd.Sound.SoundTheme')
, .

3.

UTGFxHudWrapper TogglePauseMenu -
    PauseMenuMovie = new class'GFxUI_PauseMenu';

. , ShowMenu, Esc.
, ( ). Esc. ...
GFxUI_PauseMenu...
GFxUI_PauseMenu AS, .

GFxMoviePlayer :
UDN
AS US ...

/ /. . :
    PC.ClientPlaySound(MenuMusic);
. . " ". , , . !

AS:

    if( _global.gfxProcessSound )
    {
         _global.gfxProcessSound(this, "SoundThemeName", "SoundEventName");
    }

- (GFxMoviePlayer)...
?!?

3ds/UDK

:  
(0)

, ...

, 15 2010 . 08:40 +

. unreal-level. ,  ...

: UV, VW, UW. . . . 1- - Planar z. Render to Texture. 2- Planar y - . .

...

. - , .. ...

- ,  . . . -

 

.

. ,  2 ( ). - - - ,  2 ?...

. . ,  ? . ? ?

3ds/UDK

:  
(1)

, 11 2010 . 16:20 +

. - 45 . . :

.

...

- ...

3ds/UDK

:  
(0)

, 11 2010 . 13:50 +

.

 

0- UVW , 0-1 , ( 1-) .

 

4 , . 15 .

 

- - , . .., 2- . 2, 3 . , . .

 

- , - UVWMapping. , - :

UnwrapChecker . . UVWMapping. .

- ...

- 3 !

- . . 3 ...

 

3ds/UDK

:  
(1)

, 09 2010 . 11:08 +

. 6 84 . . ( ).
:
, - . TA_Wrap, TA_Clamp. 0-1, . , UV- . " ". .
- , LightMap. .
-. UVWMap Box-. . . , , , - ...

 (640x582, 29Kb)

3ds/UDK

:  
(0)

- 2...

, 02 2010 . 10:42 +

...
, . , . 1 14. :
1. . id 2. 3 .. id 1 n.
2. . Attach List. . . (Match Material id to Material, Condense Material and Ids)
15 ...
 (640x480, 34Kb)

3ds/UDK

:  
(1)

?

, 02 2010 . 10:28 +

3 . . 3dRipper-. .

- .
1. 3dripper . . F12. , :(
...
2. . . . ( ). , .
3. . Multi/Sub-object . . . 3-4 . .
4. - .
5. tga, .. dds . dds, , tga. 64 , , tga...
6. - . .
7. "". - , . , . , . , ""...
8. EditPoly ( ). Threshhold 0.001, .
9. Pivot .
10. .
11. .
12. Utils - ResetXform - Reset Selected. .
13. Pivot . " ". . .
14. . "AutoSmooth". , ...
15. Unwrap UVW - MapCannel 2 - Edit. - Mapping - Flatten Mapping - OK. .
16. , . , . ? - . STL Check. . - .. . UCX_. - Anchor, UCX_Anchor.
17. , .
18. ASE. :
Mesh Definition, Materials, Geometric, Mesh Normals, Mapping Coordinates
19. . . .
20. . .
...
 (640x480, 25Kb)

3ds/UDK

:  
(0)

UDK

, 02 2010 . 09:14 +
. , . . , . - . 3 ...

, . . . - , .

?

- , . . ...

, . ...

- . - :

3 . - . , UI, . - . .
3ds/UDK

:  

 : [1]