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 

Help for OSGVolume


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
NoobIsMyNature
Newbie


Joined: 28 Jul 2017
Posts: 2

PostPosted: Fri Jul 28, 2017 4:33 am    Post subject:
Help for OSGVolume
Reply with quote

Hi, everyone,

I'm working on visualizing volume data via osgVolume, I wrote a program to generate some ".raw" files, and my data is supposed to be 61*61*61 volume, I can see it perfectly in osgVolume.exe like this:
osgVolume.exe --raw 61 61 61 1 1 big XXX.raw
but only in this way, it's a grayscale volume.

Here is my problem,
When I tried to give it color and opacity like this :
osgVolume.exe --raw 61 61 61 1 4 big XXX.raw
the program just crashed. I know it was because the ".raw" data reading progress in the readRaw(...) function, when chose to use GL_RGBA pixel format, the data is not suitable for reading anymore, but I can't figure out how to fix this problem, CAN ANYONE HELP ME?

Thank you!

Cheers,
Zhang
Back to top
View user's profile Send private message
NoobIsMyNature
Newbie


Joined: 28 Jul 2017
Posts: 2

PostPosted: Fri Jul 28, 2017 6:34 am    Post subject:
Reply with quote

Hi,everyone

I think I have found my way,and I've solved my problem.it's all about the data!


Thank you!

Cheers,
Zhang
Back to top
View user's profile Send private message
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 Help needed with osgVolume abhishek setty General 4 Tue Apr 04, 2017 2:30 pm View latest post
No new posts Help with osgVolume abhishek setty General 0 Sun Apr 02, 2017 5:13 pm View latest post
No new posts osgvolume multipass (hybrid geometric... mp3butcher General 2 Sun Mar 05, 2017 5:04 pm View latest post
No new posts osgVolume intro Trajce Nikolov NICK General 1 Thu Feb 09, 2017 9:37 am View latest post
No new posts Trying to run osgvolume example Alex Taylor General 2 Sun May 01, 2016 2:11 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