multiple physical worlds

eugen

15-11-2006 23:24:37

First off all, i'm new to nxogre!
I have one basic question: is there any restriction of not being able to use many worlds in the same application (besides the fact that now the world is now returned by a singleton which can be easily changed). For example i want to have a world dealing with some objects, another world dealing with others (objects in different worlds will clearly not interact)
I suppose there shouldnt be any problem with multiple separate worlds but if someone with more experience with nxogre can tell will be more than enough for me!

thanks!

(sorry, i didnt had time to search the forum, i'll do it in the mean time)

betajaen

15-11-2006 23:28:14

Wow, nice to see you here.

NxOgre has no problem with multiple "worlds", however you should replace the word "world" with scene. World is the main singleton that holds the scenes. These scenes; infinite in size can use the same Ogre Scene Manager's or separate ones if you like, you can even (if you have a card) render one scene on the PPU and one on software, if you can get it working, even on a separate processor or core, and of course they do not interact with each other, although lately I have even made that optional ;)

As your new to NxOgre, I suggest you have a quick read through the first half of my book, Betajaen's guide to NxOgre, then have a look at NxOgre 0.4RC2 and the tutorials (start with 101 and go forward).

Enjoy!

eugen

15-11-2006 23:46:11

:) glad to be here
For a while i'll have ODE and PhysX both running in the engine (and going to some stability/perofrmance tests), if PhysX turns out to be what most people say then i'll drop ODE support (now PhysX being free for commercial also it would be the natural choice)
i have compiled nxogre and tutorials without problems (u have done a fine job there...i had to make some changes since i'm still using ogre 1.2.0)
Thanks for the info, i'll read the docs u have also!