Re: [Plib-devel] User defined texture formats
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-05-10 03:11:38
|
> Dave McClurg wrote: > > Trent Gamblin wrote: > > I think SSG needs to have some hooks to allow user defined image > > formats... > > I did a cvs commit which adds a leaf creation hook to ssgLoadAC.cxx OK - but I don't think this is the place to load textures. Shouldn't this just be the (existing) ssgGetAppState callback? Whenever the loader allocates a new ssgState, it calls that callback with the name of the texture map - you can then either share an existing ssgState or allocate a new one - complete with correctly loaded texture map. > This should allow you to load the image formats you need. This hook > should allow you to do other things like: > > - load compressed or volumized textures > - strip off full paths from texture filenames > i use that for ASE files because the modeler stores full paths > whereas Steve likes a path that starts with '/' to be left alone. Both are more appropriate for ssgGetAppState. > - cull unwanted geometry or texture info > - recompute normals Yep - these are good reasons for a leaf callback. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |