Learning from sky, sky, and sky boxes

Source: Internet
Author: User

// $ $
// Create a skydome
// Cube without Bottom, Sky Dome
// Function prototype

Public void setskydome (<br/> Boolean enable, <br/> string materialname, <br/> float curvature, <br/> float tiling, <br/> float distance, <br/> Boolean drawfirst, <br/> Org. ogre4j. iquaternion orientation, <br/> int xsegments, <br/> int ysegments, <br/> int ysegments_keep, <br/> string groupname) <br/> {_ setskydome _ bvstringrrealvrealvrealvbvquaternionrivivivstringr (<br/> This. object. pointer, enable, materialname, curvature, tiling, distance, drawfirst, orientation. getinstancepointer (). pointer, xsegments, ysegments, ysegments_keep, groupname); <br/>}</P> <p>

 

// Instance

MSceneMgr. setSkyDome (<br/> true, <br/> "Examples/CloudySky", <br/> 5, // curvature <br/> 8, // Number of texture repetitions <br/> 4000, // distance <br/> true, // drawFirst first rendering <br/> Quaternion. getIDENTITY (), // <br/> 16, // Number of x segments <br/> 16, // number of y segments <br/>-1, // ysegments_keep <br/> ResourceGroupManager. <br/> getDEFAULT_RESOURCE_GROUP_NAME () // groupName <br/>); <br/>

// $ $
// Create a skyplane
// Plane. Sky
// Function prototype
 Public void setskyplane (<br/> Boolean enable, <br/> Org. ogre4j. iplane plane, <br/> string materialname, <br/> float scale, <br/> float tiling, <br/> Boolean drawfirst, <br/> float bow, <br/> int xsegments, <br/> int ysegments, <br/> string groupname <br/>) <br/>{< br/> _ setskyplane _ bvplanerstringrrealvrealvbvrealvivivstringr (this. object. pointer, enable, plane. getinstancepointer (). pointer, materialname, scale, tiling, drawfirst, bow, xsegments, ysegments, groupname); <br/>}< br/>

 

Instance:
Mscenemgr. setskyplane (<br/> true, <br/> plane, // plane <br/> "examples/spaceskyplane", // Material <br/> 10000, // The size of the sky surface (wxx10000 unit) <br/> 10, // Number of texture tiles <br/> true, // <br/> 0, // <br/> 1, // <br/> 1, // <br/> "" // <br/>); <br/> 

 
// $ $
// Create a skybox
// Huge cube, sky box

Public void setskybox (<br/> Boolean enable, // <br/> string materialname, // The material must be a cube texture <br/> float distance, // distance <br/> Boolean drawfirst, // draw it first <br/> Org. ogre4j. iquaternion orientation, // <br/> string groupname // group name <br/>) <br/>{< br/> _ setskybox _ bvstringrrealvbvquaternionrstringr (this. object. pointer, enable, materialname, distance, drawfirst, orientation. getinstancepointer (). pointer, groupname); <br/>} 
 

Instance:

Mscenemgr. setskybox (<br/> true, <br/> "examples/scenecubemap1", <br/> 1000, <br/> true, <br/> Quaternion. getidentity (), <br/> resourcegroupmanager <br/>. getdefault_resource_group_name () <br/>); </P> <p>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.