Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (monarch), 1,259 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: "Texture too big for 3D card" issued, but isn' [Re: Matt_Aufderheide] #60911
01/04/06 15:25
01/04/06 15:25
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Thanks jcl. I send you another email with more details in it because unfortunately, this is not solving it yet: The texture _is not_ too big. My system is not an old one either. That's what's so weird about the whole thing.


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: "Texture too big for 3D card" issued, but isn' [Re: Thomas_Nitschke] #60912
01/04/06 15:28
01/04/06 15:28
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
It isn't too big for your card, but it might be too big for some cards:

Quote:

It's issued when a texture exceeds 2048 pixels or a cubemap exceeds 256x256, indicating that you'll get problems with that texture on some older systems.




Re: "Texture too big for 3D card" issued, but isn' [Re: Excessus] #60913
01/06/06 13:22
01/06/06 13:22
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
The thing is, Excessus, it doesn't get rendered! I mean, a warning message being issued because older systems might have problems with it is okay but this one why ever causes the texture not to render at all!

@jcl: I sent you another Mail.


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: "Texture too big for 3D card" issued, but isn' [Re: Thomas_Nitschke] #60914
01/09/06 16:25
01/09/06 16:25
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
Thanks, I've got it and will look further into the problem. It could be related to the material effect that you're using.

Re: "Texture too big for 3D card" issued, but isn' [Re: jcl] #60915
01/12/06 17:47
01/12/06 17:47
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
I had recently tested your level on several systems here, but can not confirm any engine bug.

Of course it won't run on most system due to the oversized cubemap. But this is no different with 6.31. On the systems where it runs, the water looks the same as in 6.31. When I fix the problem by scaling your cubemap to a proper size, it runs everywhere.

Re: "Texture too big for 3D card" issued, but isn' [Re: jcl] #60916
01/13/06 15:10
01/13/06 15:10
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Now that's strange. As I said, it ran perfectly on my system with 6.31.4, even after having bought my new graphics card (gf4 ti4200, 64MB -> gf6800 gt, 256 MB). I'm still confused due to the fact that the cubemap is not as big as 4096x4096 which is not only the texture size limit for my new card, but also for the older gf4, if that is of any help to you. Weird thing...


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: "Texture too big for 3D card" issued, but isn' [Re: Thomas_Nitschke] #60917
01/13/06 18:01
01/13/06 18:01
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
Ok, can you do two tests for me?

First, scale down the cubemap to half its size and try whether this solves the problem. It is known that 512x512 cubemaps won't work on most systems, including some that otherwise support 4096 textures.

Second, can you try your level on your PC with 6.31 and 6.40 and post two screenshots to compare? I'd like to see how the shader is supposed to look.

Re: "Texture too big for 3D card" issued, but isn' [Re: jcl] #60918
01/14/06 15:28
01/14/06 15:28
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Of course. Here you go:



First test:

This is what it _should_ look like:


This is what it _does_ look like:




Second test:

3072x512 pixels, TGA with RLE-compression, no alpha: Not showing up
1536x256 pixels, TGA with RLE-compression, no alpha: Not showing up
768x128 pixels, TGA with RLE-compression, no alpha: Not showing up
384x64 pixels, TGA with RLE-compression, no alpha: Not showing up

But all of them are rendered properly when doing the level-load workaround I posted before (loading another level, then reloading the original one)!

Notice: Neither in the materials, nor in the effects-sections of my scripts did I change anything since the time when I was still using 6.31.4. Unfortunately, I couldn't test it with 6.31.4 as I have only one computer up and running and don't feel like reinstalling 3dgs completely. If it is really, really necessary, I will do, but since you can see what the shader effect is supposed to look like with the workaround (did the screenshot that way), I'll stick with 6.4 for the moment.

Last edited by The Matrix; 01/14/06 15:29.

Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: "Texture too big for 3D card" issued, but isn' [Re: Thomas_Nitschke] #60919
01/16/06 09:44
01/16/06 09:44
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
Ok, I looked into your shader code and probably found the bug. Its unrelated to 6.4 and also unrelated to the bitmap size.

function eff_initWater()
{
//enable: Use mipmap stages
//help: This enables mipmapping on pixelshaded water surfaces.
//help: Note: Mipmaps may slow down the rendering process on
//help: older graphics cards.
define mips;

bmap_to_cubemap(mtl.skin1);
ifdef mips;
bmap_to_mipmap(mtl.Skin1);
endif;
.....

Replace this by:

function eff_initWater()
{
bmap_to_cubemap(bmap_to_mipmap(mtl.Skin1));
.....


You have to create mipmaps _before_ converting your texture. A converted texture has a different format. Mipmap creation just overwrites it and renders it unuseable.

Most 3D cards just ignore the mipmap instruction here, but your GeForce card obviously attempts to create mipmaps and thus destroys the environment effect.

The same, of course, applies to normal, bump, tangent, or other special bitmaps.

Re: "Texture too big for 3D card" issued, but isn' [Re: jcl] #60920
01/16/06 17:37
01/16/06 17:37
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
I would never have thought of that! Thanks jcl, its working now!

Strange though that the uncorrected code worked with 6.31.4, but never mind it works and that's all it is supposed to do


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Page 2 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1