tomysshadow / shockwave-3d-world-converter Goto Github PK
View Code? Open in Web Editor NEWThis tool converts Shockwave 3D World Files (W3D) to Wavefront OBJ, Material and Image Files (OBJ, MTL, and TIFF.)
License: MIT License
This tool converts Shockwave 3D World Files (W3D) to Wavefront OBJ, Material and Image Files (OBJ, MTL, and TIFF.)
License: MIT License
When converting large models (ex: game worlds) over, there tends to be noticable deforms or missing triangles with some meshes.
While its somethinf I can work around, it'd still be nice to have perfect conversions if possible.
Hi
Could you please try model "1943" here
https://www.mameworld.info/3darcade/
I don't know if it's a bug but the model has different colors (black vs dark grey) for the sides:
Black side:
Dark grey side:
In the MTL I can also see the different colors
newmtl 1943sideleftin
Ka 0.007843 0.007843 0.007843
Kd 0.000000 0.000000 0.000000
Ks 0.086275 0.086275 0.086275
Ns 12.800000
d 1.000000
newmtl 1943tmoldleft
Ka 0.011765 0.011765 0.011765
Kd 0.007843 0.007843 0.007843
Ks 0.627451 0.627451 0.627451
Ns 12.799999
d 1.000000
newmtl 1943siderightin
Ka 0.000000 0.000000 0.000000
Kd 0.011765 0.011765 0.011765
Ks 0.086275 0.086275 0.086275
Ns 12.800000
d 1.000000
newmtl 1943tmoldright
Ka 0.000000 0.000000 0.000000
Kd 0.000000 0.000000 0.000000
Ks 0.627451 0.627451 0.627451
Ns 12.800000
d 1.000000
If you want to have a look? Does the original W3D has these colors too or is it a small bug?
The conversion will not start, simply saying that it can' t open the file. Sorry if the question results to be amateurish, is there something else I should do first?
Hi
Not sure if the original W3D model has this too, because I couldnt find out
https://www.mameworld.info/3darcade/models/sw3d/bubblesmodel%20v1.zip
This model after converting to OBJ is located not on the plane created by the 2 axis on the ground.
It's half way this plane so is going in the negative values (whatever the axis are called in the 3D program)
Hi
Not sure if this has something to do with the code, but if I opened a W3D file in your program and keep the program running, I can't delete the W3D file. Windows says it's being used by another program.
I know in some programming languages you must close the file adn then this problem is gone.
Can you check if this can be done in Director code too?
Hi
Is there a way you could make JPG/PNG textures instead of TIFF textures or are the TIFF textures the original format used inside the W3D model?
So basically: will texture quality increase when using another format then TIFF?
I saw your incredibly long comment on Arqade about playing Shockwave .dcr files. I found an ancient copy of Orbit Spherez. I followed your instructions exactly, but IE says that "This Shockwave movie has errors that have caused playback problems." My computer has Intel and Radeon graphics so it's not that NVidia 3D error thingy that you mentioned. I tried finding a crack of Director and opening it with that, and it said that the file is copy protected. I tried changing the file name ending to .dxr. I tried opening the website in IE or Pale Moon but I just got a gray screen. I tried a plugin to Chrome that basically emulates IE. I've tried everything, I'm out of ideas. Please help.
web.archive.org/web/20080913132928/http://www.candystand.com/play.do?id=17994
Hi
I'm now trying big W3D models and it seems textures are missing.
https://www.mameworld.info/3darcade/arcades/arcades.htm
Try spaceport.
It should look like this:
After converting to OBJ and MTL, some textures are not present and after loading into Godot engine, I see this:
Hi
I saw you can drag and drop a W3D file from windows explorer to your program.
Is this a feature or is this just working by accident?
Hi
When loading any OBJ file, convert from W3D, into Blender or Godot, I saw the OBJ must be rotated 90° on the X axis because the model is not in the correct position.
Do you have this problem too and what 3D program you use to load the OBJ?
Could this be a small bug for the X coordinates of the model?
Here is a screenshot on how an arcade cabinet is opened without rotating it.
You see I have to rotate it 90° around the X axis (red one)
Hi
I tried to convert these models here to OBJ and imported them into Blender (https://www.blender.org/):
I imported the OBJ into Blender and have this result:
It should look like (purple parts are missing textures):
https://www.mameworld.info/3darcade/models/pic/1942.jpg
The MTL file shows TIFF textures which are not saved.
Download: https://www.mameworld.info/3darcade/models/sw3d/simpsonsmodel%20v1.zip
It should look like (purple parts are missing textures):
https://www.mameworld.info/3darcade/models/pic/simpsons.jpg
Is there a bug that made the program not save all TIFF files?
Or are those models just not containing the missing textures?
The models were originally used in a program called 3D Arcade so I think there is only a little possibility the textures are missing in the W3D file (but you never know for sure).
Can you please have a look at it? I'm a beginner and don't know anything about W3D. I just use your cool tool!
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.