ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Tips and Tricks
Downloads

Tips and Tricks Share helpful modeling ideas

  #1  
Old 11-09-2015
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default Optimizing 3D Shape Performance

Graphics cards can render one mesh with many faces faster than they can render many meshes with a few faces each.

You can use AC3D to optimize 3D shapes so that they draw quickly in FlexSim. The steps below can be used to combine objects based on their material.
  1. Open AC3D
  2. Import the shape file
  3. For each used material in the list in the bottom-left corner, do steps 4-9
  4. Enter Surface mode using the Select groupbox in the upper-left corner
  5. Right-click the material and choose "Select surfaces with this material"
  6. Enter Object mode using the Select groupbox in the upper-left corner
  7. Run Object > Merge from the main menu (or press Ctrl+Shift+M)
  8. Run Object > Optimize Vertices from the main menu (or press Ctrl+Shift+V)
  9. Run Object > Optimize Surfaces from the main menu
  10. Save the file as .ac or export as .3ds for use in FlexSim

An ideal shape has 1 mesh with 1 material and 1 texture, or 2 meshes (one that is FlexSim-color-changeable and one that is not).
The Following 14 Users Say Thank You to Phil BoBo For This Useful Post:
Tom David (11-17-2015)
  #2  
Old 01-07-2016
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

Attached is an AC3D plugin developed back in 2009 that can be used to automate these steps.

I just tested it with AC3D 7.3.4 with some very simple shapes, and it seems to still be working. (I think some very large shapes used to cause it to crash, so it may or may not work with all files.)

Copy the FlexsimOptimizer.p file into C:\Program Files (x86)\AC3D 7.3.4\plugins

Steps to use it:
1. Open a file you want to optimize.
2. Select all the objects in the scene.
3. Execute menu option Object > Flexsim Optimizer.
4. Save or export the shape.

This also has a feature that removes the extra materials using the menu option Object > Flexsim Optimizer & Remove Unused Materials. This option can be helpful to reduce the file size if the export file format contains all of the materials in the list instead of just the used ones. But if you use this option, the material list in the bottom-corner becomes unstable. Ideally, the exporter would only export the used materials from this list, but that might depend on the format you use. If you use this option, export immediately, then close and reopen AC3D.
Attached Files
File Type: zip FlexsimOptimizer.zip (5.7 KB, 485 views)

Last edited by Phil BoBo; 01-07-2016 at 03:08 PM.
The Following 9 Users Say Thank You to Phil BoBo For This Useful Post:
syseo (01-31-2016)
  #3  
Old 01-29-2016
Hao Zhou's Avatar
Hao Zhou Hao Zhou is offline
Flexsim User
 
Join Date: Sep 2010
Location: Long Beach
Posts: 66
Downloads: 56
Uploads: 0
Thanks: 78
Thanked 43 Times in 25 Posts
Rep Power: 146
Hao Zhou will become famous soon enoughHao Zhou will become famous soon enough
Default

I just used AC3D and the attached plugin processed a big container ship 3DS model with a lot of details. It takes AC3D 4 hours to run the optimization, but it finally succeeds.

Only loading the old file into FlexSim 7.7.4, frame rate is 11 fps.
Only loading the optimized file into FlexSim 7.7.4, frame rate is 56 fps. A lot improvement.

BTW, AC3D version is 6.8.14.

Very helpful tip and plug in! Thank you Phil.
The Following 4 Users Say Thank You to Hao Zhou For This Useful Post:
Phil BoBo (01-29-2016)


Thread Thread Starter Forum Replies Last Post
Does the performance measure consider warmup time? qin tian Q&A 0 01-06-2014 08:49 PM
Experimenter: Performance Measures Gavin Douglas Q&A 9 12-16-2010 02:45 PM
Lowest performance item? Tom David Q&A 2 04-29-2010 02:06 PM
Performance problems in big model Lydia Franck Q&A 6 07-01-2009 07:27 AM
Flexsim running performance vs Automode performance... syseo Marketing and Sales Information 6 06-10-2009 08:35 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.