source: GTP/trunk/App/Demos/Illum/IBRBillboardCloudTrees/Shark3D/demo_v5x0x7_t164x31u_enterpr_kwin32/win32_run.cfg @ 2330

Revision 2330, 45.3 KB checked in by igarcia, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2007 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_univprog_std"
201    path "shark3d_drv_univprog_std.dll"
202    load_immediately 0
203    continue_if_loading_failed 0
204}
205{
206    name "drv_dsnd"
207    path "shark3d_drv_dsnd.dll"
208    load_immediately 0
209    continue_if_loading_failed 0
210}
211{
212    name "drv_wav"
213    path "shark3d_drv_wav.dll"
214    load_immediately 0
215    continue_if_loading_failed 0
216}
217{
218    name "drv_stdinput"
219    path "shark3d_drv_stdinput.dll"
220    load_immediately 0
221    continue_if_loading_failed 0
222}
223{
224    name "drv_wininput"
225    path "shark3d_drv_wininput.dll"
226    load_immediately 0
227    continue_if_loading_failed 0
228}
229{
230    name "drv_dinput"
231    path "shark3d_drv_dinput.dll"
232    load_immediately 0
233    continue_if_loading_failed 0
234}
235{
236    name "drv_netcompr"
237    path "shark3d_drv_netcompr.dll"
238    load_immediately 0
239    continue_if_loading_failed 0
240}
241{
242    name "drv_tcp"
243    path "shark3d_drv_tcp.dll"
244    load_immediately 0
245    continue_if_loading_failed 0
246}
247{
248    name "drv_udp"
249    path "shark3d_drv_udp.dll"
250    load_immediately 0
251    continue_if_loading_failed 0
252}
253{
254    name "drv_commsgeval"
255    path "shark3d_drv_commsgeval.dll"
256    load_immediately 0
257    continue_if_loading_failed 0
258}
259{
260    name "drv_stdres"
261    path "shark3d_drv_stdres.dll"
262    load_immediately 0
263    continue_if_loading_failed 0
264}
265{
266    name "drv_packres"
267    path "shark3d_drv_packres.dll"
268    load_immediately 0
269    continue_if_loading_failed 0
270}
271{
272    name "drv_comres"
273    path "shark3d_drv_comres.dll"
274    load_immediately 0
275    continue_if_loading_failed 0
276}
277{
278    name "drv_stdbitmap"
279    path "shark3d_drv_stdbitmap.dll"
280    load_immediately 0
281    continue_if_loading_failed 0
282}
283{
284    name "drv_plibbitmap"
285    path "shark3d_drv_plibbitmap.dll"
286    load_immediately 0
287    continue_if_loading_failed 0
288}
289{
290    name "drv_dshowvid"
291    path "shark3d_drv_dshowvid.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// Java module:
430{
431    name "kit_java"
432    path "shark3d_kit_java.dll"
433    load_immediately 0
434    continue_if_loading_failed 0
435    param
436    {
437        // Disable Java, create only dummy script actors.
438        disabled 0
439
440        // Invoke JVM with debug option
441        // (needs tools.jar from JDK in classpath)
442        debug 0
443
444        // Enable just-in-time compiler.
445        jit_enabled 0
446
447        // Run in sandbox:
448        sandbox 0
449
450        // Path for finding class files:
451        classpathes
452            // Java-module Java-classes when using the SDK player exe:
453            "[appdir]..\\..\\..\\bin\\java"
454            // Java-module Java-classes when using an other exe (e.g. Max)
455            "[appdir]shark3d\\bin\\java"
456            // Project-specific resources:
457            "bin\\res"
458
459        // Java library loading information:
460        libname ""
461        registry_key "Software\\JavaSoft\\Java Runtime Environment\\1.4"
462        registry_val "RuntimeLib"
463        bootclasspath ""
464        extra_option_array
465    }
466}
467
468///////////////////////////////////////////////////////////////////////////////
469// Log into TCP server:
470
471msgeval_ident "drv_commsgeval.msgeval"
472msgeval_param
473{
474    env "env"
475    addrport_conv "addr_conv"
476    addrport "[comaddrport]"
477}
478
479///////////////////////////////////////////////////////////////////////////////
480// Resource manager:
481
482resmgr_ident "drv_stdres.resmgr_dispatch"
483resmgr_param
484{
485    env "env"
486    log_enabled 0
487    entry_array
488    {
489        prefix ""
490        ident "drv_stdres.resmgr_select"
491        param
492        {
493            env "env"
494            // Select a resource manager:
495            // "normal" -> Reading from file and using DRU.
496            // "packfile" -> Reading from a packfile.
497            select "normal"
498           
499            entry_array
500            {
501                // Default: File resource manager.
502                name "normal"
503                ident "drv_comres.resmgr"
504                param
505                {
506                    env "env"
507                    addrport_conv "addr_conv"
508                    addrport "[comaddrport]"
509                    ignore_socket_errors 1
510                    com_buf_size 0
511                    request_timeout 0.0
512                    request_waitsleep 0.0
513                    child_ident "drv_stdres.resmgr_file"
514                    child_param
515                    {
516                        env "env"
517                        // Prefix added to the resource name for
518                        // infos and errors:
519                        name_prefix "res:"
520                        // Location to load the files from:
521                        ref_dir "[homedir]bin/res/"
522                        // Convertor for the ref_dir, for replacing
523                        // placeholders.
524                        ref_dir_conv "path_conv"
525                        // Allow absolute pathes and pathes containing "..":
526                        allow_any_path 0
527                        // Case sensitive file name on Win32 platform.
528                        // Should be enabled to avoid problems
529                        // with packfiles, DRU, and non-Win32 platforms.
530                        non_strict_path 0
531                        // Cache size not too large to avoid stuttering:
532                        file_cache_size 4096
533                        // Log all file accesses:
534                        log_enabled 1
535                    }
536                }
537            }
538            {
539                name "packfile"
540                ident "drv_packres.resmgr_pack"
541                param
542                {
543                    env "env"
544                    child_ident "drv_stdres.resmgr_file"
545                    child_param
546                    {
547                        env "env"
548                        name_prefix ""
549                        ref_dir ""
550                        ref_dir_conv ""
551                        allow_any_path 0
552                        non_strict_path 0
553                        file_cache_size 4096
554                        log_enabled 1
555                    }
556                    entry_array
557                    {
558                        prefix ""
559                        pack_res "packfile.s3d_pack"
560                        name_prefix "res:"
561                    }
562                    journal_file_path "packfile.s3d_packjournal"
563                    journal_file_format "utf8"
564                    index_cache_size 4096
565                    res_cache_size 4096
566                }
567            }
568        }
569    }
570    {
571        // Prefix "file:": Open as file.
572        prefix "file:"
573        ident "drv_stdres.resmgr_file"
574        param
575        {
576            env "env"
577            ref_dir ""
578            ref_dir_conv "path_conv"
579            allow_any_path 1
580            non_strict_path 0
581            file_cache_size 4096
582            log_enabled 1
583        }
584    }
585}
586
587///////////////////////////////////////////////////////////////////////////////
588// Startup resource:
589
590// Name of the startup resource.
591// This resources describes the first actor created by the player.
592startup "main/actor/main.s3d_actor_run"
593
594///////////////////////////////////////////////////////////////////////////////
595// Application configuration:
596
597// The parameters of the following chunk are evaluated by the application.
598//
599// All these parameter can be also changed by the application.
600// However, depending on the parameter it may have only effect
601// after restarting the application.
602// Other parameters may take effect by re-initializing a part
603// of the runtime system. For example, the "reload_io" command
604// re-initializes input, graphics, and sound.
605//
606cfg
607{
608    // Network engine.
609    network
610    {
611        // Enable/disable networking.
612        enabled 1
613
614        // Component type.
615        ident "drv_netcompr.neteng"
616        param
617        {
618            env "env"
619           
620            // Log runtime network statistic in message handler:
621            log_enabled 0
622
623            // Compression level (0 for disabling)
624            compr_level 9
625
626            // Child driver TCP:
627            child_ident "drv_tcp.neteng"
628            child_param
629            {
630                env "env"
631               
632                // Send buffer ring size.
633                buffer_size 65536
634
635                // Log runtime network statistic in message handler:
636                log_enabled 0
637
638                // Enable/disable Nagle algorithm.
639                no_delay 0
640
641                // When connecting, try "connect_retry_count" times
642                // with a pause of "connect_retry_delay" seconds
643                // between each try.
644                //connect_retry_count 10
645                //connect_retry_delay 1.0
646            }
647
648            // Child driver UDP:
649            /*
650            child_ident "drv_udp.neteng"
651            child_param
652            {
653                // Maximal packet size. Larger data blocks are divided.
654                // Smaller packet sizes may give smoother transfer rates.
655                max_msg_size 256
656
657                // Timeout after which a alive ping is send if no data arrives.
658                alive_period 1.0
659
660                // Timeout after which an fatal error is generated.
661                timeout 30.0
662            }
663            */
664        }
665    }
666
667    // Server configuration.
668    server
669    {
670        // Enable/disable the server.
671        // Disable the server if you connect to a extern server.
672        enabled 1
673
674        // Port number the server is listening on.
675        // If empty, no client can connect via network.
676        addr "0.0.0.0:33300"
677    }
678
679    // Client configuration.
680    client
681    {
682        // Enable/disable the client.
683        // Disable it for a dedicated server.
684        enabled 1
685       
686        // Format: "<host>:<port>"
687        // If empty, the client is connected to a local server.
688        addr ""
689        //addr "127.0.0.1:33300"
690        //addr "192.168.0.1:33300"
691
692        // Define a extra rotation on client side,
693        // for example for cave applications.
694        extratransf
695        {
696            axis_x 0.0
697            axis_y 0.0
698            axis_z 1.0
699            degree 0.0
700            offset_x 0.0
701            offset_y 0.0
702            offset_z 0.0
703        }
704    }
705
706    // Bitmap file format drivers:
707    bitmapparser
708    {
709        ident "drv_stdbitmap.bitmapparser_dispatch"
710        param
711        {
712            env "env"
713            entry_array
714            {
715                ident "drv_stdbitmap.bitmapparser_std"
716                param
717                {
718                }
719            }
720            {
721                ident "drv_plibbitmap.bitmapparser_plib"
722                param
723                {
724                }
725            }
726        }
727    }
728   
729    // Video format drivers:
730    videoparser
731    {
732        ident "drv_dshowvid.videoparser"
733        param
734        {
735            env "env"
736            // Prefix for loading videos:
737            prefix "file://bin/res/"
738            // During two rendering frames, or if a video is not visible,
739            // then wait this time in seconds before decompressing
740            // the next frame.
741            wait_continue 1.0
742        }
743    }
744
745    // Sound file format drivers:
746    waveparser
747    {
748        ident "drv_wav.waveparser"
749        param
750        {
751        }
752    }
753
754    // IO context configuration.
755    // The context is the link between gfx-output, input and sound.
756    //
757    // These parameters may be also changed by the application,
758    // and then take effect by a "reload_io" command,
759    // see the keyboard configuration below.
760    context
761    {
762        // Component type. Empty string creates default component of DLL.
763        ident "drv_winctx.ctx"
764        param
765        {
766            env "env"
767            caption "Shark 3D"
768            // Window is always on the top:
769            topmost 0
770            // If set to one, the given size is not the client area size,
771            // but the total window size.
772            size_is_window_size 0
773            // Disable ALT-TAB and ALT-RETURN in fullsceen mode.
774            fullscreen_disable_hotkeys 1
775            // File name pattern for screenshots.
776            // Screenshots can be triggered by the command "store_screenshot".
777            // See the key bindings below.
778            // Note that alternatively you can also use the standard
779            // windows screenshot mechanism:
780            // Alt-PrintScreen copies a screenshot into the clipboard.
781            screenshot_filepat "shot####.bmp"
782            // Store a screenshot each frame:
783            auto_screenshot 0
784            // Sleep time in seconds each frame if the window is deactive:
785            //deactive_sleep_time 0.0
786            deactive_sleep_time 0.05
787        }
788    }
789
790    // Graphics engine configuration.
791    //
792    // These parameters may be also changed by the application,
793    // and then take effect by a "reload_io" command,
794    // see the keyboard configuration below.
795    gfxeng
796    {
797        // 3D driver DLL. If empty, use internal factory.
798        // Select one of the following drivers:
799        // Auto detection:
800        ident "drv_gfxselect.gfxmgr"
801        param
802        {
803            env "env"
804           
805            // Driver selection:
806            // "d3d9" -> Direct3D9
807            // "opengl" -> OpenGL.
808            // Note: For OpenGL you have to compile the resources differently,
809            // see the notes in "utility/buildres/tool_prep_win32.cfg".
810            select "d3d9"
811            //select "opengl"
812           
813            entry_array
814            {
815                name "d3d9"
816                ident "drv_d3d9.gfxmgr"
817                param
818                {
819                    env "env"
820                    univprog_suppl "envcompsuppl"
821                    univprog_given_array
822                    {
823                        item "env"
824                        given_ident "env"
825                    }
826                    default_outparam
827                    {
828                        // Log all Direct3D calls. Very slow.
829                        log_dx_calls 0
830                        // Use software reference driver.
831                        ref_driver 0
832                        tripple_buffering 0
833                        force_sw_vertexbuf 0
834                        force_hw_vertexbuf 0
835                        prefer_idxbuf32 0
836                        pure_device 1
837                        // Don't preserve FPU state. May help improve
838                        // performance, but may cause fp precision problems.
839                        disable_fpu_preserve 0
840                        // Binary logarithm of the minimal texture width.
841                        // 5 -> 32 to avoid problems with NVidia drivers:
842                        min_lb_tex_width 5
843                        // Binary logarithm of the minimal texture height.
844                        // 5 -> 32 to avoid problems with NVidia drivers:
845                        min_lb_tex_height 5
846                        // Binary logarithm of the minimal volume texture
847                        // extension.
848                        min_lb_vol_tex_ext 5
849                        // Don't use dynamic VB, only static VB and UP.
850                        no_dynamic_vertexbuf 0
851                        // If enabled dummy blend weights and indices are put
852                        // into same vertexbuffer as other vertex data.
853                        // If disabled a small 16 byte application global
854                        // vertexbuffer will be used for dummy data.
855                        no_dummybone_vertexbuf 1
856                        // Use DrawIndexedPrimitiveUP() for dynamic VBs
857                        // instead of DrawIndexedPrimitive()
858                        use_draw_indexed_primitive_up 1
859                        // If non-zero, flush cmdbuffer every idxcnt
860                        idx_flush_cnt 0
861                        // If hw does not support this vertex shader version,
862                        // use sw:
863                        req_vert_shad_ver "0x0"
864                        // Use faked fullscreen mode:
865                        faked_fullscreen 0
866                        // If true d3d shader debug is possible for asm and
867                        // hlsl shaders pure_device needs to be 0 and
868                        // force_sw_vertexbuf needs to be 1 for pixelshader
869                        // debugging enable ref_driver
870                        shader_debug 0
871                        // Report creation and destruction information:
872                        report_batch 1
873                        report_buf 1
874                        report_tex 1
875                        report_prog 1
876                        // compress textures that are greater than
877                        // 'min_texcompress_width' and 'min_texcompress_height'
878                        // 0 = dont override compression flag
879                        min_texcompress_width 0
880                        min_texcompress_height 0
881                        // use at most 'max_miplevels' for textures
882                        // 0 = automatic mip level count
883                        max_miplevels 0
884                        // <= 1: disable anisotropic texture filtering
885                        max_anisotropy 4
886                        // disable special nvidia depth texture
887                        nvdepthtex_enabled 0
888                        // Preload d3d textures, vertex and indexbuffers
889                        preload_resources 0
890                        // if enabled, vertprog declaration will be checked
891                        // against vertexbuffer declaration each frame.
892                        // Useful while shaderprog development.
893                        validate_prog_buf 1
894                        gamma_2x2_enabled 0
895                        srgb_tex_enabled 0
896                        srgb_write_enabled 0
897                        // Multisampling:
898                        // 0 := Auto select.
899                        // 1 := Disable multisampling
900                        // n := Selects multisample
901                        multisample 0
902                        // Enable info output for D3D PIX
903                        pix_enabled 0
904                    }
905                }
906                enum_param
907                {
908                }
909            }
910            {
911                name "opengl"
912                ident "drv_opengl.gfxmgr"
913                param
914                {
915                    env "env"
916                    univprog_suppl "envcompsuppl"
917                    univprog_given_array
918                    {
919                        item "env"
920                        given_ident "env"
921                    }
922                    default_outparam
923                    {
924                        // Disable OpenGL extensions by the combination of the
925                        // lower-case renderer string and lower-case extension
926                        // name:
927                        // "<lower-case-renderer>@<lower-case-extension>"
928                        forbid_pat ""
929                                //& "|*geforce*@gl_arb_vertex_buffer_object"
930                                & "|*@gl_ext_compiled_vertex_array"
931                                & "|*radeon 9000*@gl_arb_vertex_buffer_object"
932                                & "|*radeon 9000*@//display_list"
933                        // <= 1: disable anisotropic texture filtering
934                        max_anisotropy 4
935                        // Report creation and destruction information:
936                        report_batch 1
937                        report_buf 1
938                        report_tex 1
939                        report_prog 1
940                    }
941                }
942                enum_param
943                {
944                }
945            }
946        }
947        enum_param
948        {
949        }
950        enum_enabled 1     // Write fullscreen modes into log.
951    }
952   
953    // Graphics output configuration.
954    //
955    // These parameters may be also changed by the application,
956    // and then take effect by a "reload_io" command,
957    // see the keyboard configuration below.
958    gfxout
959    {
960        // Select a display device. Empty string for default device.
961        // Different gfx backends support different device strings.
962        // In case of Direct3D, "0", "1", "2" selects a Direct3D adapter.
963        // See the log file for a list of devices and fullscreen modi.
964        // This may include for example the Nvidia PerfHUD adapter.
965        device ""
966
967        // Window position, use -1 for default window position
968        left 0
969        top 0
970        // Resolution and color depth:
971        width 640
972        height 480
973        //width 1024
974        //height 768
975        depth 32
976        frequency 0
977        gamma 1.0 1.0 1.0
978        fullscreen 0
979        nostencil 0             // Don't allocate a stencil buffer.
980        nobatch 0               // Don't use batch objects (e.g. display lists)
981
982        // Other graphics parameter:
983        quality 0               // Prefer rendering quality instead of speed.
984        software 0              // Use software emulation.
985        singlebuffer 0          // Don't use double-buffering.
986        synch 0                 // Wait for vertical refresh.
987        noextensions 0          // Don't use API extensions (e.g. OpenGL ext.)
988        abort_if_no_gfxout 1    // Fatal error if initialization failed.
989    }
990
991    // 3D projection information:
992    //
993    // These parameters may be also changed by the application,
994    // and then take effect by a "reload_io" command,
995    // see the keyboard configuration below.
996    proj_world
997    {
998        // Define the opening angles.
999        open_x 1.0      // Slope of the left and right clipping plane.
1000        open_y 0.75     // Slope of the top and bottom clipping plane.
1001        //open_x 1.119     // Slope of the left and right clipping plane.
1002        //open_y 0.629     // Slope of the top and bottom clipping plane.
1003        center_x 0.0
1004        center_y 0.0
1005    }
1006    proj_display
1007    {
1008        // Define the opening angles.
1009        open_x 1.0      // Size of the left and right clipping plane.
1010        open_y 0.75     // Size of the top and bottom clipping plane.
1011        //open_x 1.119     // Slope of the left and right clipping plane.
1012        //open_y 0.629     // Slope of the top and bottom clipping plane.
1013        center_x 0.0
1014        center_y 0.0
1015    }
1016
1017    // Stereo rendering parameters:
1018    eyedist
1019    {
1020        world 0.1       // World eye disteance for stereo rendering.
1021        display 0.1     // Display eye distance for stereo rendering.
1022    }
1023
1024    // 3D gfxport configuration:
1025    gfxport
1026    {
1027        // Other gfxport parameters:
1028        cull_pix 10.0           // Minimal object screen size for culling
1029        mesh_pix 5.0            // Minimal geometry screen presision
1030        visib_mesh_pix 5.0      // Geom. scr. prec. for glow visib. test
1031       
1032        // Debugging parameters:
1033        texaux_inspect_scale_x 0.0
1034        texaux_inspect_scale_y 0.0
1035        //texaux_inspect_scale_x 0.05 // Debug output of rendertargets
1036        //texaux_inspect_scale_y 0.05
1037    }
1038
1039    // Other view options:
1040    //
1041    // These parameters may be also changed by the application,
1042    // and then take effect by a "reload_io" command,
1043    // see the keyboard configuration below.
1044    view
1045    {
1046        // Shader system: If the batches are static,
1047        // don't evaluate the mesh data every frame anymore.
1048        economise 1
1049        // Shader system: If the mesh data is not needed anymore,
1050        // reduce the model:
1051        reduce 1
1052    }
1053
1054    // Sound configuration.
1055    //
1056    // These parameters may be also changed by the application,
1057    // and then take effect by a "reload_io" command,
1058    // see the keyboard configuration below.
1059    snd
1060    {
1061        // Enable/disable sound.
1062        enabled 1
1063
1064        // Component type. Empty string creates default component of DLL.
1065        ident "drv_dsnd.sndeng"
1066        param
1067        {
1068            ctx "ctx"
1069           
1070            // Ignore all DirectSound errors.
1071            ignore_ds_errors 0
1072
1073            // As default, all mono wave files are played as 3d sound,
1074            // and all stereo wave files are played conventionally.
1075            no3d_always 0
1076            no3d_pan_scale 1.0
1077            no3d_back_down 0.0
1078
1079            // Sound device:
1080            device_index 0
1081
1082            // DirectSound Cooperative Level.
1083            //coop_level "exclusive"
1084            //coop_level "normal"
1085            coop_level "priority"   // Needed to set the primary buffer format
1086            //coop_level "writeprimary"
1087
1088            // Sound buffer len used for each sound source.
1089            buffer_len 2.0
1090
1091            // Pre-load seconds for each wave file.
1092            preload_sec 0.0
1093
1094            // Maximal change of the volume of each sound source per frame.
1095            // Setting this parameter to an non-zero value
1096            // may help avoiding cracking.
1097            // For example, a value of 0.1 means that a sound source is not
1098            // stopped immediately, but fade down during a period
1099            // of maximal 10 frames.
1100            max_volume_change_per_frame 0.1
1101
1102            // Requested format for the primary buffer:
1103            // If a value is null, the current value is kept.
1104            primary_bits_per_sample 16
1105            primary_channels 2
1106            primary_samples_per_sec 44100
1107
1108            // Requested format for wave files since some formats give
1109            // a ugly performance on some sound cards.
1110            // If a value is 0, a wave file may have any value,
1111            // but the sound cards must convert on the fly.
1112            wave_bits_per_sample 16
1113            wave_channels 1
1114            wave_samples_per_sec 44100
1115
1116            // Number of sound buffers to reserve at initialization:
1117            wave_buffer_reserve 4
1118
1119        }
1120        /*
1121        ident "drv_openal.sndeng"
1122        param
1123        {
1124            // Ignore all DirectSound errors.
1125            ignore_errors 0
1126
1127            // As default, all mono wave files are played as 3d sound,
1128            // and all stereo wave files are played conventionally.
1129            no3d_always 0
1130            no3d_pan_scale 1.0
1131            no3d_back_down 0.0
1132
1133            // Sound buffer len used for each sound source.
1134            buffer_size 88200
1135
1136            // Pre-load seconds for each wave file.
1137            preload_sec 0.0
1138
1139            // Maximal change of the volume of each sound source per frame.
1140            // Setting this parameter to an non-zero value
1141            // may help avoiding cracking.
1142            // For example, a value of 0.1 means that a sound source is not
1143            // stopped immediately, but fade down during a period of 10 frames.
1144            max_volume_change_per_frame 0.1
1145
1146            // Requested format for wave files since some formats give
1147            // a ugly performance on some sound cards.
1148            wave_bits_per_sample 16
1149            wave_channels 1
1150            wave_samples_per_sec 44100
1151            // Number of sound buffers to reserve at initialization:
1152            wave_buffer_reserve 4
1153        }
1154        */
1155    }
1156   
1157    // List of feature strings.
1158    // These strings can be tested for example by shaders,
1159    // to select between different shader variants:
1160    feature_set "dummy1" "dummy2"
1161
1162    // Actor logging switches.
1163    // Note that other components like drivers may have further switches.
1164    log
1165    {
1166        evtmgr 1            // Log events of event queues.
1167        stat 0              // Log the statistical information of each frame.
1168    }
1169
1170    // Statistical information display configuration.
1171    insp
1172    {
1173        // Info paint offset and character size:
1174        paint
1175        {
1176            offs_x_pix 0.0
1177            offs_y_pix 0.0
1178            char_size_x_pix 0.0
1179            char_size_y_pix 0.0
1180        }
1181
1182        // Enable particular statistical information items:
1183        general 1           // General information (including engine version).
1184        frmtime 0           // Frametime.
1185        mem 1               // Memory
1186        gfxport 1           // Gfxport rendering statistics.
1187        gfxbase 1           // Graphics basic information.
1188        gfxstat 1           // Graphics driver statistics.
1189        cursor 1            // Cursor statistics
1190        msg 1               // Show messages.
1191
1192        // File to log the frametime into.
1193        frmtime_logfile ""
1194        //frmtime_logfile "log_frametime.log"
1195        // Maximal number of message lines:
1196        msg_limit 8
1197        // Also include non-errors:
1198        msg_alsoinfo 0
1199    }
1200
1201    // Input configuration:
1202    input
1203    {
1204        // Player control smooth time for movements and rotating.
1205        // May be for example useful when creating demo videos.
1206        smooth_move 0.0
1207        smooth_rot 0.0
1208        // Position device dead zone.
1209        deadzone 0.0
1210
1211        // Drivers:
1212        mgr
1213        // Select these entries for using DirectInput:
1214        {
1215            inputmgr_ident "drv_stdinput.inputmgr_multi"
1216            inputmgr_param
1217            {
1218                env "env"
1219                ctx "ctx"
1220                entry_array
1221                // DirectInput:
1222                {
1223                    ctx_pattern "application"
1224                    ident "drv_dinput.inputmgr"
1225                    param
1226                    {
1227                        env "env"
1228                        ctx "ctx"
1229                       
1230                        handle_keyboard 1
1231                        handle_mouse 0
1232                        handle_ctrl 1   // For example joysticks
1233                       
1234                        ignore_di_errors 0
1235                        attached_only 0
1236                        // Work around for DirectInput bug:
1237                        // If the keyboard is not polled for this number
1238                        // of seconds, assume the keyboard to be reset.
1239                        reset_time_limit 1.0
1240                        // If not zero, joystick devices are polled within
1241                        // a thread every thread_period seconds.
1242                        thread_period 0.1
1243                    }
1244                }
1245                // Select these entries for using the Windows message queue:
1246                {
1247                    ctx_pattern "application"
1248                    ident "drv_wininput.inputmgr"
1249                    param
1250                    {
1251                        env "env"
1252                        ctx "ctx"
1253                        handle_keyboard 0
1254                        handle_mouse 1                       
1255                        catch_mouse 0   // Can be toggled by the "c" key.
1256                    }
1257                }
1258                // Used for ActiveX controls and Max player:
1259                {
1260                    ctx_pattern "activex|maxplayer"
1261                    ident "drv_wininput.inputmgr"
1262                    param
1263                    {
1264                        env "env"
1265                        ctx "ctx"
1266                        handle_keyboard 1
1267                        handle_mouse 1                       
1268                        catch_mouse 0   // Can be toggled by the "c" key.
1269                    }
1270                }
1271            }
1272        }
1273
1274        // Input mapping configuration.
1275        // Format: <kind> <device> <event> <command>
1276        // <kind>: Kind of device:
1277        //   trigger: A key generating events when being pressed.
1278        //   button: A key generating events when being pressed and released.
1279        //   motion: A device generating relative motions, e.g. mouse.
1280        //   position: A device having an absolute position, e.g. joystick.
1281        // <device>: Device name. May contain wild cards like "*".
1282        // <event>: Event name.
1283        // <command>: Command sent to the engine.
1284        mapping
1285        {
1286            // Syntax: mode device event command
1287           
1288            trigger "Keyboard" "0" "goto_level0"
1289            trigger "Keyboard" "1" "goto_level1"
1290            trigger "Keyboard" "2" "goto_level2"
1291            trigger "Keyboard" "3" "goto_level3"
1292            trigger "Keyboard" "4" "goto_level4"
1293            trigger "Keyboard" "5" "goto_level5"
1294            trigger "Keyboard" "6" "goto_level6"
1295            trigger "Keyboard" "7" "goto_level7"
1296            trigger "Keyboard" "8" "goto_level8"
1297            trigger "Keyboard" "9" "goto_level9"
1298
1299            trigger "Keyboard" "F1" "goto_level10"
1300            trigger "Keyboard" "F2" "goto_level11"
1301            trigger "Keyboard" "F3" "goto_level12"
1302            trigger "Keyboard" "F4" "goto_level13"
1303            trigger "Keyboard" "F5" "goto_level14"
1304            trigger "Keyboard" "F6" "goto_level15"
1305            trigger "Keyboard" "F7" "goto_level16"
1306            trigger "Keyboard" "F8" "goto_level17"
1307            trigger "Keyboard" "F9" "goto_level18"
1308            trigger "Keyboard" "F10" "goto_level19"
1309            trigger "Keyboard" "F11" "goto_level20"
1310            trigger "Keyboard" "F12" "goto_level21"
1311
1312            trigger "Keyboard" "A" ""
1313            trigger "Keyboard" "B" "toggle_showgfxbound"
1314            trigger "Keyboard" "C" "toggle_catch_mouse"
1315            trigger "Keyboard" "D" "toggle_showphyscontact"
1316            trigger "Keyboard" "E" "reset_msg"
1317            trigger "Keyboard" "F" "toggle_frmtime"
1318            trigger "Keyboard" "G" "god"
1319            trigger "Keyboard" "H" "toggle_showphysgeo"
1320            trigger "Keyboard" "I" "store_screenshot"
1321            trigger "Keyboard" "J" "toggle_stat"
1322            trigger "Keyboard" "K" "reset_stat"
1323            trigger "Keyboard" "L" "load_file_default"
1324            trigger "Keyboard" "M" "toggle_showgfxmesh"
1325            trigger "Keyboard" "N" "toggle_showgfxocclmesh"
1326            trigger "Keyboard" "O" "reload_io"
1327            trigger "Keyboard" "P" "toggle_showsensorgeo"
1328            trigger "Keyboard" "Q" "toggle_showsensorbound"
1329            trigger "Keyboard" "R" "refresh_all_res"
1330            trigger "Keyboard" "S" "store_file_default"
1331            trigger "Keyboard" "T" "toggle_showphysbound"
1332            trigger "Keyboard" "U" "toggle_shownoise"
1333            trigger "Keyboard" "V" "toggle_showgfxocclwire"
1334            trigger "Keyboard" "W" "toggle_showgfxwire"
1335            trigger "Keyboard" "X" "" // Should be empty. Used by tutorials.
1336            trigger "Keyboard" "Y" "toggle_fullscreen"
1337            trigger "Keyboard" "Z" "special"
1338
1339            trigger "Keyboard" "Escape" "quit"
1340            trigger "Keyboard" "Space" ""
1341            trigger "Keyboard" "Return" ""
1342
1343            button "Keyboard" "Up" "switch_vel_pos_y"
1344            button "Keyboard" "Down" "switch_vel_neg_y"
1345            button "Keyboard" "Left" "switch_vel_neg_x"
1346            button "Keyboard" "Right" "switch_vel_pos_x"
1347            button "Keyboard" "Page Up" "switch_spin_pos_x"
1348            button "Keyboard" "Page Down" "switch_spin_neg_x"
1349
1350            trigger "Mouse" "Left Button" ""
1351            trigger "Mouse" "Right Button" ""
1352            motion "Mouse" "X Axis" "apply_rot_pos_z"
1353            motion "Mouse" "Y Axis" "apply_rot_pos_x"
1354            motion "Mouse" "X Axis" "move_cursor_x"
1355            motion "Mouse" "Y Axis" "move_cursor_y"
1356            position "Mouse" "X Axis" "set_cursor_x"
1357            position "Mouse" "Y Axis" "set_cursor_y"
1358
1359            position "*joystick*" "X Axis" "assign_spin_pos_z"
1360            position "*joystick*" "Y Axis" "assign_vel_pos_y"
1361            trigger "*joystick*" "Button 0" ""
1362            trigger "*joystick*" "Button 1" ""
1363        }
1364    }
1365
1366    mediaplay
1367    {
1368        prefix "bin/res/"
1369    }
1370
1371    // Configuration of communication channels to external applications.
1372    cas
1373    {
1374        // Enable cas shell:
1375        enabled 1
1376
1377        // TCP port of the CAS (component access shell) terminal.
1378        addrport "0.0.0.0:33301"
1379
1380        // Echo input of the CAS terminal.
1381        // Should be set to 1 when using a TELNET client.
1382        echo 1
1383
1384        // Emulate the telnet protocol.
1385        // Should be set to 1 when using a TELNET client.
1386        // If set to 0, the raw lines are sent.
1387        telnet 1
1388    }
1389}
1390
1391///////////////////////////////////////////////////////////////////////////////
1392// End of file.
Note: See TracBrowser for help on using the repository browser.