Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port osgOcean to OSG 3.4.x - use osg/Version to keep backwards compatibility #52

Merged
merged 4 commits into from Jul 24, 2018

Conversation

fcami
Copy link
Contributor

@fcami fcami commented Oct 31, 2017

These changes make osgOcean work against OpenSceneGraph 3.4.1 and should preserve backwards compatibility.

@fcami
Copy link
Contributor Author

fcami commented Jan 22, 2018

Hi @kbale - could you please merge this PR? Or tell me what you'd like changed.

@romainreignier
Copy link
Contributor

Hi @fcami

I have quickly tried your changes on Linux with the oceanExample because it is the only app I had on hand.
Everything seems to work fine, much better than my attempt at upgrading to 3.4!

So for me, this PR is fine.

But, in the code, I would prefer:

#if OSG_VERSION_LESS_THAN(3,2,2)

instead of

#if OSG_VERSION_GREATER_THAN(3,2,1)

Because if the API change in the future, we would have to nest the preprocessor macros, which would be less readable.

@fcami
Copy link
Contributor Author

fcami commented Jan 24, 2018

Hi @romainreignier & @kbale
Thanks for testing!
I'll update the PR soon, I agree with you.

OSG API changes: fix versions
@fcami
Copy link
Contributor Author

fcami commented Jan 25, 2018

PR updated & I think I got the versions right this time.
@romainreignier & @kbale please let me know what you think.

@romainreignier
Copy link
Contributor

Ok, I prefer that version. I saw that you change the version number according to the change. I did not check these but I assume you checked them.

@fcami
Copy link
Contributor Author

fcami commented Jan 26, 2018

I checked them and they should be right. Note "should": time permitting I would have built those versions and double-checked (and I didn't).
If anyone complains I'll fix that as well.
@kbale ? :)

@whatnick
Copy link

whatnick commented Feb 6, 2018

Successfully compiled on MSVC 2015 using OSG 3.4.0 binaries. Would vote for a merge.

@romainreignier
Copy link
Contributor

@whatnick Did you try the oceanExample application? Because on Windows, I used to find some artifacts on Windows while trying to port to OSG 3.4.
I do not have my Windows setup anymore so it would be nice if you could try it (going underwater in
the demo).
Thanks.

@whatnick
Copy link

whatnick commented Feb 7, 2018

This is what I have underwater:
image

@fcami
Copy link
Contributor Author

fcami commented Feb 7, 2018

@whatnick @romainreignier maybe you're hitting a shader issue: #53 ?

Everything I get underwater seems to be uniform (white on my graphical stack).

@romainreignier
Copy link
Contributor

@whatnick Thanks for taking the time to test so it seems OK.

@kbale This PR seems great and should be merged.

@fcami Yes, it may be related. I think that on OSG 3.2, I only had this issue on Intel GPU, using the second GPU on my laptop, NVidia 750M, there were no issue.

@whatnick
Copy link

whatnick commented Feb 7, 2018 via email

@psi29a
Copy link

psi29a commented Jul 23, 2018

Where are we on this? :) OpenMW is interested in including this and we're based on osg3.4

@kbale kbale merged commit 2187de9 into kbale:master Jul 24, 2018
@kbale
Copy link
Owner

kbale commented Jul 24, 2018

Hi @fcami

My apologies for not merging this sooner, I've recently had a baby and I really haven't had time to keep up with any changes to osgOcean, it's been some time since I worked on this project. None the less, it's in now, thank you for your contribution.

@psi29a
Copy link

psi29a commented Jul 24, 2018

@kbale Congratulations! Welcome to the no-sleep club. :P

@fcami
Copy link
Contributor Author

fcami commented Jul 24, 2018

hi @kbale, no worries, thanks for merging!

@lucasamparo
Copy link

Very useful pull request for OSG migration. Thanks.

@fcami
Copy link
Contributor Author

fcami commented Jan 6, 2022

Thanks @lucasamparo , that kind of feedback is gold to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants