Search found 1572 matches

by Chris
28 Mar 2012, 08:01
Forum: General Development
Topic: Display std::cout in console window
Replies: 4
Views: 1180

Re: Display std::cout in console window

Proper logging would be nice, with various severity levels. Would Ogre's logging methods work? Could they be hooked so messages can be mirrored on the console and std::cout given their severity?
by Chris
27 Mar 2012, 15:43
Forum: General Development
Topic: Terrain
Replies: 104
Views: 21352

Re: Terrain

I think the fact that the terrain makes heavy use of shaders, which is bad news for half the linux ecosystem of graphics drivers and hardware is worth mentioning... The main problem is that the fragment shaders are too large. It defines a shader to handle per pixel lighting for 8 lights[1], which c...
by Chris
27 Mar 2012, 13:05
Forum: General Development
Topic: Memory leaks and uninitialised variables
Replies: 12
Views: 18491

Re: Memory leaks and uninitialised variables

- Remember the rule of three (destructor, copy-constructor, assignment operator). If you have one off them, most likely you will need all three (if desired so, copy-constructors and assignment operators can be disabled instead, by declaring them private and not implementing them). It might be helpf...
by Chris
26 Mar 2012, 12:53
Forum: General Development
Topic: OGRE 1.8
Replies: 38
Views: 13173

Re: OGRE 1.8

Can anyone explain why supporting the DirectX n (where n is usually 9,10 or 11) is somewhat important? I genuinely confused. Supporting a particular DirectX changes something? Make something easier or harder to implement? What gives? Newer DirectX versions typically expose new functionality, or mor...
by Chris
26 Mar 2012, 03:44
Forum: General Development
Topic: OpenMW Font
Replies: 15
Views: 8797

Re: OpenMW Font

Vanilla Morrowind has INI settings: [Fonts] Font 0=magic_cards_regular Font 1=century_gothic_font_regular Font 2=daedric_font IIRC, any game data would only refer to the font names "Font 1", Font 2", and "Font 3" (or maybe just "1", "2", and "3"). FWIW, the INI also has a bunch of stuff for font col...
by Chris
24 Mar 2012, 13:50
Forum: General Development
Topic: [post-1.0] Scripting enhancemnts
Replies: 88
Views: 31399

Re: [post-1.0] Scripting enhancemnts

No doubt about the implementation. But I do not agree with the part about the design; yes, it has a few annoying oddities, yes, it has a few unfortunate omissions, yes it is pretty simple, but overall it does its job well. I am not wearing my OpenMW developer hat, but my MW modder hat, when making ...
by Chris
24 Mar 2012, 06:08
Forum: General Development
Topic: [post-1.0] Scripting enhancemnts
Replies: 88
Views: 31399

Re: [post-1.0] Scripting enhancemnts

I'm with Yacoby and BenBat. MW's scripting language is pretty poorly designed and implemented compared to what's possible nowadays, and its scope is quite limited. Trying to extend MW's scripting language is like trying to put band-aids on a gash. Sure it can help (and things like MWSE have no choic...
by Chris
21 Mar 2012, 19:30
Forum: General Development
Topic: Sound Improvements
Replies: 27
Views: 5771

Re: Sound Improvements

I am not sure if I understand exactly what you mean. But having a file show up multiple times is expected (depending on the state of your MW installation). The same file existing in a bsa and in the file system is one issue. The same file existing in multiple data path locations is another (current...
by Chris
20 Mar 2012, 21:17
Forum: General Development
Topic: Sound Improvements
Replies: 27
Views: 5771

Re: Sound Improvements

It seems to be working now using Ogre's resource management stuff. Something odd I noticed is that the music files are each listed 3 times. I think that's due to OMW::Engine::loadBSA loading the same data dir 3 times (as Morrowind.bsa, Tribunal.bsa, and Bloodmoon.bsa are all in ./data, and each BSA ...
by Chris
20 Mar 2012, 14:23
Forum: General Development
Topic: Sound Improvements
Replies: 27
Views: 5771

Re: Sound Improvements

Your sound-rewrite doesn't merge cleanly. Can you merge in my master branch please? Done. I hope it did that correctly. BTW, how should I handle resource loading (reading sound files, etc)? The original/current code mainly uses normal IO functions, but that obviously won't work with BSAs, so I'm no...