Search found 10 matches

by mark
14 Mar 2014, 11:00
Forum: General Development
Topic: Problems with the random function
Replies: 3
Views: 2755

Re: Problems with the random function

We generally use int value = int(rand() / (RAND_MAX+1.0) * count); when we need a random number in [0,count), which should give a correct 'unbiased' result (in as much as rand itself is unbiased). Should, but doesn't ;) Here is why: The result from this formula is always skewed unless RAND_MAX is a...
by mark
13 Mar 2014, 20:17
Forum: General Development
Topic: Problems with the random function
Replies: 3
Views: 2755

Problems with the random function

Hi, I took a quick look at your code and grepped for the usage of rand() and want to give you some insight that I gained recently on my work in the Cockatrice project, which is another opensource game for Win/Linux/BSD/Mac. 1. The standard rand() implementation is not state of the art, which means i...
by mark
11 Nov 2012, 10:53
Forum: General Development
Topic: video playback
Replies: 36
Views: 14709

Re: video playback

http://www.ogre3d.org/forums/viewtopic.php?f=11&t=29842 might help, it is a video player class for ogre3d (I don't know about sound, I did not see audio variables in the code). The download link is in the very last posting of this thread (http://www.ogre3d.org/forums/download/file.php?id=2223) N...
by mark
07 Oct 2012, 09:48
Forum: General
Topic: What version of Open GL
Replies: 9
Views: 6670

Re: What version of Open GL

this is odd, the forum did not post my reply and it is not in the browser anymore :-( Short version: Linux graphic drivers use the OpenGL implementation Mesa, which will support OpenGL 3.0 in the pending release 9.0 (but only for intel, not ati and nouveau aka nvidia) which will be enough to play Le...
by mark
07 Oct 2012, 09:39
Forum: General
Topic: What version of Open GL
Replies: 9
Views: 6670

Re: What version of Open GL

Newer is not always better, unless you want OpenMW look like Assassin's Creed 3 or whatever new game. Here is why: Many people use opensource graphics drivers for intel, ati and nvidia (nouveau) on Linux; they are the default drivers on almost every distribution I think, and the proprietary blobs fr...
by mark
11 Sep 2012, 09:04
Forum: General Development
Topic: Using std::list
Replies: 2
Views: 1648

Re: Using std::list

Zini wrote:btw. std::list is a non-intrusive list. You probably mean the advantages of an intrusive list instead.
err yes, I meant that. I corrected my previous post, I did not see that my text could be misleading :)
by mark
11 Sep 2012, 08:03
Forum: General Development
Topic: Using std::list
Replies: 2
Views: 1648

Using std::list

Hi, I quickly grepped through the codebase and found several places where you use lists from the STL. It is generally a good idea to use standard containers, but maybe you are interested in this: I found this article ( part1 , part2 ) where a Starcraft developer writes about the early development an...
by mark
16 Aug 2012, 13:42
Forum: General Development
Topic: Factory.hpp not found
Replies: 1
Views: 1732

Factory.hpp not found

Hi, I checked out the code from git but cannot compile it anymore:
~/opt/openmw/components/nifogre/ogre_nif_loader.cpp:44:41: fatal error: extern/shiny/Main/Factory.hpp: No such file or directory
compilation terminated.
How can this be fixed?
by mark
16 Jun 2012, 09:45
Forum: Support
Topic: utf-8/accent input support
Replies: 1
Views: 3039

utf-8/accent input support

Maybe it is a bug in MyGUI and not OpenMW, but I am unable to write characters, that can be used as accent characters. My systemwide charset is utf-8 and for input I use us-intl with accent layout. If I want to type e.g. quotation marks, I need to type " and <blank>. This is needed to type inte...
by mark
12 Jun 2012, 09:22
Forum: General
Topic: Support for localized versions of Morrowind?
Replies: 4
Views: 3624

Support for localized versions of Morrowind?

Some time ago I bought the german version of Morrowind+addons. I then found out that I was unable to apply mods to this version because all strings for items etc have been localized too (I seriously don't know why the company did this, this is dumb and sad at once). I would like to know if OpenMW ha...