OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Order Independent Transparency and osg::Viewer


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
beingbad@163.com
Newbie


Joined: 13 Jun 2019
Posts: 6

PostPosted: Fri Jun 14, 2019 7:56 am    Post subject:
Order Independent Transparency and osg::Viewer
Reply with quote

Hi, everyone. In order to make geometrys in my scene to be transparency, I have studied osgoit code. and I am sure "order independent transparency" will be the right way for me. But problems happened when i develop this function in my application.

In my application, i used osgViewer::CompositeViewer to render scene but not osg::Viewer that used in osgoit. Everything is well when use osg::Viewer, as showed in below picture. But in my application, all geometries disappeared when i add them into DepthPeeling transparency scene.



is there some special settings should be set for "order independent transparency" in osgViewer::CompositeViewer. I have no solution for this problem after searched forum many times.

Can anybody give me some suggestions about this situation. Thank you very much!



Thank you!

Cheers,
Yu[img][/img]
Back to top
View user's profile Send private message
Chris Hanson
Guest





PostPosted: Fri Jun 14, 2019 8:23 pm    Post subject:
Order Independent Transparency and osg::Viewer
Reply with quote

I think you might want to try this OSG library we wrote, which adds order independent transparency options:

http://alphapixel.com/project/osg-transparency-toolkit/ 


 



On Fri, Jun 14, 2019 at 9:56 AM Yu Jie < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi, everyone. In order to make geometrys in my scene to be transparency, I have studied osgoit code. and I am sure "order independent transparency" will be the right way for me. But problems happened when i develop this function in my application.

In my application, i used osgViewer::CompositeViewer to render scene but not osg::Viewer that used in osgoit. Everything is well when use osg::Viewer, as showed in below picture. But in my application, all geometries disappeared when i add them into DepthPeeling transparency scene.



is there some special settings should be set for  "order independent transparency" in osgViewer::CompositeViewer. I have no solution for this problem after searched forum many times.

Can anybody give me some suggestions about this situation. Thank you very much!



Thank you!

Cheers,
Yu[img][/img]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76291#76291




Attachments:
http://forum.openscenegraph.org//files/geometrydisappeared_102.png
http://forum.openscenegraph.org//files/well_transparency_206.png


_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

------------------
Post generated by Mail2Forum
Back to top
beingbad@163.com
Newbie


Joined: 13 Jun 2019
Posts: 6

PostPosted: Tue Jun 25, 2019 6:21 am    Post subject:
Reply with quote

Dear Chris Hanson,

Thanks for your reply. I have study your libary "OSG Transparency Toolkit". it is really very great. it works well when i used osgViewer::Viewer to render my scene. But my problem is when I set my scene into osgViewer::View which i used in my application, the transparency effect is not good.

Is there anything need to be set for osgViewer::View? I think osgViewer::Viewer have set something defautly, so it works very well.

Thanks for your help!

...

Thank you!

Cheers,
Yu
Back to top
View user's profile Send private message
Chris Hanson
Guest





PostPosted: Tue Jun 25, 2019 8:45 pm    Post subject:
Order Independent Transparency and osg::Viewer
Reply with quote

I guess I don't really know what would be different. It's not clear to me how you are using osgViewer, but you have all the source to osgTransparencyToolkit, you should be able to debug.

Perhaps run both versions under something like glTrace and compare them?


On Tue, Jun 25, 2019 at 8:21 AM Yu Jie < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Dear Chris Hanson,

Thanks for your reply. I have study your libary "OSG Transparency Toolkit". it is really very great. it works well when i used osgViewer::Viewer to render my scene. But my problem is when I set my scene into osgViewer::View which i used in my application, the transparency effect is not good.

Is there anything need to be set for osgViewer::View? I think osgViewer::Viewer have set something defautly, so it works very well.

Thanks for your help!

...

Thank you!

Cheers,
Yu

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76329#76329





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts embedding osg::viewer NoeMurr General 2 Tue Aug 27, 2019 5:38 pm View latest post
No new posts Transparency problem beingbad@163.com General 5 Thu Jun 13, 2019 9:28 am View latest post
No new posts Running multiple (independent) viewer... Aneoshun General 2 Wed May 22, 2019 4:49 pm View latest post
No new posts Getting LigtModel from viewer Bonghi General 3 Sun Apr 07, 2019 11:17 pm View latest post
No new posts Switch call to viewer::frame() betwee... DrPowers General 4 Tue Sep 11, 2018 6:48 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP