|
|
New to trueSpace, Flash Developer
About Truespace Archives
These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.
They are retained here for archive purposes only.
New to trueSpace, Flash Developer // Roundtable
Post by jarr_ed // Nov 26, 2008, 6:29am
|
jarr_ed
Total Posts: 1
|
Hello trueSpace gurus, I have a question, and I'm hoping you can point me in the right direction...
Since trueSpace was recently made free, I have taken the opportunity to learn 3D with trueSpace. I am a Flash Developer, and am interested in using trueSpace to export 3D models to Flash, rendering them with Papervision3D.
I understand that there are probably not many Flash Programmers in here, but my questions are more trueSpace related...
Basically from trueSpace you can export your 3D model as a collada (.dae) file, then import the dae file with the material to render your 3D model in Flash, making it interactive and everything...
I've posted my first attempt at doing this here:
http://www.truschke.com/shark/collada.html
You'll probably recognize the mesh shape as the default shark, but you'll notice that the texture is not right. I've been asking around the Flash community, and I've been told that I may have to "bake" my texture first to make it work.
My questions are these...
1. Does this output look like any other problems that have ever been encountered with the collada export?
2. Would "baking" be the right thing to do?
3. If baking is the right thing to do, how would I go about that?
4. If baking is not the right thing to do, what else should I try?
I'm very interested in using trueSpace for my 3D development, but I really need it to work first. ;)
I hope somebody here can point me in the right direction.
Thanks in advance! |
Post by TomG // Nov 26, 2008, 6:35am
|
TomG
Total Posts: 3397
|
The UV Mapping (the mathematical definition of what part of a 2D image maps onto what part of the 3D object) doesn't seem to be working - this means either it isn't exported in the COLLADA file (COLLADA certainly supports it, so this would surprise me) or isn't being used in the Flash display of the object (not sure how Flash loads / handles COLLADA or UV Mapping).
When UV Mapping is not loaded, odd things like "rings" or "bands" are seen, as the texture (image file) is being stretched around the model. "Baking" the texture won't help - that takes lighting calculations from a 3D renderer and embeds them into a 2D image, but the question still remains about mapping that 2D image onto the surface of the 3D object, ie the UV Mapping. You should get a perfectly fine 3D object with just a basic 2D texture that includes no lighting - and creating a 2D image with lighting baked into it won't help since there appears to be no UV here.
Any thoughts on how Flash handles the UV information in a model? Does it load and use the UV Mapping from the COLLADA format? Does it have its own basic UV mapping that it uses, overriding what is in the COLLADA file? Anyone with experience of using COLLADA elsewhere who can confirm UV maps load fine (and maybe if there is some COLLADA setting that affects it?).
You could also try a simpler object, with basic UV mapping, such as a cube, to get started, then work up to a more complex object like the shark. Always good to start simple and work up, as it allows better diagnostics on what has gone wrong, making it easier to identify the step that breaks down and so find a solution :)
So try a test with a simple cube, cubic UV applied in tS, and see how it comes out. Meantime asking about UV Mapping on the Flash forums might also prove illuminating.
HTH!
Tom |
Post by trueBlue // Nov 26, 2008, 7:14am
|
trueBlue
Total Posts: 1761
|
Here is the Shark converted in tS7.6 as a standard tS7.6 object without all of the Awesome scripting and morphs.
If you need the images as files for exporting you can Inspect the Shark's material in Model's Material Editor. Then browse to that given directory and save those images else where before exiting tS7.6 as they are deleted upon closing tS7.6. HTH |
Post by clintonman // Nov 26, 2008, 10:33am
|
clintonman
Total Posts: 304
|
The problem as that the uv's are not exported from truespace in the 0 to 1 uv space. If you move your uv's above the uv 0 to 1 uv square in the uv editor it will work.
Edit: Let me reword that. The uv is exported but the v values are exported as -1 to 0 instead of 0 to 1. |
|