source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/CleanTheLab/win32_run.cfg @ 2453

Revision 2453, 45.2 KB checked in by szirmay, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2006 Spinor GmbH.
8//   ######### # # #          All rights reserved.
9//  ##   ##########
10//      ##
11//
12///////////////////////////////////////////////////////////////////////////////
13
14// This file configures the Shark 3D runtime engine.
15//
16// File syntax: Snake File Format, see documentation for details.
17// Each field has a name and none, one or more values of type integer,
18// float, string or chunk.
19//   //         = Comment until end of line.
20//   /* xxx */  = Long comment
21//   { xxx }    = Chunk containing fields again.
22//   &          = Concat strings (to split strings over more than one line).
23//
24// File content: See comments below and source code of the player.
25// - Keybord mapping see near the end of this file.
26// - The startup resource of the project is defined in the entry "startup".
27
28///////////////////////////////////////////////////////////////////////////////
29// Configuration parameters:
30
31// Avoid storing information
32// needed for reporting notes and error messages.
33// Especially avoid storing info strings.
34// This is useful to save memory on consoles.
35// Warning! This makes error messages basically useless!
36// Only set this parameter to 1 for final builds(!) on consoles(!).
37bare 0
38
39// Automatically save configuration changes back into this file.
40// Warning! Enabling destroys all formating and deletes all comments.
41save 0
42
43///////////////////////////////////////////////////////////////////////////////
44// Logging parameters:
45
46// Print into standard out:
47stdout 1
48stderr 1
49
50// Flush after writing a line to stdandard out:
51stdout_line_flush 1
52stderr_line_flush 1
53
54// File name and format the main message handler logs into.
55// In the file path, the character "$" is replaced by the current time stamp.
56// Use the "$" character if you want a separate log file per run.
57logfile_format "utf8"
58logfile_path "log_main.log"
59
60// If the log file is larger than the size limit, rename the previous log file
61// into the old log file name and start a new log file.
62// This mechanism can be used to avoid an unlimited growing log file.
63// The previous old log file is deleted.
64// The the file path, the character "$" is replaced by the current time stamp.
65logfile_size_limit 20000000
66logfile_old_path "log_main_old.log"
67
68// If enabled, flush the log stream after every line.
69// This option may help to analyse crashes.
70// Warning! This slows down the engine noticeable!
71// Should be enabled only temporarily for debuggung purposes!
72logfile_line_flush 0
73
74// If enabled, send main logging also to the debugger interface.
75// Warning! This costs performance even if no debugger is connected!
76debugout 1
77
78// If enabled, open a message box for errors.
79error_msg_box 0
80
81// If enabled, open a message box on fatal errors.
82fatal_error_msg_box 1
83
84// Format for file positions:
85textstream_pos_templ ""
86
87// If enabled, in case of an error immediately abort the application.
88instant_abort_after_error 0
89
90// If enabled, after an error abort the application at a suitable time.
91opportune_abort_after_error 0
92
93// File name to log debugging output to.
94//syslog_path "log_dbg.log"
95
96// File name to redirect stdout/stderr to.
97//redirect_stdout_path "log_out.log"
98//redirect_stderr_path "log_err.log"
99
100///////////////////////////////////////////////////////////////////////////////
101// Time parameters:
102
103// Maximal time step of each iteration.
104max_deltatime 0.2
105
106// Delta time used for every frame independent of the real time.
107//exact_deltatime 0.0
108
109// Time in seconds which the program sleeps each frame.
110// This can be used for example to avoid that a dedicated server
111// takes all system power.
112sleeptime 0.0
113
114// Minimal frame time in seconds.
115// If the frame (including the sleep time) would be less,
116// the process sleeps for the rest of this time.
117min_frmtime 0.0
118
119///////////////////////////////////////////////////////////////////////////////
120// Application specific parameters:
121
122app
123{
124    max
125    {
126        unused_time_limit 2.0
127        unused_sleep_time 0.2
128    }
129}
130
131///////////////////////////////////////////////////////////////////////////////
132// Modules:
133
134// List of DLLs containing components to be loaded by the player.
135//
136// Each DLL factory is registered under the specified name.
137// For example, if "shark3d_kit_base.dll" is registerd
138// under the name "kit_base", an actor ident "kit_base.group" means
139// to search the component class "group" in the DLL "shark3d_kit_base.dll".
140//
141// Meaning of additional parameters:
142// If 'load_immediately' is set to 0, the DLL is loaded at the time
143// when a component of the module is requested for the first time.
144// If 'load_immediately' is set to 1, the DLL is loaded at the beginning.
145// If 'continue_if_loading_failed' is set to 0, then the engine aborts
146// with an fatal error if the DLL couldn't be loaded.
147// If 'continue_if_loading_failed' is set to 1, then the engine continues
148// even if the DLL couldn't be loaded.
149modules
150// Driver modules:
151{
152    name "drv_winctx"
153    path "shark3d_drv_winctx.dll"
154    load_immediately 0
155    continue_if_loading_failed 0
156}
157{
158    name "drv_gfxselect"
159    path "shark3d_drv_gfxselect.dll"
160    load_immediately 0
161    continue_if_loading_failed 0
162}
163{
164    name "drv_gfxverify"
165    path "shark3d_drv_gfxverify.dll"
166    load_immediately 0
167    continue_if_loading_failed 0
168}
169{
170    name "drv_gfxtargetrect"
171    path "shark3d_drv_gfxtargetrect.dll"
172    load_immediately 0
173    continue_if_loading_failed 0
174}
175{
176    name "drv_gfxprotect"
177    path "shark3d_drv_gfxprotect.dll"
178    load_immediately 0
179    continue_if_loading_failed 0
180}
181{
182    name "drv_opengl"
183    path "shark3d_drv_opengl.dll"
184    load_immediately 0
185    continue_if_loading_failed 0
186}
187{
188    name "drv_openal"
189    path "shark3d_drv_openal.dll"
190    load_immediately 0
191    continue_if_loading_failed 0
192}
193{
194    name "drv_d3d9"
195    path "shark3d_drv_d3d9.dll"
196    load_immediately 0
197    continue_if_loading_failed 0
198}
199{
200    name "drv_dsnd"
201    path "shark3d_drv_dsnd.dll"
202    load_immediately 0
203    continue_if_loading_failed 0
204}
205{
206    name "drv_wav"
207    path "shark3d_drv_wav.dll"
208    load_immediately 0
209    continue_if_loading_failed 0
210}
211{
212    name "drv_stdinput"
213    path "shark3d_drv_stdinput.dll"
214    load_immediately 0
215    continue_if_loading_failed 0
216}
217{
218    name "drv_wininput"
219    path "shark3d_drv_wininput.dll"
220    load_immediately 0
221    continue_if_loading_failed 0
222}
223{
224    name "drv_dinput"
225    path "shark3d_drv_dinput.dll"
226    load_immediately 0
227    continue_if_loading_failed 0
228}
229{
230    name "drv_netcompr"
231    path "shark3d_drv_netcompr.dll"
232    load_immediately 0
233    continue_if_loading_failed 0
234}
235{
236    name "drv_tcp"
237    path "shark3d_drv_tcp.dll"
238    load_immediately 0
239    continue_if_loading_failed 0
240}
241{
242    name "drv_udp"
243    path "shark3d_drv_udp.dll"
244    load_immediately 0
245    continue_if_loading_failed 0
246}
247{
248    name "drv_commsgeval"
249    path "shark3d_drv_commsgeval.dll"
250    load_immediately 0
251    continue_if_loading_failed 0
252}
253{
254    name "drv_stdres"
255    path "shark3d_drv_stdres.dll"
256    load_immediately 0
257    continue_if_loading_failed 0
258}
259{
260    name "drv_packres"
261    path "shark3d_drv_packres.dll"
262    load_immediately 0
263    continue_if_loading_failed 0
264}
265{
266    name "drv_comres"
267    path "shark3d_drv_comres.dll"
268    load_immediately 0
269    continue_if_loading_failed 0
270}
271{
272    name "drv_stdbitmap"
273    path "shark3d_drv_stdbitmap.dll"
274    load_immediately 0
275    continue_if_loading_failed 0
276}
277{
278    name "drv_plibbitmap"
279    path "shark3d_drv_plibbitmap.dll"
280    load_immediately 0
281    continue_if_loading_failed 0
282}
283{
284    name "drv_dshowvid"
285    path "shark3d_drv_dshowvid.dll"
286    load_immediately 0
287    continue_if_loading_failed 0
288}
289{
290    name "drv_univprog_std"
291    path "shark3d_drv_univprog_std.dll"
292    load_immediately 0
293    continue_if_loading_failed 0
294}
295// Engine foundation modules:
296{
297    name "eng_base"
298    path "shark3d_eng_base.dll"
299    load_immediately 0
300    continue_if_loading_failed 0
301}
302{
303    name "eng_pos_std"
304    path "shark3d_eng_pos_std.dll"
305    load_immediately 0
306    continue_if_loading_failed 0
307}
308{
309    name "eng_shader_std"
310    path "shark3d_eng_shader_std.dll"
311    load_immediately 0
312    continue_if_loading_failed 0
313}
314{
315    name "eng_shader_special"
316    path "shark3d_eng_shader_special.dll"
317    load_immediately 0
318    continue_if_loading_failed 0
319}
320{
321    name "eng_shader_shvol"
322    path "shark3d_eng_shader_shvol.dll"
323    load_immediately 0
324    continue_if_loading_failed 0
325}
326{
327    name "eng_model_std"
328    path "shark3d_eng_model_std.dll"
329    load_immediately 0
330    continue_if_loading_failed 0
331}
332{
333    name "eng_model_special"
334    path "shark3d_eng_model_special.dll"
335    load_immediately 0
336    continue_if_loading_failed 0
337}
338{
339    name "eng_geo_std"
340    path "shark3d_eng_geo_std.dll"
341    load_immediately 0
342    continue_if_loading_failed 0
343}
344{
345    name "eng_visib_pvs"
346    path "shark3d_eng_visib_pvs.dll"
347    load_immediately 0
348    continue_if_loading_failed 0
349}
350{
351    name "eng_phys_std"
352    path "shark3d_eng_phys_std.dll"
353    load_immediately 0
354    continue_if_loading_failed 0
355}
356{
357    name "eng_sensor_std"
358    path "shark3d_eng_sensor_std.dll"
359    load_immediately 0
360    continue_if_loading_failed 0
361}
362{
363    name "eng_font_std"
364    path "shark3d_eng_font_std.dll"
365    load_immediately 0
366    continue_if_loading_failed 0
367}
368{
369    name "eng_tex_std"
370    path "shark3d_eng_tex_std.dll"
371    load_immediately 0
372    continue_if_loading_failed 0
373}
374{
375    name "eng_wave_std"
376    path "shark3d_eng_wave_std.dll"
377    load_immediately 0
378    continue_if_loading_failed 0
379}
380// Framework modules:
381{
382    name "kit_base"
383    path "shark3d_kit_base.dll"
384    load_immediately 0
385    continue_if_loading_failed 0
386}
387{
388    name "kit_io"
389    path "shark3d_kit_io.dll"
390    load_immediately 0
391    continue_if_loading_failed 0
392}
393{
394    name "kit_engbase"
395    path "shark3d_kit_engbase.dll"
396    load_immediately 0
397    continue_if_loading_failed 0
398}
399{
400    name "kit_engobj"
401    path "shark3d_kit_engobj.dll"
402    load_immediately 0
403    continue_if_loading_failed 0
404}
405{
406    name "kit_special"
407    path "shark3d_kit_special.dll"
408    load_immediately 0
409    continue_if_loading_failed 0
410}
411{
412    name "kit_com"
413    path "shark3d_kit_com.dll"
414    load_immediately 0
415    continue_if_loading_failed 0
416}
417{
418    name "kit_snk"
419    path "shark3d_kit_snk.dll"
420    load_immediately 0
421    continue_if_loading_failed 0
422}
423{
424    name "kit_perch"
425    path "shark3d_kit_perch.dll"
426    load_immediately 0
427    continue_if_loading_failed 0
428}
429{
430    name "gtp_shader"
431    path "bin/win32_vc7x1/debug/shark3d_gtp_shader.dll"
432}
433
434// Java module:
435{
436    name "kit_java"
437    path "shark3d_kit_java.dll"
438    load_immediately 0
439    continue_if_loading_failed 0
440    param
441    {
442        // Disable Java, create only dummy script actors.
443        disabled 0
444
445        // Invoke JVM with debug option
446        // (needs tools.jar from JDK in classpath)
447        debug 0
448
449        // Enable just-in-time compiler.
450        jit_enabled 0
451
452        // Run in sandbox:
453        sandbox 0
454
455        // Path for finding class files:
456        classpathes
457            // Java-module Java-classes when using the SDK player exe:
458            "[appdir]..\\..\\..\\bin\\java"
459            // Java-module Java-classes when using an other exe (e.g. Max)
460            "[appdir]shark3d\\bin\\java"
461            // Project-specific resources:
462            "bin\\res"
463
464        // Java library loading information:
465        libname ""
466        registry_key "Software\\JavaSoft\\Java Runtime Environment\\1.4"
467        registry_val "RuntimeLib"
468        bootclasspath ""
469    }
470}
471
472///////////////////////////////////////////////////////////////////////////////
473// Log into TCP server:
474
475msgeval_ident "drv_commsgeval.msgeval"
476msgeval_param
477{
478    env "env"
479    addrport_conv "addr_conv"
480    addrport "[comaddrport]"
481}
482
483///////////////////////////////////////////////////////////////////////////////
484// Resource manager:
485
486resmgr_ident "drv_stdres.resmgr_dispatch"
487resmgr_param
488{
489    env "env"
490    log_enabled 0
491    entry_array
492    {
493        prefix ""
494        ident "drv_stdres.resmgr_select"
495        param
496        {
497            env "env"
498            // Select a resource manager:
499            // "normal" -> Reading from file and using DRU.
500            // "packfile" -> Reading from a packfile.
501            select "normal"
502           
503            entry_array
504            {
505                // Default: File resource manager.
506                name "normal"
507                ident "drv_comres.resmgr"
508                param
509                {
510                    env "env"
511                    addrport_conv "addr_conv"
512                    addrport "[comaddrport]"
513                    ignore_socket_errors 1
514                    com_buf_size 0
515                    request_timeout 0.0
516                    request_waitsleep 0.0
517                    child_ident "drv_stdres.resmgr_file"
518                    child_param
519                    {
520                        env "env"
521                        // Prefix added to the resource name for
522                        // infos and errors:
523                        name_prefix "res:"
524                        // Location to load the files from:
525                        ref_dir "[homedir]bin/res/"
526                        // Convertor for the ref_dir, for replacing
527                        // placeholders.
528                        ref_dir_conv "path_conv"
529                        // Don't allow resource names to start
530                        // with ".." or "/":
531                        allow_any_path 0
532                        // Case sensitive file name on Win32 platform.
533                        // Should be enabled to avoid problems
534                        // with non-Win32 platforms, packfiles or DRU.
535                        non_strict_path 0
536                        // Cache size not too large to avoid stuttering:
537                        file_cache_size 4096
538                        // Log all file accesses:
539                        log_enabled 1
540                    }
541                }
542            }
543            {
544                name "packfile"
545                ident "drv_packres.resmgr_pack"
546                param
547                {
548                    env "env"
549                    child_ident "drv_stdres.resmgr_file"
550                    child_param
551                    {
552                        env "env"
553                        name_prefix ""
554                        ref_dir ""
555                        ref_dir_conv ""
556                        allow_any_path 0
557                        non_strict_path 0
558                        file_cache_size 4096
559                        log_enabled 1
560                    }
561                    entry_array
562                    {
563                        prefix ""
564                        pack_res "packfile.s3d_pack"
565                        name_prefix "res:"
566                    }
567                    journal_file_path "packfile.s3d_packjournal"
568                    journal_file_format "utf8"
569                    index_cache_size 4096
570                    res_cache_size 4096
571                }
572            }
573        }
574    }
575    {
576        // Prefix "file:": Open as file.
577        prefix "file:"
578        ident "drv_stdres.resmgr_file"
579        param
580        {
581            env "env"
582            ref_dir ""
583            ref_dir_conv "path_conv"
584            allow_any_path 1
585            non_strict_path 0
586            file_cache_size 4096
587            log_enabled 1
588        }
589    }
590}
591
592///////////////////////////////////////////////////////////////////////////////
593// Startup resource:
594
595// Name of the startup resource.
596// This resources describes the first actor created by the player.
597startup "main/actor/main.s3d_actor_run"
598
599///////////////////////////////////////////////////////////////////////////////
600// Application configuration:
601
602// The parameters of the following chunk are evaluated by the application.
603//
604// All these parameter can be also changed by the application.
605// However, depending on the parameter it may have only effect
606// after restarting the application.
607// Other parameters may take effect by re-initializing a part
608// of the runtime system. For example, the "reload_io" command
609// re-initializes input, graphics, and sound.
610//
611cfg
612{
613    // Network engine.
614    network
615    {
616        // Enable/disable networking.
617        enabled 1
618
619        // Component type.
620        ident "drv_netcompr.neteng"
621        param
622        {
623            env "env"
624           
625            // Log runtime network statistic in message handler:
626            log_enabled 0
627
628            // Compression level (0 for disabling)
629            compr_level 9
630
631            // Child driver TCP:
632            child_ident "drv_tcp.neteng"
633            child_param
634            {
635                env "env"
636               
637                // Send buffer ring size.
638                buffer_size 65536
639
640                // Log runtime network statistic in message handler:
641                log_enabled 0
642
643                // Enable/disable Nagle algorithm.
644                no_delay 0
645
646                // When connecting, try "connect_retry_count" times
647                // with a pause of "connect_retry_delay" seconds
648                // between each try.
649                //connect_retry_count 10
650                //connect_retry_delay 1.0
651            }
652
653            // Child driver UDP:
654            /*
655            child_ident "drv_udp.neteng"
656            child_param
657            {
658                // Maximal packet size. Larger data blocks are divided.
659                // Smaller packet sizes may give smoother transfer rates.
660                max_msg_size 256
661
662                // Timeout after which a alive ping is send if no data arrives.
663                alive_period 1.0
664
665                // Timeout after which an fatal error is generated.
666                timeout 30.0
667            }
668            */
669        }
670    }
671
672    // Server configuration.
673    server
674    {
675        // Enable/disable the server.
676        // Disable the server if you connect to a extern server.
677        enabled 1
678
679        // Port number the server is listening on.
680        // If empty, no client can connect via network.
681        addr "0.0.0.0:33300"
682    }
683
684    // Client configuration.
685    client
686    {
687        // Enable/disable the client.
688        // Disable it for a dedicated server.
689        enabled 1
690       
691        // Format: "<host>:<port>"
692        // If empty, the client is connected to a local server.
693        addr ""
694        //addr "127.0.0.1:33300"
695        //addr "192.168.0.1:33300"
696
697        // Define a extra rotation on client side,
698        // for example for cave applications.
699        extratransf
700        {
701            axis_x 0.0
702            axis_y 0.0
703            axis_z 1.0
704            degree 0.0
705            offset_x 0.0
706            offset_y 0.0
707            offset_z 0.0
708        }
709    }
710
711    // Bitmap file format drivers:
712    bitmapparser
713    {
714        ident "drv_stdbitmap.bitmapparser_dispatch"
715        param
716        {
717            env "env"
718            entry_array
719            {
720                ident "drv_stdbitmap.bitmapparser_std"
721                param
722                {
723                }
724            }
725            {
726                ident "drv_plibbitmap.bitmapparser_plib"
727                param
728                {
729                }
730            }
731        }
732    }
733   
734    // Video format drivers:
735    videoparser
736    {
737        ident "drv_dshowvid.videoparser"
738        param
739        {
740            env "env"
741            // Prefix for loading videos:
742            prefix "file://bin/res/"
743            // During two rendering frames, or if a video is not visible,
744            // then wait this time in seconds before decompressing
745            // the next frame.
746            wait_continue 1.0
747        }
748    }
749
750    // Sound file format drivers:
751    waveparser
752    {
753        ident "drv_wav.waveparser"
754        param
755        {
756        }
757    }
758
759    // IO context configuration.
760    // The context is the link between gfx-output, input and sound.
761    //
762    // These parameters may be also changed by the application,
763    // and then take effect by a "reload_io" command,
764    // see the keyboard configuration below.
765    context
766    {
767        // Component type. Empty string creates default component of DLL.
768        ident "drv_winctx.ctx"
769        param
770        {
771            env "env"
772            caption "Shark 3D"
773            // Window is always on the top:
774            topmost 0
775            // If set to one, the given size is not the client area size,
776            // but the total window size.
777            size_is_window_size 0
778            // Disable ALT-TAB and ALT-RETURN in fullsceen mode.
779            fullscreen_disable_hotkeys 1
780            // File name pattern for screenshots.
781            // Screenshots can be triggered by the command "store_screenshot".
782            // See the key bindings below.
783            // Note that alternatively you can also use the standard
784            // windows screenshot mechanism:
785            // Alt-PrintScreen copies a screenshot into the clipboard.
786            screenshot_filepat "shot####.bmp"
787            // Store a screenshot each frame:
788            auto_screenshot 0
789            // Sleep time in seconds each frame if the window is deactive:
790            //deactive_sleep_time 0.0
791            deactive_sleep_time 0.05
792        }
793    }
794
795    // Graphics engine configuration.
796    //
797    // These parameters may be also changed by the application,
798    // and then take effect by a "reload_io" command,
799    // see the keyboard configuration below.
800    gfxeng
801    {
802        // 3D driver DLL. If empty, use internal factory.
803        // Select one of the following drivers:
804        // Auto detection:
805        ident "drv_gfxselect.gfxmgr"
806        param
807        {
808            env "env"
809           
810            // Driver selection:
811            // "d3d9" -> Direct3D9
812            // "opengl" -> OpenGL.
813            // Note: For OpenGL you have to compile the resources differently,
814            // see the notes in "utility/buildres/tool_prep_win32.cfg".
815            // Note: OpenGL support of v5 is not stable and not finished yet.
816            select "d3d9"
817            //select "opengl"
818           
819            entry_array
820            {
821                name "d3d9"
822                ident "drv_d3d9.gfxmgr"
823                param
824                {
825                    env "env"
826                    univprog_suppl "envcompsuppl"
827                    univprog_given_array
828                    {
829                        item "env"
830                        given_ident "env"
831                    }
832                    default_outparam
833                    {
834                        // Log all Direct3D calls. Very slow.
835                        log_dx_calls 0
836                        // Use software reference driver.
837                        ref_driver 0
838                        tripple_buffering 0
839                        force_sw_vertexbuf 0
840                        force_hw_vertexbuf 0
841                        prefer_idxbuf32 0
842                        pure_device 1
843                        // Don't preserve FPU state. May help improve
844                        // performance, but may cause fp precision problems.
845                        disable_fpu_preserve 0
846                        // Binary logarithm of the minimal texture width.
847                        // 5 -> 32 to avoid problems with NVidia drivers:
848                        min_lb_tex_width 5
849                        // Binary logarithm of the minimal texture height.
850                        // 5 -> 32 to avoid problems with NVidia drivers:
851                        min_lb_tex_height 5
852                        // Binary logarithm of the minimal volume texture
853                        // extension.
854                        min_lb_vol_tex_ext 5
855                        // Don't use dynamic VB, only static VB and UP.
856                        no_dynamic_vertexbuf 0
857                        // If enabled dummy blend weights and indices are put
858                        // into same vertexbuffer as other vertex data.
859                        // If disabled a small 16 byte application global
860                        // vertexbuffer will be used for dummy data.
861                        no_dummybone_vertexbuf 1
862                        // Use DrawIndexedPrimitiveUP() for dynamic VBs
863                        // instead of DrawIndexedPrimitive()
864                        use_draw_indexed_primitive_up 1
865                        // If non-zero, flush cmdbuffer every idxcnt
866                        idx_flush_cnt 0
867                        // If hw does not support this vertex shader version,
868                        // use sw:
869                        req_vert_shad_ver "0x0"
870                        // Use faked fullscreen mode:
871                        faked_fullscreen 0
872                        // If true d3d shader debug is possible for asm and
873                        // hlsl shaders pure_device needs to be 0 and
874                        // force_sw_vertexbuf needs to be 1 for pixelshader
875                        // debugging enable ref_driver
876                        shader_debug 0
877                        // Report creation and destruction information
878                        report_batch 1
879                        report_buf 1
880                        report_tex 1
881                        report_prog 1
882                        // compress textures that are greater than
883                        // 'min_texcompress_width' and 'min_texcompress_height'
884                        // 0 = dont override compression flag
885                        min_texcompress_width 0
886                        min_texcompress_height 0
887                        // use at most 'max_miplevels' for textures
888                        // 0 = automatic mip level count
889                        max_miplevels 0
890                        // <= 1: disable anisotropic texture filtering
891                        max_anisotropy 4
892                        // disable special nvidia depth texture
893                        nvdepthtex_enabled 0
894                        // Preload d3d textures, vertex and indexbuffers
895                        preload_resources 0
896                        // if enabled, vertprog declaration will be checked
897                        // against vertexbuffer declaration each frame.
898                        // Useful while shaderprog development.
899                        validate_prog_buf 1
900                        gamma_2x2_enabled 0
901                        srgb_tex_enabled 0
902                        srgb_write_enabled 0
903                        // Multisampling:
904                        // 0 := Auto select.
905                        // 1 := Disable multisampling
906                        // n := Selects multisample
907                        multisample 1
908                        // Enable info output for D3D PIX
909                        pix_enabled 0
910                    }
911                }
912                enum_param
913                {
914                }
915            }
916            {
917                name "opengl"
918                ident "drv_opengl.gfxmgr"
919                param
920                {
921                    env "env"
922                    univprog_suppl "envcompsuppl"
923                    univprog_given_array
924                    {
925                        item "env"
926                        given_ident "env"
927                    }
928                    default_outparam
929                    {
930                        // Disable OpenGL extensions by the combination of the
931                        // lower-case renderer string and lower-case extension
932                        // name:
933                        // "<lower-case-renderer>@<lower-case-extension>"
934                        forbid_pat ""
935                                //& "|*geforce*@gl_arb_vertex_buffer_object"
936                                & "|*@gl_ext_compiled_vertex_array"
937                                & "|*radeon 9000*@gl_arb_vertex_buffer_object"
938                                & "|*radeon 9000*@//display_list"
939                        // <= 1: disable anisotropic texture filtering
940                        max_anisotropy 4
941                    }
942                }
943                enum_param
944                {
945                }
946            }
947        }
948        enum_param
949        {
950        }
951        enum_enabled 1     // Write fullscreen modes into log.
952    }
953   
954    // Graphics output configuration.
955    //
956    // These parameters may be also changed by the application,
957    // and then take effect by a "reload_io" command,
958    // see the keyboard configuration below.
959    gfxout
960    {
961        // Select a display device. Empty string for default device.
962        // Different gfx backends support different device strings.
963        // In case of Direct3D, "0", "1", "2" selects a Direct3D adapter.
964        // See the log file for a list of devices and fullscreen modi.
965        // This may include for example the Nvidia PerfHUD adapter.
966        device ""
967
968        // Window position, use -1 for default window position
969        left 0
970        top 0
971        // Resolution and color depth:
972        width 640
973        height 480
974        //width 1024
975        //height 768
976        depth 32
977        frequency 0
978        gamma 1.0 1.0 1.0
979        fullscreen 0
980        nostencil 0             // Don't allocate a stencil buffer.
981        nobatch 0               // Don't use batch objects (e.g. display lists)
982
983        // Other graphics parameter:
984        reportinfo 0            // Report driver allocations (textures etc.).
985        quality 0               // Prefer rendering quality instead of speed.
986        software 0              // Use software emulation.
987        singlebuffer 0          // Don't use double-buffering.
988        synch 0                 // Wait for vertical refresh.
989        noextensions 0          // Don't use API extensions (e.g. OpenGL ext.)
990        abort_if_no_gfxout 1    // Fatal error if initialization failed.
991    }
992
993    // 3D projection information:
994    //
995    // These parameters may be also changed by the application,
996    // and then take effect by a "reload_io" command,
997    // see the keyboard configuration below.
998    proj_world
999    {
1000        // Define the opening angles.
1001        open_x 1.0      // Slope of the left and right clipping plane.
1002        open_y 0.75     // Slope of the top and bottom clipping plane.
1003        //open_x 1.119     // Slope of the left and right clipping plane.
1004        //open_y 0.629     // Slope of the top and bottom clipping plane.
1005        center_x 0.0
1006        center_y 0.0
1007    }
1008    proj_display
1009    {
1010        // Define the opening angles.
1011        open_x 1.0      // Size of the left and right clipping plane.
1012        open_y 0.75     // Size of the top and bottom clipping plane.
1013        //open_x 1.119     // Slope of the left and right clipping plane.
1014        //open_y 0.629     // Slope of the top and bottom clipping plane.
1015        center_x 0.0
1016        center_y 0.0
1017    }
1018
1019    // Stereo rendering parameters:
1020    eyedist
1021    {
1022        world 0.1       // World eye disteance for stereo rendering.
1023        display 0.1     // Display eye distance for stereo rendering.
1024    }
1025
1026    // 3D gfxport configuration:
1027    gfxport
1028    {
1029        // Other gfxport parameters:
1030        cull_pix 10.0           // Minimal object screen size for culling
1031        mesh_pix 5.0            // Minimal geometry screen presision
1032        visib_mesh_pix 5.0      // Geom. scr. prec. for glow visib. test
1033       
1034        // Debugging parameters:
1035        texaux_inspect_scale_x 0.0
1036        texaux_inspect_scale_y 0.0
1037        //texaux_inspect_scale_x 0.05 // Debug output of rendertargets
1038        //texaux_inspect_scale_y 0.05
1039    }
1040
1041    // Other view options:
1042    //
1043    // These parameters may be also changed by the application,
1044    // and then take effect by a "reload_io" command,
1045    // see the keyboard configuration below.
1046    view
1047    {
1048        // Shader system: If the batches are static,
1049        // don't evaluate the mesh data every frame anymore.
1050        economise 1
1051        // Shader system: If the mesh data is not needed anymore,
1052        // reduce the model:
1053        reduce 1
1054    }
1055
1056    // Sound configuration.
1057    //
1058    // These parameters may be also changed by the application,
1059    // and then take effect by a "reload_io" command,
1060    // see the keyboard configuration below.
1061    snd
1062    {
1063        // Enable/disable sound.
1064        enabled 1
1065
1066        // Component type. Empty string creates default component of DLL.
1067        ident "drv_dsnd.sndeng"
1068        param
1069        {
1070            ctx "ctx"
1071           
1072            // Ignore all DirectSound errors.
1073            ignore_ds_errors 0
1074
1075            // As default, all mono wave files are played as 3d sound,
1076            // and all stereo wave files are played conventionally.
1077            no3d_always 0
1078            no3d_pan_scale 1.0
1079            no3d_back_down 0.0
1080
1081            // Sound device:
1082            device_index 0
1083
1084            // DirectSound Cooperative Level.
1085            //coop_level "exclusive"
1086            //coop_level "normal"
1087            coop_level "priority"   // Needed to set the primary buffer format
1088            //coop_level "writeprimary"
1089
1090            // Sound buffer len used for each sound source.
1091            buffer_len 2.0
1092
1093            // Pre-load seconds for each wave file.
1094            preload_sec 0.0
1095
1096            // Maximal change of the volume of each sound source per frame.
1097            // Setting this parameter to an non-zero value
1098            // may help avoiding cracking.
1099            // For example, a value of 0.1 means that a sound source is not
1100            // stopped immediately, but fade down during a period
1101            // of maximal 10 frames.
1102            max_volume_change_per_frame 0.1
1103
1104            // Requested format for the primary buffer:
1105            // If a value is null, the current value is kept.
1106            primary_bits_per_sample 16
1107            primary_channels 2
1108            primary_samples_per_sec 44100
1109
1110            // Requested format for wave files since some formats give
1111            // a ugly performance on some sound cards.
1112            // If a value is 0, a wave file may have any value,
1113            // but the sound cards must convert on the fly.
1114            wave_bits_per_sample 16
1115            wave_channels 1
1116            wave_samples_per_sec 44100
1117
1118            // Number of sound buffers to reserve at initialization:
1119            wave_buffer_reserve 4
1120
1121        }
1122        /*
1123        ident "drv_openal.sndeng"
1124        param
1125        {
1126            // Ignore all DirectSound errors.
1127            ignore_errors 0
1128
1129            // As default, all mono wave files are played as 3d sound,
1130            // and all stereo wave files are played conventionally.
1131            no3d_always 0
1132            no3d_pan_scale 1.0
1133            no3d_back_down 0.0
1134
1135            // Sound buffer len used for each sound source.
1136            buffer_size 88200
1137
1138            // Pre-load seconds for each wave file.
1139            preload_sec 0.0
1140
1141            // Maximal change of the volume of each sound source per frame.
1142            // Setting this parameter to an non-zero value
1143            // may help avoiding cracking.
1144            // For example, a value of 0.1 means that a sound source is not
1145            // stopped immediately, but fade down during a period of 10 frames.
1146            max_volume_change_per_frame 0.1
1147
1148            // Requested format for wave files since some formats give
1149            // a ugly performance on some sound cards.
1150            wave_bits_per_sample 16
1151            wave_channels 1
1152            wave_samples_per_sec 44100
1153            // Number of sound buffers to reserve at initialization:
1154            wave_buffer_reserve 4
1155        }
1156        */
1157    }
1158   
1159    // List of feature strings.
1160    // These strings can be tested for example by shaders,
1161    // to select between different shader variants:
1162    feature_set "dummy1" "dummy2"
1163
1164    // Actor logging switches.
1165    // Note that other components like drivers may have further switches.
1166    log
1167    {
1168        evtmgr 1            // Log events of event queues.
1169        stat 0              // Log the statistical information of each frame.
1170    }
1171
1172    // Statistical information display configuration.
1173    insp
1174    {
1175        // Info paint offset and character size:
1176        paint
1177        {
1178            offs_x_pix 0.0
1179            offs_y_pix 0.0
1180            char_size_x_pix 0.0
1181            char_size_y_pix 0.0
1182        }
1183
1184        // Enable particular statistical information items:
1185        general 0           // General information (including engine version).
1186        frmtime 0           // Frametime.
1187        mem 0               // Memory
1188        gfxport 0           // Gfxport rendering statistics.
1189        gfxbase 0           // Graphics basic information.
1190        gfxstat 0           // Graphics driver statistics.
1191        cursor 0            // Cursor statistics
1192        msg 0               // Show messages.
1193
1194        // File to log the frametime into.
1195        frmtime_logfile ""
1196        //frmtime_logfile "log_frametime.log"
1197        // Maximal number of message lines:
1198        msg_limit 8
1199        // Also include non-errors:
1200        msg_alsoinfo 0
1201    }
1202
1203    // Input configuration:
1204    input
1205    {
1206        // Player control smooth time for movements and rotating.
1207        // May be for example useful when creating demo videos.
1208        smooth_move 0.0
1209        smooth_rot 0.0
1210        // Position device dead zone.
1211        deadzone 0.0
1212
1213        // Drivers:
1214        mgr
1215        // Select these entries for using DirectInput:
1216        {
1217            inputmgr_ident "drv_stdinput.inputmgr_multi"
1218            inputmgr_param
1219            {
1220                env "env"
1221                ctx "ctx"
1222                entry_array
1223                // DirectInput:
1224                {
1225                    ctx_pattern "application"
1226                    ident "drv_dinput.inputmgr"
1227                    param
1228                    {
1229                        env "env"
1230                        ctx "ctx"
1231                       
1232                        handle_keyboard 1
1233                        handle_mouse 0
1234                        handle_ctrl 1   // For example joysticks
1235                       
1236                        ignore_di_errors 0
1237                        attached_only 0
1238                        // Work around for DirectInput bug:
1239                        // If the keyboard is not polled for this number
1240                        // of seconds, assume the keyboard to be reset.
1241                        reset_time_limit 1.0
1242                        // If not zero, joystick devices are polled within
1243                        // a thread every thread_period seconds.
1244                        thread_period 0.1
1245                    }
1246                }
1247                // Select these entries for using the Windows message queue:
1248                {
1249                    ctx_pattern "application"
1250                    ident "drv_wininput.inputmgr"
1251                    param
1252                    {
1253                        env "env"
1254                        ctx "ctx"
1255                       
1256                        handle_keyboard 0
1257                        handle_mouse 1
1258                       
1259                        catch_mouse 0   // Can be toggled by the "c" key.
1260                    }
1261                }
1262                // Used for ActiveX controls and Max player:
1263                {
1264                    ctx_pattern "activex|maxplayer"
1265                    ident "drv_wininput.inputmgr"
1266                    param
1267                    {
1268                        env "env"
1269                        ctx "ctx"
1270                        catch_mouse 0   // Can be toggled by the "c" key.
1271                    }
1272                }
1273            }
1274        }
1275
1276        // Input mapping configuration.
1277        // Format: <kind> <device> <event> <command>
1278        // <kind>: Kind of device:
1279        //   trigger: A key generating events when being pressed.
1280        //   button: A key generating events when being pressed and released.
1281        //   motion: A device generating relative motions, e.g. mouse.
1282        //   position: A device having an absolute position, e.g. joystick.
1283        // <device>: Device name. May contain wild cards like "*".
1284        // <event>: Event name.
1285        // <command>: Command sent to the engine.
1286        mapping
1287        {
1288            // Syntax: mode device event command
1289           
1290            trigger "Keyboard" "0" "goto_level0"
1291            trigger "Keyboard" "1" "goto_level1"
1292            trigger "Keyboard" "2" "goto_level2"
1293            trigger "Keyboard" "3" "goto_level3"
1294            trigger "Keyboard" "4" "goto_level4"
1295            trigger "Keyboard" "5" "goto_level5"
1296            trigger "Keyboard" "6" "goto_level6"
1297            trigger "Keyboard" "7" "goto_level7"
1298            trigger "Keyboard" "8" "goto_level8"
1299            trigger "Keyboard" "9" "goto_level9"
1300
1301            trigger "Keyboard" "F1" "goto_level10"
1302            trigger "Keyboard" "F2" "goto_level11"
1303            trigger "Keyboard" "F3" "goto_level12"
1304            trigger "Keyboard" "F4" "goto_level13"
1305            trigger "Keyboard" "F5" "goto_level14"
1306            trigger "Keyboard" "F6" "goto_level15"
1307            trigger "Keyboard" "F7" "goto_level16"
1308            trigger "Keyboard" "F8" "goto_level17"
1309            trigger "Keyboard" "F9" "goto_level18"
1310            trigger "Keyboard" "F10" "goto_level19"
1311            trigger "Keyboard" "F11" "goto_level20"
1312            trigger "Keyboard" "F12" "goto_level21"
1313
1314            trigger "Keyboard" "A" ""
1315            trigger "Keyboard" "B" "toggle_showgfxbound"
1316            trigger "Keyboard" "C" "toggle_catch_mouse"
1317            trigger "Keyboard" "D" "toggle_showphyscontact"
1318            trigger "Keyboard" "E" "reset_msg"
1319            trigger "Keyboard" "F" "toggle_frmtime"
1320            trigger "Keyboard" "G" "god"
1321            trigger "Keyboard" "H" "toggle_showphysgeo"
1322            trigger "Keyboard" "I" "store_screenshot"
1323            trigger "Keyboard" "J" "toggle_stat"
1324            trigger "Keyboard" "K" "reset_stat"
1325            trigger "Keyboard" "L" "load_file_default"
1326            trigger "Keyboard" "M" "toggle_showgfxmesh"
1327            trigger "Keyboard" "N" "toggle_showgfxocclmesh"
1328            trigger "Keyboard" "O" "reload_io"
1329            trigger "Keyboard" "P" "toggle_showsensorgeo"
1330            trigger "Keyboard" "Q" "toggle_showsensorbound"
1331            trigger "Keyboard" "R" "refresh_all_res"
1332            trigger "Keyboard" "S" "store_file_default"
1333            trigger "Keyboard" "T" "toggle_showphysbound"
1334            trigger "Keyboard" "U" "toggle_shownoise"
1335            trigger "Keyboard" "V" "toggle_showgfxocclwire"
1336            trigger "Keyboard" "W" "toggle_showgfxwire"
1337            trigger "Keyboard" "X" "" // Should be empty. Used by tutorials.
1338            trigger "Keyboard" "Y" "toggle_fullscreen"
1339            trigger "Keyboard" "Z" "special"
1340
1341            trigger "Keyboard" "Escape" "quit"
1342            trigger "Keyboard" "Space" ""
1343            trigger "Keyboard" "Return" ""
1344
1345            button "Keyboard" "Up" "switch_vel_pos_y"
1346            button "Keyboard" "Down" "switch_vel_neg_y"
1347            button "Keyboard" "Left" "switch_vel_neg_x"
1348            button "Keyboard" "Right" "switch_vel_pos_x"
1349            button "Keyboard" "Page Up" "switch_spin_pos_x"
1350            button "Keyboard" "Page Down" "switch_spin_neg_x"
1351
1352            trigger "Mouse" "Left Button" ""
1353            trigger "Mouse" "Right Button" ""
1354            motion "Mouse" "X Axis" "apply_rot_pos_z"
1355            motion "Mouse" "Y Axis" "apply_rot_pos_x"
1356            motion "Mouse" "X Axis" "move_cursor_x"
1357            motion "Mouse" "Y Axis" "move_cursor_y"
1358            position "Mouse" "X Axis" "set_cursor_x"
1359            position "Mouse" "Y Axis" "set_cursor_y"
1360
1361            position "*joystick*" "X Axis" "assign_spin_pos_z"
1362            position "*joystick*" "Y Axis" "assign_vel_pos_y"
1363            trigger "*joystick*" "Button 0" ""
1364            trigger "*joystick*" "Button 1" ""
1365        }
1366    }
1367
1368    mediaplay
1369    {
1370        prefix "bin/res/"
1371    }
1372
1373    // Configuration of communication channels to external applications.
1374    cas
1375    {
1376        // Enable cas shell:
1377        enabled 1
1378
1379        // TCP port of the CAS (component access shell) terminal.
1380        addrport "0.0.0.0:33301"
1381
1382        // Echo input of the CAS terminal.
1383        // Should be set to 1 when using a TELNET client.
1384        echo 1
1385
1386        // Emulate the telnet protocol.
1387        // Should be set to 1 when using a TELNET client.
1388        // If set to 0, the raw lines are sent.
1389        telnet 1
1390    }
1391}
1392
1393///////////////////////////////////////////////////////////////////////////////
1394// End of file.
Note: See TracBrowser for help on using the repository browser.