Screen resolution

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
Post Reply
3DProgrammer
Posts:15
Joined:2004-12-12, 05:12
Screen resolution

Post by 3DProgrammer » 2004-12-12, 05:27

Hi,
I have a relatively old computer yet i still wanted to try your engine, it works at 1024x800 resolution, but its too slow.

When i type 'v_describeresolutions' (something like that - i forgot :oops: ), it lists like 500 different types, but i only get to see the last few, so i cant see the number for resolutions around 800x600 or less. Is there a way to scroll up in the console?

And also ive just tried compiling the engine in Dev-Cpp, seems to be working, but in file "cw_357.cpp",it gives me warnings about these 2 lines:

" else if (RandomNumber<192) State.ActiveWeaponSequNr=6; // Idle 2
else if (RandomNumber<224) State.ActiveWeaponSequNr=7; // Idle 3

"

It says "comparison is always true due to limited range of data type". Obviously even i know why this is, since a singed char's range is from -127 to 128, it (RandomNumber) will always be less than 192 & 224, respectively.

Not like it matters, just said it to boost my ego 8)
User avatar
Shadow
Posts:195
Joined:2004-08-28, 06:00
Location:Minesota, USofA
Contact:

Post by Shadow » 2004-12-12, 05:42

i dont know... :oops:
Image
PBX CONTINUES!!!
CLICK HERE!!
3DProgrammer
Posts:15
Joined:2004-12-12, 05:12

Post by 3DProgrammer » 2004-12-12, 05:59

Shadow wrote:i dont know... :oops:
very helpfull :roll: :lol:
User avatar
Shadow
Posts:195
Joined:2004-08-28, 06:00
Location:Minesota, USofA
Contact:

Post by Shadow » 2004-12-12, 17:06

wasnt it tho. i you will be happy to know that i tried to scroll up in the thinger. but couldnt figure it out. so i will check the source and find out if it is possible.... unless that is an engine source code thing then i cant
Image
PBX CONTINUES!!!
CLICK HERE!!
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: Screen resolution

Post by Carsten » 2004-12-13, 11:26

3DProgrammer wrote:When i type 'v_describeresolutions' (something like that - i forgot :oops: ), it lists like 500 different types, but i only get to see the last few, so i cant see the number for resolutions around 800x600 or less. Is there a way to scroll up in the console?
No, but you can run Ca3DE from the command line:

Code: Select all

Ca3DE -help
provides a list of all command line options, and

Code: Select all

Ca3DE -clWinSizeX 640 -clWinSizeY 480
will get you what you want. :)
It says "comparison is always true due to limited range of data type". Obviously even i know why this is, since a singed char's range is from -127 to 128, it (RandomNumber) will always be less than 192 & 224, respectively.
Your compiler assumes that type "char" is per default signed. You need to pass a flag to have it treat "char" as unsigned per default.
Also note that "char" is always either "signed char" or "unsigned char", but still a distinct type, i.e. different from these two.
Best regards,
Carsten
mibiwi
Posts:1
Joined:2005-09-27, 20:15
Location:Germany

renderer not supported...

Post by mibiwi » 2005-09-27, 21:27

i get a 'not able to find any renderer that is supported'
(Fehler: GL_INVALID_ENUM...)
i got a tnt2 on that machine - that should work - well - it does with the unreal and the hl engine ect... (but it first shows 'status-ok' :roll: )

i werds auf nem anderen rechner testen - aber ne tnt2 sollte doch wohl mit so einer engine laufen... unreal engine halflife usw läuft ja auch - wobei das ja vergleichbar sein sollte... (auflösung ändern nützt nichts... card says its not supported oder so... das bei opengl... ) :cry:
User avatar
Thrawn
Posts:302
Joined:2004-08-30, 10:38
Location:NRW, Germany
Contact:

Post by Thrawn » 2005-09-27, 22:33

I think your graphic card is just too old to run the engine. But I'm not sure though.

Ich glaube deine Grafikkarte ist einfach nur zu alt um mit der Engine zu funktioneren. Bin mir aber nicht sicher.
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: renderer not supported...

Post by Carsten » 2005-09-28, 09:32

mibiwi wrote:i get a 'not able to find any renderer that is supported'
(Fehler: GL_INVALID_ENUM...)
Which one comes first? The one about the invalid enum or the one about the renderer?
... unreal engine halflife usw läuft ja auch - wobei das ja vergleichbar sein sollte...
No, having Unreal or HL1 running on a machine is by no means comparable to Ca3DE. Ca3DE supports dynamic per-pixel lighting and stencil shadows (not on a TNT2 though), and thus is rather in the league of Doom3 rather than that of Unreal or HL1.

Nonetheless, it should run (albeit with reduced features). Is your video driver for the TNT2 current? Reasons for the OpenGL 1.2 renderer to fail include missing support for OpenGL version higher than 1.1 and the lack of the multi-texturing extension (which the TNT2 should have, though).

Please provide as many details as possible, I'd be interested to find the cause of your problems.
Best regards,
Carsten
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Post by Carsten » 2005-09-28, 11:00

mibiwi, I have a work-around for you :idea:

Run the Ca3D-Engine from the command line with the following parameters:

Code: Select all

 Ca3DE_win32_vc60_r.exe -clRenderer RendererOpenGL12 
In the Opions dialog, you'll want to reduce the texture detail to "low (fastest)" for your TNT2.

Hope that helps.
Best regards,
Carsten
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Post by Carsten » 2005-10-01, 14:54

mibiwi, I can now also confirm that the problems that you observed were a bug in one of the renderer DLLs. :oops:

I've fixed it now, the fix will be included with the next release of the Ca3DE Demo and MDK that I'll publish on Monday, together with many other interesting enhancements... ;)
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests