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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 12-05-2013
andrecorreia andrecorreia is offline
Flexsim User
 
Join Date: Feb 2013
Location: Brisbane City
Posts: 12
Downloads: 12
Uploads: 0
Thanks: 11
Thanked 3 Times in 3 Posts
Rep Power: 89
andrecorreia is on a distinguished road
Default 3DS Imported Surface Flexsim6 vs Flexsim7

Hi Guys,

I'm having trouble importing a 3DS shape into FlexSim 7. I used to do it in FlexSim 6 without a problem, could even choose the color I wanted for the surface.

In FlexSim 7, the surface comes in plain black and changing colors doesn't affect it. (see images attached).

Is there anything I could try as a workaround?

Thanks,
Andre.
Attached Thumbnails
Click image for larger version
Name:	FlexSim6.png
Views:	91
Size:	63.3 KB
ID:	2379   Click image for larger version
Name:	FlexSim7.png
Views:	103
Size:	63.6 KB
ID:	2380  
  #2  
Old 02-26-2014
mbaccalaro mbaccalaro is offline
Flexsim Distributor
 
Join Date: Apr 2009
Posts: 10
Downloads: 5
Uploads: 0
Thanks: 8
Thanked 13 Times in 3 Posts
Rep Power: 141
mbaccalaro is on a distinguished road
Default Same problems

I have a customer having similar problem: some object well looking in Flexsim 6 doesn't have the same visual aspect in Flexsim 7.
I tried to change value or to add and set a value to the new attribute: drawflags, but without success.
Is there some indication on how to manipulate correctly 3d shapes?
  #3  
Old 02-26-2014
arunkrmahadeva's Avatar
arunkrmahadeva arunkrmahadeva is offline
CCS, India
 
Join Date: Sep 2013
Location: India
Posts: 71
Downloads: 67
Uploads: 0
Thanks: 285
Thanked 101 Times in 51 Posts
Rep Power: 145
arunkrmahadeva is a jewel in the rougharunkrmahadeva is a jewel in the rougharunkrmahadeva is a jewel in the rougharunkrmahadeva is a jewel in the rough
Default

Dear andrecorreia,

You can change the colour of a 3ds shape by importing it into AC3D.The left bottom side colour panel on the AC3D window will help to change the colour,for colour changing you just need a trial version only.


Regards,

Arun
  #4  
Old 02-26-2014
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

andrecorreia,

Please send your shape to FlexSim support so that they can determine what the problem is and how to fix it.

mbaccalaro,

For version 7, we stopped using our own custom 3ds importer and started using the Assimp library for importing 3ds shapes (as well as many other shapes). This caused two main changes:
  1. Colors appear different (often darker) because the Assimp importer actually reads and uses the ambient color properly, but our old 3ds importer used the object's diffuse color as both the diffuse color and the ambient color. We fixed our 3d shapes so that they have their ambient colors the same as their diffuse colors to solve this problem with the media in the fs3d directory.
  2. The lightning is blending across all edges causing the gradients along faces to look weird. 3ds files do not store normal information (http://en.wikipedia.org/wiki/.3ds#Shortcomings). To overcome that limitation, our old custom importer used a custom "crease angle" function to smooth between faces based on their angle. The new importer doesn't do this, but instead uses 3D Studio MAX's "smoothing groups" feature to determine what faces to smooth. If you are using 3D Studio MAX to generate the 3ds file, then you can use this feature easily. If you are using a different 3d editor, then you should use a native file format instead of 3ds. For example, use .ac files if you use AC3D. Collada files will probably work best if you are using a 3D editor whose default format is not supported by FlexSim.

Issue #1 is a bug fix so although they look different now, the importer is now properly reading what the file specifies, which is an improvement over the previous importer. This issue should be resolved within the shape files rather than changing the importer.

Attached is an AC3D script to make this process easier.

To install it: unzip ambient.tcl into "c:\program files (x86)\AC3D 7.0.11\scripts". Your directory may be a little different depending on the version of AC3D you have installed.

To use it:
  1. Import a 3ds file.
  2. Note how many materials are in the list. (Material numbering starts at 0, so if the last material is 15, then you have 16 materials that need to be updated.)
  3. From the new Flexsim menu at the top of the screen choose "Copy Diffuse Colors".
  4. A small popup GUI should appear. Scroll to the number of materials that are in your list and press the "Copy Diffuse Colors" button.

This will update all of the materials in the list, except those that already have a diffuse color of (60, 60, 62), which is the special value to tell FlexSim to show the FlexSim object color instead of the material color.

Note: AC3D does NOT reset the material list when you start a new model, so I found it best to close AC3D between files. That way my material list wasn't growing out of hand.
Attached Files
File Type: zip Ambient.zip (1,010 Bytes, 440 views)

Last edited by Phil BoBo; 01-22-2015 at 12:20 PM. Reason: Re-uploaded the script file.
The Following 8 Users Say Thank You to Phil BoBo For This Useful Post:
RalfGruber (03-04-2014)


Thread Thread Starter Forum Replies Last Post
Import 3D Shape (surface) andrecorreia Q&A 1 08-12-2013 10:58 PM
Updateing a module dll to Flexsim6 Esther Bennett User Development 3 06-22-2012 12:24 PM
Why visio model can not be imported into Flexsim? Warren Wu Q&A 6 09-05-2011 05:59 AM
CAD Drawing Imported as Background B Whitley Container Terminal (CT) Library 8 10-09-2009 12:24 PM
Getting an imported shape into the yellow selection box Brenton King Tips and Tricks 23 07-24-2009 08:44 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.