SketchUp to AC3D exporter: Difference between revisions

Jump to navigation Jump to search
Line 25: Line 25:
The AC3D exporter is set to export textures to RGB format by standard. That means that for FG to be able to display your model correctly, you will have to provide your textures in RGB format. Sketchup, however, cannot read RGB files, so you first have to feed them into Sketchup in another format, e.g. JPG and then convert them after exporting the model.
The AC3D exporter is set to export textures to RGB format by standard. That means that for FG to be able to display your model correctly, you will have to provide your textures in RGB format. Sketchup, however, cannot read RGB files, so you first have to feed them into Sketchup in another format, e.g. JPG and then convert them after exporting the model.


You can change that by telling AC3D exporter to export the textures as PNG files. There are two advantages to that:
You can change that by telling AC3D exporter to export the textures as PNG files. The advantage is that Sketchup and FG can both read PNG and no conversion will be necessary. In order for this to work, open the file <tt>ac3d_export.rb</tt> in any text editor and change two lines as follows:
*Sketchup and FG can both read PNG and no conversion will be necessary
*PNG files are smaller than RGB files
In order for this to work, open the file <tt>ac3d_export.rb</tt> in any text editor and change two lines as follows:


<tt>return File.basename(n, File.extname(n)) + ".rgb"</tt> becomes<br>
<tt>return File.basename(n, File.extname(n)) + ".rgb"</tt> becomes<br>
248

edits

Navigation menu