|
Sweet Home 3D Forum » List all forums » » Forum: 3D problems » » » Thread: One more export issue » » » » Post: Re: One more export issue |
Print at Dec 17, 2025, 10:51:44 AM |
| Posted by mazoola at Jul 28, 2016, 10:43:50 PM |
|
Re: One more export issue Emmanuel - As the notes on tickets 686 and 688 mention, this resizing of texture files was a requirement of Java3D prior to version 1.5, and it remains the default behavior. While disabling the use of powers-of-two textures is a trivial change, requiring the setting of a single TextureLoader flag, determining whether the user's system can support a non-power-of-two texture is far less straightforward. The other alternative -- keeping two textures on-hand and selecting the appropriate one as needed -- is far from trivial, requiring modifications to a number of SH3d components. I'm starting to believe the easiest fix is simply to document this behavior, leaving it to the user whether or not to rescale his or her texture to a power of two. (This is the approach I plan to adopt on those rare occasions SH3D's resizing is apparent.) At some point (perhaps even now?) any graphics card not supporting a NPOT texture will have presumably been aged out of the population, and NOPT textures enabled by default. Thanks, maz P.S. I still haven't the faintest idea why the illumination model isn't exported correctly, unless for some reason isIlluminationModelSet is being incorrectly set for models without an explicit illumination model -- but that doesn't strike me as likely. |
|
|
Current timezone is GMT Dec 17, 2025, 10:51:44 AM |