code-google-com / awd

Automatically exported from code.google.com/p/awd
Apache License 2.0
0 stars 0 forks source link

Compiled AWD does not work in code , but works in Sample #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile a .max file with textures and open them with the sampler of the 
exporter
2. Create a code with Away 3d 4.0.9
3. Texture error appears

What is the expected output? What do you see instead?

The output of the exporter should be the same as the output when I use the .awd

What version of the product are you using? On what operating system?
The latest
Version of Away 3d 4.0.9

Please provide any additional information below.

The error I am getting is when textures are not power of 2.
I dont understand why it works with the swf file provided in the exporter
but when I copy the source code and use that with the last version of Away 3d 
it doesnt work.

Original issue reported on code.google.com by khatc...@gmail.com on 8 Oct 2012 at 11:42

GoogleCodeExporter commented 9 years ago
This is not a bug. If anything it's a feature request for Away3D. Away3D does 
not perform any modifications to textures as they are loaded, which means that 
Stage3D will complain when you try to load (and hence use) textures that do not 
match it's requirements. Because the exporter previewer is a designer's tool we 
wanted a low threshold, which is why we implemented automatic texture resizing 
in the previewer, the same way you could in your application that uses Away3D. 
You/the programmer should resize the texture before or as it loads into your 
application/game, the same way that the previewer does.

If you feel that you don't like those requirements, you can instead file a 
feature request for Away3D to automatically resize invalid textures, and hope 
that it gets accepted. Away3D feature requests should be filed in the GitHub 
issue tracker at http://github.com/away3d/away3d-core-fp11/issues.

Hope this helps!

Original comment by bengtric...@gmail.com on 9 Oct 2012 at 5:23