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 

osgRTTDemo, non-power-of-16 texture


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgCompute [osgCompute]
View previous topic :: View next topic  
Author Message
creature (Ethan Fahy)
Appreciator


Joined: 07 Sep 2011
Posts: 142

PostPosted: Mon Jan 28, 2013 2:53 pm    Post subject:
osgRTTDemo, non-power-of-16 texture
Reply with quote

Hello,

I'm trying to use osgCompute in a manner very similar to the osgRTTDemo. The only difference is that my source texture is a float32 and the target texture is an unsigned 8 bit int texture. I have it set up so that if I keep the power of 16 texture size it works perfectly. However, if I change the texture size and make what I think are the appropriate changes to the TexFilter.cu code, I get black spots in my output texture that make it look like the correct data is being written to the incorrect output texture location in memory. The changes I made were to round up the number of blocks and to put an if statement to only process threads with x and y values within the image bounds, which from my experience looking at CUDA code is a very common practice.

So, the fundamental questions is: how can the power of 16 texture limitation be removed from the osgRTTDemo ?
Back to top
View user's profile Send private message
creature (Ethan Fahy)
Appreciator


Joined: 07 Sep 2011
Posts: 142

PostPosted: Mon Jan 28, 2013 5:03 pm    Post subject:
Reply with quote

Sorry I should have said multiple of 16, not power of 16.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgCompute [osgCompute] 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 obj plugin does not support diffuse a... Ralf Habacker General 1 Tue Sep 19, 2017 6:21 am View latest post
No new posts How to texture map Box/Sphere/Cone/Ca... pleopard General 2 Mon Aug 07, 2017 7:14 pm View latest post
No new posts Render to texture with GL3. Raizel General 3 Tue May 23, 2017 10:33 am View latest post
No new posts How to replace the texture data in th... xdfanfan General 1 Wed Apr 05, 2017 12:44 pm View latest post
No new posts Multitexture: projection a texture on... Ekaterina General 2 Mon Feb 06, 2017 1:48 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