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 

Support for paletted images in dds plugin?


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
psi29a
Newbie


Joined: 12 Aug 2015
Posts: 8
Location: Belgium

PostPosted: Fri Jun 22, 2018 10:14 am    Post subject:
Support for paletted images in dds plugin?
Reply with quote

Hi,

as the subject suggests, will there ever be support for DDPF_PALETTEINDEXED* images in the dds plugin:
osgPlugins/dds/ReaderWriterDDS.cpp ?

In OpenMW (that uses OSG), we've come across "mods" that ship with dds files that use DDPF_PALETTEINDEXED8

Since our goal is to support these mods out of the box without having to contact the original author, it falls to OpenMW to eventually support it. As you likely guessed it, OpenMW uses OSG's dds plugin to handle all dds images.

If someone wanted to pick up this torch, would you accept a patch to add support?

What we currently see:
Code:
Error loading textures\vurt_wl_cherryb03.dds:  code 1
Error loading textures\vurt_wl_cherryb05.dds:  code 1
Error loading textures\vurt_wl_goldenbark.dds:  code 1


The issue we are tracking internally with resulting image here:
https://gitlab.com/OpenMW/openmw/issues/3668



Thank you!

Cheers,
bret
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11971

PostPosted: Fri Jun 22, 2018 10:29 am    Post subject:
Support for paletted images in dds plugin?
Reply with quote

HI Bret,

As long as adding support does introduce problems with other usage
case I see no reason not to merge a patch adding palette support. My
guess is that you'll need to resole the palette into a full osg::Image
with RGB(A) within the plugin, as osg::Image doesn't have palette
support (and neither does OpenGL.)

Cheers,
Robert.
On Fri, 22 Jun 2018 at 11:14, bret curtis <> wrote:
Quote:

Hi,

as the subject sudjests, will there ever be support for DDPF_PALETTEINDEXED* images in the dds plugin:
osgPlugins/dds/ReaderWriterDDS.cpp ?

In OpenMW (that uses OSG), we've come across "mods" that ship with dds files that use DDPF_PALETTEINDEXED8

Since our goal is to support these mods out of the box without having to contact the original author, it falls to OpenMW to eventually support it. As you likely guessed it, OpenMW uses OSG's dds plugin to handle all dds images.

If someone wanted to pick up this torch, would you accept a patch to add support?

What we currently see:

Code:
Error loading textures\vurt_wl_cherryb03.dds: code 1
Error loading textures\vurt_wl_cherryb05.dds: code 1
Error loading textures\vurt_wl_goldenbark.dds: code 1




The issue we are tracking internally with resulting image here:
https://gitlab.com/OpenMW/openmw/issues/3668



Thank you!

Cheers,
bret

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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] 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 Scaled Images with GL_RG Format Daniel Emminizer, Code... General 0 Tue Jun 26, 2018 6:47 pm View latest post
No new posts decent font without free type plugin OmegaDoom General 0 Mon Jun 25, 2018 12:12 pm View latest post
No new posts ANGLE/UWP support checked into OSG gi... robertosfield General 5 Fri Jun 01, 2018 2:08 pm View latest post
No new posts Support for loading cubemap images in... Farshid Lashkari Submission 7 Wed May 09, 2018 5:56 pm View latest post
No new posts Self provide osg related cmake find_p... Ralf Habacker General 0 Thu Apr 26, 2018 7:11 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