| VRML, sizing and scaling [message #23741] Sat, 12 February 2011 11:16 UTC |
 |
|
VRML files are by definition in meters, but many application seem to ignore that and export in mm, inches or other units. Shapeways will always interpret VRML as being in meters and refuse everything else.
You can certainly resize everything in your software, but that may have negative impact on the precision of the exported mesh and lead to other problems.
Here is what we found:
- Create and export a simple 10x10x10 mm (or inch, if you like) cube in your favorite software. Shapeways will moan at you and claim that the model is too big.
- From the reported numbers, you can easily determine the scale factor. Ours is always 0.001, lovers of Imperial or American units have a little more work to do. Record the scale factor in a little text file for later use, in this format:
| Quote: | Transform {
scale 0.001 0.001 0.001
children [
|
- Open the VRML file in your preferred text editor. Wordpad will do, Notepad may be slow. You will find something similar to this:
| Quote: | #VRML V2.0 utf8
# possibly a few more lines, all starting with a #
# ...
DEF default Transform {
children [
Shape {
.... and so on ....
|
- Paste the content of your scale file into the VRML, right after the first line. You may also want to delete the extraneous comment lines:
| Quote: | #VRML V2.0 utf8
Transform {
scale 0.001 0.001 0.001
children [
DEF default Transform {
children [
Shape {
.... and so on ....
|
- Scroll to the very bottom of the VRML. At the very end, enter this:
- Done. Save the file, upload and enjoy.
|
|
|
| Re: VRML, sizing and scaling [message #23743 is a reply to message #23741 ] Sat, 12 February 2011 12:51 UTC |
  |
|
Tagged for future reference 
Thanks for the tip... I'm just starting to have a play with Wings3D and what it has to offer with UV mapping.
|
|
|
| Re: VRML, sizing and scaling [message #23748 is a reply to message #23743 ] Sat, 12 February 2011 14:25 UTC |
 |
|
Sorry for the double post.
I just got my first successful upload of a UV mapped VRML & jpg zipped file... woohooo! (dicecube vrml test)
I utlised trompevenlo's top tip, doing it exactly as instructed and it worked first time 
Thanks again 
|
|
|