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 03-18-2008
KelvinHo KelvinHo is offline
Flexsim User
 
Join Date: Jan 2008
Location: Hong Kong
Posts: 129
Downloads: 18
Uploads: 1
Thanks: 44
Thanked 23 Times in 7 Posts
Rep Power: 171
KelvinHo will become famous soon enough
Default Can transparent effect be added in the object?

Hi all,

Even the material used in 3ds hv semi-transparent effect(like 50% opacity), the effect cant be shown in flexsim, is there any way to do so? Thanks.

Kelvin

Last edited by KelvinHo; 03-18-2008 at 12:44 AM.
  #2  
Old 03-18-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Kelvin,

I like to give a quick and short answer:

You can have transparency effects in Flexsim, because it uses OpenGL-Technology.

One way to do is to use own shape for the object and make this shape in Custom Draw Code with draw commands which have an opacity parameter like drawcube().

Another way is to give your imported shape a texture. I use a *.bmp which is white and a *.tmp which is gray. The level of gray influences the opacity. If you use black it is 100 percent transparent. Gray 50 percent is than 50 percent transparent.
Be aware, that the name for the *.bmp and *.tmp must be the same.
Be aware, that there are differences between a *.wrl and *.3ds shape, e.g. regarding textures.


I am sure that e.g. Phil Bobo or Brenton King can explain much better and in more detail and in a more technical way, what can be done and not.

Good success
tom the (A)tom
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
The Following User Says Thank You to Tom David For This Useful Post:
KelvinHo (03-18-2008)
  #3  
Old 03-18-2008
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

Kelvin,

If you search in the Flexsim User Manual for "transparency", you'll see a good explanation of how it is used and can be manipulated in Flexsim. Flexsim doesn't read the opacity parameter from 3ds or wrl files, but you can set up your files using textures so that they have transparency in Flexsim. This is significantly faster and more flexible although more work from the user.

As Tom said, you can also use OpenGL commands to draw transparent objects yourself if you want.

The Automated Paint Line example model in Flexsim Display models in the Downloads section of the forum shows a simple example of transparency in Flexsim.

-Phil
The Following User Says Thank You to Phil BoBo For This Useful Post:
KelvinHo (03-18-2008)
  #4  
Old 03-18-2008
KelvinHo KelvinHo is offline
Flexsim User
 
Join Date: Jan 2008
Location: Hong Kong
Posts: 129
Downloads: 18
Uploads: 1
Thanks: 44
Thanked 23 Times in 7 Posts
Rep Power: 171
KelvinHo will become famous soon enough
Default

Thanks both, problem solved. Previously I missed the point that the grey scale of the .tmp reflect the transpancy level.

Kelvin



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.