egg2bam

Hello to All.
I found a little problem in egg2bam in 1.7.0 version of panda. I don`t have enough time to look into code to solve this, but I will just report it.
I create a simple Box with texture

BoxEgg
http://pastebin.com/m91c528c

box.png
http://www.imagehousing.com/image/361057

On pview everything looks good
http://www.imageno.com/lp197p7trgr4pic.html

After that I compress egg and texture with egg2bam with -txo -ctex and the result is
http://www.imageno.com/eyjiwwyzjjidpic.html

Your links to the screenshots are broken, so I can’t see what problems you’re referring to. But when I use egg2bam -ctex -txo on the same egg file with the same texture, it works fine for me.

What is the precise nature of the problem?

David

They work for me.

working in pview
imageno.com/lp197p7trgr4pic.html
problem
imageno.com/eyjiwwyzjjidpic.html

It does look like the problem texture has loaded a compressed texture image as if it were an uncompressed image. But again, I don’t see this problem–it works fine for me. Does anyone else see it?

David

i can confirm the problem. texture gets messed up exactly like on the screenshot posted above. using 1.7.0 on ubuntu 64bit.

I can confirm this too.
1.6.2

  1. with pview box.egg is seen normal model
  2. egg2bam -txo -ctex box.egg box.bam
  3. pview box.bam is seen normal model

1.7.0

  1. with pview box.egg is seen normal model
  2. egg2bam -txo -ctex box.egg box.bam
  3. pview box.bam texture is not correct - like in the screenshot.
    I’m running on Kubuntu 9.10 32 bit

All right, I’ve found it. I’ll check in a fix for 1.7.1.

In the meantime, you can work around the problem by editing c:/Panda3D-1.7.0/etc/Config.prc and changing the line:

model-cache-textures #f

to:

model-cache-textures #t

David