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 

UnitOut trunk and image readback


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU]
View previous topic :: View next topic  
Author Message
Luciano Pica
Guest





PostPosted: Tue Jul 05, 2011 12:34 pm    Post subject:
UnitOut trunk and image readback
Reply with quote

Hi,

I am using osgPPU (0.4.0) in a distributed environment and thus rely on
the image readback functionality through camera attachments to be able
to send rendered/postprocessed images over the network. Since OSG 3.0
seems to require the osgPPU trunk version and i could also use the new
resize functionality of osgPPU i tried to migrate to the newer version.
Unfortunately since the update i only get clear color read back instead
of the UnitOut output. The updated API doc says that UnitOut disables
the FBO which i am using, but switching the camera implementation from
FBO to simple FB leads to the same results. Are there any other changes
in that regard i need to be aware of? And what is the correct way to use
UnitOut now if i want to use camera attachments?

Debug output looks ok, the only thing differing between 0.4.0 and trunk
is the additional line "output: 0". According to the source this line
was caught by an if-phrase before and thus omitted. PipelineResult is a
UnitOut, color is a UnitTexture for input and BlurX an instance of
UnitInOut:

BEGIN FRAME EffectNode osgPPU::Processor
color run in thread 0
vp 0x21300f0 (ref 0): 0 0 512 512
program: 0x212d4a0
input: 0:0x1f1c690-attr (512x512)
output: 0x1f1c690 (512x512 )
BlurX run in thread 0
vp 0x3f4fbe0 (ref 0): 0 0 512 512
program: 0x7fa474019f10
radius : 15
sigma : 15
input: 0:0x1f1c690-attr (512x512)
output: 0x3f50370 (512x512 )
PipelineResult run in thread 0
vp 0x3f51160 (ref 0): 0 0 512 512
program: 0x2130c80
input: 0:0x3f50370-attr (512x512)
output: 0
END EffectNode osgPPU::Processor



Regards,
Luciano


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU] 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 osg::Image::setImage problem evanyftsai General 6 Sat Feb 18, 2017 2:38 am View latest post
No new posts Capture image on iOS get black image nghien_rbc General 6 Tue Dec 27, 2016 12:57 am View latest post
No new posts How to render the image without reduc... umadevi2193 General 5 Tue Nov 22, 2016 12:58 pm View latest post
No new posts Display Geotiff image in OSG umadevi2193 General 8 Thu Nov 17, 2016 11:10 am View latest post
No new posts Save the image from computer shader mingsta General 1 Sat Oct 15, 2016 4:58 pm 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