OSG and opencs

Involved development of the OpenMW construction set.
Post Reply
User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

OSG and opencs

Post by cc9cii » 16 Feb 2015, 07:25

Well, only been away a little while and so much has happened! In fact opencs is no longer called opencs any more!

Anyhow, what do we do with various graphics tasks? Wait till OSG port is completed in openmw? Or develop with Ogre then port later?

OSG looks nice, but no directx :-(

User avatar
scrawl
Posts: 2085
Joined: 18 Feb 2012, 11:51
Contact:

Re: OSG and opencs

Post by scrawl » 16 Feb 2015, 11:23

Or develop with Ogre then port later?
Definitely this. OpenCS is at the very end of the porting roadmap. We will likely have Ogre and OSG coexisting for a long time, with the former being still used in OpenCS.

User avatar
scrawl
Posts: 2085
Joined: 18 Feb 2012, 11:51
Contact:

Re: OSG and opencs

Post by scrawl » 25 Mar 2015, 21:16

Update to your question: I decided to start with OpenCS, since it's much easier to get running than OpenMW and provides me a nice testing platform for developing the NIF loader and other components.
It's more or less functional now, cell rendering and preview rendering works, minus terrain, pathgrid, and a few other missing bits. I think it would be best to move all OpenCS rendering development to the OSG branch at this point, once I clean it up and push (this evening, hopefully)

Image

The navigation stuff was removed and replaced with OSG's inbuilt camera manipulators. Seems to work much better than the old navigation controls anyway. Namely the camera is auto-centered on the scene bounds, I remember in the old OpenCS having an interior cell far away from the origin would leave you staring at a void. I find the new controls more feature rich and intuitive too. I think the best way to move forward is to roll with the OSG manipulator classes and extend them when needed.

The physics system was removed, the plan is to use OSG's intersection tests for mouse picking, so bullet won't be needed.

Cell marker rendering was removed, I don't think there's anything reusable in there. Best to start from scratch.

User avatar
raevol
Posts: 2502
Joined: 07 Aug 2011, 01:12
Location: Caldera

Re: OSG and opencs

Post by raevol » 25 Mar 2015, 21:18

Wow, nicely done.

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: OSG and opencs

Post by psi29a » 26 Mar 2015, 00:07

Great work!

Would you say that this will land in 0.36 or 0.37? I'm looking at this from a packagers perspective. :)

User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

Re: OSG and opencs

Post by cc9cii » 26 Mar 2015, 04:33

All my contributions got wiped out in one fell swoop :shock:

User avatar
Zini
Posts: 5134
Joined: 06 Aug 2011, 15:16

Re: OSG and opencs

Post by Zini » 26 Mar 2015, 18:18

This is moving forward slightly faster than I anticipated. I have two questions now:

1. What is the minimum version of OSG required? I have an openscenegraph package on my package manager, marked as 3.0.1. Will that be sufficient or is a custom build required? Also, there don't seem to be a dev-package, which is a bit weird.

2. Would it make sense to keep the OSG version of OpenMW-CS in a separate branch for now? Apparently there are issues with OSG packaging. Considering that in its current state the OSG is actually somewhat of a downgrade and that we are unlikely to see any substantial 3D work on OpenMW-CS for 0.36.0 anyway, it might make sense to keep 0.36.0 OGRE-only. Of course that only applies if we do not get a complete OSG port ready for 0.36.0.

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: OSG and opencs

Post by psi29a » 26 Mar 2015, 18:56

Try installing libopenscenegraph-dev, that should fix you right up.

You have precise, which is 3.0.1

I would suggest you upgrade to trusty, which is now a year old but with 3.2.0 of OSG. :)

User avatar
scrawl
Posts: 2085
Joined: 18 Feb 2012, 11:51
Contact:

Re: OSG and opencs

Post by scrawl » 26 Mar 2015, 19:44

Not going into the main branch anytime soon, due to the fact that OpenMW doesn't build. I didn't bother to add backwards compatibility when I changed BSA, NIF and other components to the new interfaces (not that it would be difficult to do though). For simplicity my idea was to move to the main branch once Ogre has been removed completely. Having multiple rendering engines in a single release would be messy from a packaging standpoint.

I'm working with OSG 3.2 from the ubuntu repositories. Feel free to try if it works with 3.0, I have no idea.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests