Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-06-05, 01:54 PM   #1
nixmeister
Registered User
 
Join Date: Mar 2004
Posts: 15
Default no dds textures in 64 linux????

We just installed 64 bit Fedora core 3 on our 3000G based image generator, and our software recompiles/runs fine, however none of our textures show up. They're all in .dds format, generated with the nvidia tools available from their website. Anyway, I was wondering if this is a 64 bit thing since we haven't had a problem with this under any other linux distro/nvidia driver version. This is our first 64 bit port, so that's why I'm suspicious.....

Much thanks in advance....
nixmeister is offline   Reply With Quote
Old 01-07-05, 12:50 AM   #2
J.F.
GeForce FX5600
 
Join Date: Dec 2003
Location: Arizona
Posts: 35
Send a message via AIM to J.F.
Default Re: no dds textures in 64 linux????

Uh - seeing as this is YOUR software that YOU are compiling, why don't you run it in a debugger and examine the textures after you try to load them. I don't see what you expect people here to do about a custom program you are writing other than to say "haven't seen any problems in other programs."

By the way, I haven't seen any problems in other programs in FC3 AMD64 here on my Opteron.
J.F. is offline   Reply With Quote
Old 01-10-05, 12:20 PM   #3
nixmeister
Registered User
 
Join Date: Mar 2004
Posts: 15
Default Re: no dds textures in 64 linux????

So far all signs point to the openscenegraph dds loader. The osgviewer program has the same issue with .dds textures. I'm sure .dds textures are handled fine in 64 bit linux by the nvidia driver. Still working ona fix for the .dds loader openscenegraph uses.

And J.F., I was just curious if anyone else had run into a similar problems before. I was just looking for similar symptoms that might provide clues. You answered my question basically when you stated that you hadn't seen any issues. Valid answer. That's all I was looking for. I wasn't asking someone to fix my software obviously. Since I didn't post any code, I'm not sure where you get off thinking that is what my goal was.

Is it so bad to put out a forum posting looking for people who may have run into similar problems??? That against forum rules or something? I think these posting could be very useful to another confused osg user in the future, so I'm not sure what you're would up about.
nixmeister is offline   Reply With Quote
Old 01-10-05, 03:24 PM   #4
nixmeister
Registered User
 
Join Date: Mar 2004
Posts: 15
Default Re: no dds textures in 64 linux????

It did turn out to be a problem in the dds loader of osg. There was a patch sent out on the mailing list, and hopefully it'll be rolled into the next release of openSceneGraph. It most likely will affect other plugins, so if you see a similar problem when using 64 bit distros, you may want to look into that patch:

--- ReaderWriterDDS.cpp 2005-01-10 21:59:17.655542432 +0100
+++ ReaderWriterDDS.cpp.modified 2005-01-10 22:06:25.346523520 +0100
@@ -30,14 +30,18 @@
// NOTICE ON WIN32:
// typedef DWORD unsigned long;
// sizeof(DWORD) = 4
+
+typedef unsigned int UI32;
+typedef int I32;
+
struct DDCOLORKEY
{
DDCOLORKEY():
dwColorSpaceLowValue(0),
dwColorSpaceHighValue(0) {}

- unsigned long dwColorSpaceLowValue;
- unsigned long dwColorSpaceHighValue;
+ UI32 dwColorSpaceLowValue;
+ UI32 dwColorSpaceHighValue;
};

struct DDPIXELFORMAT
@@ -54,37 +58,37 @@
dwRGBAlphaBitMask(0) {}


- unsigned long dwSize;
- unsigned long dwFlags;
- unsigned long dwFourCC;
+ UI32 dwSize;
+ UI32 dwFlags;
+ UI32 dwFourCC;
union
{
- unsigned long dwRGBBitCount;
- unsigned long dwYUVBitCount;
- unsigned long dwZBufferBitDepth;
- unsigned long dwAlphaBitDepth;
+ UI32 dwRGBBitCount;
+ UI32 dwYUVBitCount;
+ UI32 dwZBufferBitDepth;
+ UI32 dwAlphaBitDepth;
};
union
{
- unsigned long dwRBitMask;
- unsigned long dwYBitMask;
+ UI32 dwRBitMask;
+ UI32 dwYBitMask;
};
union
{
- unsigned long dwGBitMask;
- unsigned long dwUBitMask;
+ UI32 dwGBitMask;
+ UI32 dwUBitMask;
};
union
{
- unsigned long dwBBitMask;
- unsigned long dwVBitMask;
+ UI32 dwBBitMask;
+ UI32 dwVBitMask;
};
union
{
- unsigned long dwRGBAlphaBitMask;
- unsigned long dwYUVAlphaBitMask;
- unsigned long dwRGBZBitMask;
- unsigned long dwYUVZBitMask;
+ UI32 dwRGBAlphaBitMask;
+ UI32 dwYUVAlphaBitMask;
+ UI32 dwRGBZBitMask;
+ UI32 dwYUVZBitMask;
};
};

@@ -96,13 +100,13 @@
dwCaps3(0),
dwCaps4(0) {}

- unsigned long dwCaps;
- unsigned long dwCaps2;
- unsigned long dwCaps3;
+ UI32 dwCaps;
+ UI32 dwCaps2;
+ UI32 dwCaps3;
union
{
- unsigned long dwCaps4;
- unsigned long dwVolumeDepth;
+ UI32 dwCaps4;
+ UI32 dwVolumeDepth;
};
};

@@ -122,35 +126,35 @@
dwTextureStage(0) {}


- unsigned long dwSize;
- unsigned long dwFlags;
- unsigned long dwHeight;
- unsigned long dwWidth;
+ UI32 dwSize;
+ UI32 dwFlags;
+ UI32 dwHeight;
+ UI32 dwWidth;
union
{
- long lPitch;
- unsigned long dwLinearSize;
+ I32 lPitch;
+ UI32 dwLinearSize;
};
union
{
- unsigned long dwBackBufferCount;
- unsigned long dwDepth;
+ UI32 dwBackBufferCount;
+ UI32 dwDepth;
};
union
{
- unsigned long dwMipMapCount;
- unsigned long dwRefreshRate;
+ UI32 dwMipMapCount;
+ UI32 dwRefreshRate;
};
- unsigned long dwAlphaBitDepth;
- unsigned long dwReserved;
- unsigned long* lpSurface;
+ UI32 dwAlphaBitDepth;
+ UI32 dwReserved;
+ UI32 lpSurface; //Fred Marmond: removed from pointer type to UI32 for 64bits compatibility. it is unused data
DDCOLORKEY ddckCKDestOverlay;
DDCOLORKEY ddckCKDestBlt;
DDCOLORKEY ddckCKSrcOverlay;
DDCOLORKEY ddckCKSrcBlt;
DDPIXELFORMAT ddpfPixelFormat;
DDSCAPS2 ddsCaps;
- unsigned long dwTextureStage;
+ UI32 dwTextureStage;
};

//
@@ -186,8 +190,8 @@

#ifndef MAKEFOURCC
#define MAKEFOURCC(ch0, ch1, ch2, ch3) \
- ((unsigned long)(char)(ch0) | ((unsigned long)(char)(ch1) << 8) | \
- ((unsigned long)(char)(ch2) << 16) | ((unsigned long)(char)(ch3) << 24 ))
+ ((UI32)(char)(ch0) | ((UI32)(char)(ch1) << 8) | \
+ ((UI32)(char)(ch2) << 16) | ((UI32)(char)(ch3) << 24 ))
#endif //defined(MAKEFOURCC)

/*
nixmeister is offline   Reply With Quote
Old 01-10-05, 09:34 PM   #5
J.F.
GeForce FX5600
 
Join Date: Dec 2003
Location: Arizona
Posts: 35
Send a message via AIM to J.F.
Default Re: no dds textures in 64 linux????

It's good that you not only found the problem, but posted the results as well in case anyone else runs into it. As to my original response, it just seemed to me that the gist of your message was "this 64-bit program I wrote isn't workin - is anyone else having this problem?" Well, of course not... we don't have that program.

Like I tell people, it's better to be a smart ass than a dumb ass.
J.F. is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
302.11 (beta) for Linux x86/x86_64 released AaronP NVIDIA Linux 0 05-19-12 10:21 AM
nVidia Linux drivers with Linux on Mac, help? Thetargos NVIDIA Linux 0 05-13-12 12:52 PM
302.07 (beta) for Linux x86/x86_64 released AaronP NVIDIA Linux 0 05-02-12 09:55 AM
Mandrake Linux 9.0 (Dolphin) now available | comments? volt General Linux 10 10-19-02 10:13 PM
Linux VS. Windows XP! XP wins! dostler NVIDIA Linux 20 09-15-02 03:47 PM

All times are GMT -5. The time now is 01:20 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.