Export 3D ry

Source: Internet
Author: User

When exporting objects, the free version of sketchup has many restrictions. Two native formats are supported: Collada (. DAE) files and google (. kmz) files.

We can writeCodeTo import these formats to our xNa game, but a better solution is to find a way to create a. x ry file .. The X ry file format was a part of Microsoft's DirectX many years ago and has been supported in DirectX and xNa until now. XNa supports rendering. the X file, just as it supports image and sound files, actually provides very simple programming interfaces that allow us to save a large number of reading and processing ry files used in our work.

Unfortunately, either the free version of sketchup or the enhanced version of sketchup does not support this file format.

On the Internet, some developers have successfully persuaded the free version of sketchup to export a large number of other ry file formats, including. X. Sketchup provides programming interfaces that allow the use of RubyProgramming LanguageAnd can query all the information of the currently used object. A ruby script is created by a developer named Fernando zanini. It uses its interface in the free version of sketchup to create a. X file. Visit http://tinyurl.com/skp2xto download this script.

This script supports the earlier version of sketchup. Of course, it must be later than version 6.

To install the export tool to sketchup, disable the applicationProgramCopy 3dradexported. RBS to the plug-in directory of sketchup (default: C: \ Program Files \ google sketchup 8 \ plugins. Restart sketchup. A new 3D rad menu item appears in the plug-in menu, which contains a long column of different export options.

The option we are most interested in is "export as generic DirectX File ". When this option is selected, it will prompt you to select the specific location and file name of your. X file. If you want to, you can directly save it to your content product directory. The export tool automatically saves all required textures to the same location.

Note: Do not forget to save your object to the. SKP file format of sketchup. Exported. X Files are ideal for loading to your game, but sketchup cannot read data from. X Files.

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.