Page 1 of 1

[Done] terrain example 5.07b x64

Posted: Wed Oct 24, 2012 9:41 pm
by idle
There's appears to be a problem with the blending. ubuntu 12.04 x64 Hd6670

edit
if the example doesn't run at all
sudo apt-get install nvidia-cg-toolkit

if anyone else should get the display result
Install imagemagick

sudo apt-get install imagemagick

Create this script to convert the whole nvidia dir:
and save it as convertsh under /purebasic/examples/3d/Data/Textures/nvidia

Code: Select all

for file in *.dds
do
    convert "$file" "$(basename "$file" .dds).png"
done
Then in the source code, replace the .dds with .png, and remove all the .Dat files in the texture Dir (or change the terrain cache name in the code)

Image

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 10:21 pm
by Fred
Seems like you are not the only one with this strange case. Dunno if it's an ATI issue or CG one.. http://www.ogre3d.org/forums/viewtopic. ... 7&p=470878

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 10:25 pm
by idle
A while ago I looked at the terrain plugin in the ogre sdk and had the same sort of result.
so maybe it's not a PB bug after all.

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 10:25 pm
by Fred
In another post http://www.ogre3d.org/forums/viewtopic.php?f=2&t=69216: he suggests to convert the DDS texture to PNG, could you give it try (dds are found in the Texture/nvidia folder)

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 10:28 pm
by idle
I was just reading that :lol:

but it might be a depth issue, I'm using dss in the ocean demo from the sdk and it works fine!

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 10:52 pm
by idle
Tried changing the DDS to png, it still had the same result

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 11:02 pm
by Fred
Too bad, thanks for testing

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 11:42 pm
by Fred
I just tested on an old linux machine which had the issue, and converting the texture to png worked, after having deleted the terrain cache found in Data/Texture/*.Dat :)

Re: terrain example 5.07b x64

Posted: Wed Oct 24, 2012 11:51 pm
by idle
can you zip and send me the png's, pm'd you address!

Re: terrain example 5.07b x64

Posted: Thu Oct 25, 2012 12:04 am
by Fred
Install imagemagick (apt_get install imagemagick) and use this script to convert the whole nvidia dir:

Code: Select all

for file in *.dds
do
    convert "$file" "$(basename "$file" .dds).png"
done
Then in the source code, replace the .dds with .png, and remove all .Dat in texture dir (or change the terrain cache name in the code). It did the trick here.

Re: terrain example 5.07b x64

Posted: Thu Oct 25, 2012 12:22 am
by idle
success!