[Done] terrain example 5.07b x64

Linux specific forum
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

[Done] terrain example 5.07b x64

Post 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
Windows 11, Manjaro, Raspberry Pi OS
Image
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: terrain example 5.07b x64

Post 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
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: terrain example 5.07b x64

Post 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.
Windows 11, Manjaro, Raspberry Pi OS
Image
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: terrain example 5.07b x64

Post 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)
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: terrain example 5.07b x64

Post 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!
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: terrain example 5.07b x64

Post by idle »

Tried changing the DDS to png, it still had the same result
Windows 11, Manjaro, Raspberry Pi OS
Image
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: terrain example 5.07b x64

Post by Fred »

Too bad, thanks for testing
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: terrain example 5.07b x64

Post 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 :)
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: terrain example 5.07b x64

Post by idle »

can you zip and send me the png's, pm'd you address!
Windows 11, Manjaro, Raspberry Pi OS
Image
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: terrain example 5.07b x64

Post 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.
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: terrain example 5.07b x64

Post by idle »

success!
Windows 11, Manjaro, Raspberry Pi OS
Image
Post Reply