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 06-09-2010
Kenny Macleod's Avatar
Kenny Macleod Kenny Macleod is offline
Flexsim Australia
 
Join Date: May 2008
Location: Melbourne, Australia
Posts: 136
Downloads: 114
Uploads: 0
Thanks: 86
Thanked 38 Times in 18 Posts
Rep Power: 176
Kenny Macleod will become famous soon enoughKenny Macleod will become famous soon enough
Default Relative filepath for AC3D texture

Exporting .WRL files with a texture (photo) works well on my pc but I can't use the files on any other pc because the link to the photo breaks. The object needs the original photo for the texture, which is fine because I can just include it; however the path to the texture is absolute so is only relevant to my pc.

Is there any way to either glue the texture to the .WRL object, so I don't need the photo, or change the absolute path to a relative path?

Thanks
Kenny


Last edited by Kenny Macleod; 06-09-2010 at 05:55 PM. Reason: formatting issues
  #2  
Old 06-09-2010
Lars-Olof Leven Lars-Olof Leven is offline
Flexsim Distributor
 
Join Date: Aug 2007
Location: Sweden, Borlnge
Posts: 312
Downloads: 278
Uploads: 2
Thanks: 300
Thanked 256 Times in 139 Posts
Rep Power: 330
Lars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to behold
Default

Hi,

You can open the .WRL in a text editor and then you can either remove the path or change it.
This need to do in several places in the file.

Look at a line that looks like this: Texture2 { filename "GUYFACE.BMP" }

Lars-Olof
The Following 2 Users Say Thank You to Lars-Olof Leven For This Useful Post:
Phil BoBo (06-10-2010)
  #3  
Old 06-09-2010
Kenny Macleod's Avatar
Kenny Macleod Kenny Macleod is offline
Flexsim Australia
 
Join Date: May 2008
Location: Melbourne, Australia
Posts: 136
Downloads: 114
Uploads: 0
Thanks: 86
Thanked 38 Times in 18 Posts
Rep Power: 176
Kenny Macleod will become famous soon enoughKenny Macleod will become famous soon enough
Default

HA!! Easy when you know...

Thank you Lars-Olof
  #4  
Old 06-10-2010
mark.gormley mark.gormley is offline
Flexsim User
 
Join Date: Oct 2008
Posts: 58
Downloads: 12
Uploads: 0
Thanks: 32
Thanked 63 Times in 29 Posts
Rep Power: 181
mark.gormley has a spectacular aura aboutmark.gormley has a spectacular aura about
Default

Hi Kenny,

If you always export your .WRL files from AC3D to the folder where the texture is saved then you should not have any issues with paths at all, as long as when you move computers you keep them in a folder together.

Thanks,

Mark
The Following 2 Users Say Thank You to mark.gormley For This Useful Post:
Phil BoBo (06-10-2010)
  #5  
Old 06-10-2010
Kenny Macleod's Avatar
Kenny Macleod Kenny Macleod is offline
Flexsim Australia
 
Join Date: May 2008
Location: Melbourne, Australia
Posts: 136
Downloads: 114
Uploads: 0
Thanks: 86
Thanked 38 Times in 18 Posts
Rep Power: 176
Kenny Macleod will become famous soon enoughKenny Macleod will become famous soon enough
Default

Thanks Mark - that worked.

I had the photos organised in a sub directory. Once i put them up into the same directory the path vanashed completely - that'll do nicely.

Kenny
  #6  
Old 06-16-2010
michaelsmith michaelsmith is offline
TMN Simulation -Australia
 
Join Date: Aug 2007
Location: Hobart Tasmania
Posts: 62
Downloads: 7
Uploads: 0
Thanks: 31
Thanked 19 Times in 12 Posts
Rep Power: 170
michaelsmith will become famous soon enough
Default

Kenny

You can link relativley so you can move the directories between PC's

I would suggest organising your models into a fixed structure and then make the links relative so you can drop them onto any PC.


Mike
Attached Files
File Type: zip RelativePathDemo.zip (128.1 KB, 171 views)
  #7  
Old 06-16-2010
Kenny Macleod's Avatar
Kenny Macleod Kenny Macleod is offline
Flexsim Australia
 
Join Date: May 2008
Location: Melbourne, Australia
Posts: 136
Downloads: 114
Uploads: 0
Thanks: 86
Thanked 38 Times in 18 Posts
Rep Power: 176
Kenny Macleod will become famous soon enoughKenny Macleod will become famous soon enough
Default

Thanks Mike - ironically it was the use of relative paths that caused the problem in the first place.

As you suggest, I use dedicated directories in my models but couldn't find a way for AC3D to work with them. The key problem was to get a relative path into the 3D object, rather than link to it from within Flexsim.

Cheers

Kenny

Tags
ac3d, texture, wrl


Thread Thread Starter Forum Replies Last Post
Setting relative paths michaelsmith Q&A 1 02-02-2010 09:17 AM
Relative Linking of Graphics michaelsmith Q&A 2 11-21-2008 04:47 PM
3d Object Showing Up as a Texture Gavin Douglas Q&A 8 06-17-2008 01:45 PM
Things I like about v4.3 (autocompletion, billboards, shortcuts, relative media paths, code editor) Tom David Gripes and Goodies 1 03-28-2008 02:34 AM
AC3D for Flexsim Steven Hamoen Q&A 3 11-16-2007 02:35 AM


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.