Mrkebubun / o3d

Automatically exported from code.google.com/p/o3d
0 stars 0 forks source link

DDS CUBE texture on Mac OS #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I recently tested my site on Mac and I remarked same troubles than Jaime :
some o3dtgz could not be loaded with strange exceptions "texture is null"
Same site is well loaded on Windows !

I investigated and found that : when I remove my skydome based on 1 DDS
textureCUBE (DXT1 compressed) then other o3dtgz are well loaded ... !!!!

conclusion : DDS texture reading on Mac OS make perturbations with other
texture/o3dtgz reading

What is the expected output? What do you see instead?
No exception "texture is null" when loading o3dtgz

What version of the product are you using? On what operating system?
O3D 0.1.42, Mac OS X

What hardware are you using:  graphics card type?  motherboard type?
nVidia 9500

Please provide any additional information below.

Original issue reported on code.google.com by gregory...@gmail.com on 8 Dec 2009 at 9:09

Attachments:

GoogleCodeExporter commented 9 years ago
Jamie's problem turned out to be a bug in the GL version of O3D, the one used 
on the
Mac. It was unrelated to o3dtgz files. The error message just made it seem like 
it
was related.

The problem is any of the sampler filters to Sampler.ANISOTROPIC causes a bug 
on GL
O3D. The bug has been fixed and will be in the next version of the plugin. In 
the
mean time the workaround is to use Sampler.LINEAR instead of 
Sampler.ANISOTROPIC.

So check your code, if you are setting the the filter mode on any of your 
samplers to
Sampler.ANISOTROPIC, change them and post here if it fixes the problem.

Original comment by gmanc...@greggman.com on 8 Dec 2009 at 7:39

GoogleCodeExporter commented 9 years ago
I saw this remark about Sampler.ANISOTROPIC but I redefine only texture value 
of my
samplers and I do not set ANISOTROPIC mode in my code ...

1 remark : I use 1 sort of texture manager inheriting from 1 resource manager to
store loaded resources/textures into 1 table, I load all textures (with the DDS 
one)
in the same time when my problem appears, if I load separatly the DDS texture 
after
others then problem does not appear ... I attach my managers code

Original comment by gregory...@gmail.com on 9 Dec 2009 at 8:11

Attachments:

GoogleCodeExporter commented 9 years ago
I realized 1 sample with this error, it performs :
create 1 loader
load 1 scene
load another scene (1 character)
load all 3rd parties textures (with the DDS texture) and effects

I have 1 exception (on Mac OS) on 2nd scene loading : "Texture is null"
If I try on PC Windows then both scenes are well loaded, NO PROBLEM !

If I load DDS texture separatly on Mac OS (by commenting v1 and uncommentting 
v2 in
skydome.js) then both scenes are well loaded, NO PROBLEM !

Here is the ZIP file ;-)

Original comment by gregory...@gmail.com on 11 Dec 2009 at 2:57

Attachments:

GoogleCodeExporter commented 9 years ago
In my latest developments, I created 1 o3dtgz archive with all shaders, 
textures and
buffers. The skymap.dds texture is now in this archive. I have the same problem 
and
NO Sampler.ANISOTROPIC in any of my code, scene.json files.

This pb occurs only on Mac OS.

Original comment by gregory...@gmail.com on 26 Mar 2010 at 4:33