Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!
12
Combining sketchup Objects in blender to increase performance.
Post Body

Most models in sketchup are insanely inefficient in game engines. To help some of the problems you need to combine the meshes into larger chunks.

as an example, a door handle made for games might be 2 pieces(the moving part and the part bolted to the door).

Sketchup might make it into 60 or 600 different objects(the key hole, half the door knob, the other half, 1/16 of a part of the lock handle, you get my point).

A ton of different objects cause alot of unnecessary draw calls(which slow down frame rates).

You want to combine the individual parts of a skethup mesh in blender and the biggest hurdle is the need to name each UV Map something unified. aka all uvmaps need the same name.

To do properly combine

  • open up the python editor(click the circle with an i in it) top left corner, stretch the window out

see this gif if you cant find the python editor https://i.gyazo.com/889ae5b958904f88475e9f177f56d10c.gif

  • Select all objects in the scene (hit A until everything has orange outlines around it, OR manually select parts you want to combine)

Paste this into the python editor

import bpy

for obj in bpy.context.selected_objects :
for uvmap in  obj.data.uv_layers :
uvmap.name = 'UVMap'

Tab spacing is important on this, and reddit deformats python. see this pic for correct tab spacing. https://i.gyazo.com/a1a2e0818facb11f9a20856bf3a0613f.png

  • Check to see that everything has the same UV map name. YOU WILL LOSE ALL BUT 1 UVMAP IF YOU DONT DO THIS.

see this image for where to check (right side properties box in the sub menu that look like a triangle) the UV maps should all be named UVMap https://i.gyazo.com/e13324740acae87a96b464c4e80b234c.png

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
32,261
Link Karma
8,350
Comment Karma
23,853
Profile updated: 2 days ago
Posts updated: 7 months ago
MetaVerse Modeler

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago