Jump to content

cubemap code for version 4xx


Recommended Posts

this is just the basics for you inexperienced yet inquirious types .

thats hard to read ? anyway . youll see that the images are the image asset files (made when you import the images). UEB is the module in my case . and see the material created in the TSCRIPT (lower part) . so get the names right in the asset file (upper part).





    AssetName="sky_day_01_skymat"//-------------------||  ASSET FILE     ||-----

    scriptFile="@assetFile=sky_day_01.tscript"//------||  TSCRIPT FILE   ||-----

    materialDefinitionName="sky_day_01_Mat"//---------||  MATERIAL NAME  ||-----

    VersionId="1" />


singleton CubemapData( sky_day_01_Cubemap )
   cubeMapFaceAsset[0] = "ueb:sky_day_01_east_image"; //right
   cubeMapFaceAsset[1] = "ueb:sky_day_01_west_image"; //left
   cubeMapFaceAsset[2] = "ueb:sky_day_01_south_image"; //back
   cubeMapFaceAsset[3] = "ueb:sky_day_01_north_image"; //front
   cubeMapFaceAsset[4] = "ueb:sky_day_01_up_image"; //up
   cubeMapFaceAsset[5] = "ueb:sky_day_01_down_image"; //down

singleton Material( sky_day_01_Mat )
   cubemap = sky_day_01_cubemap;


i couldnt find an example and and dug this up from the blank sky material in example module core ( i think ).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...