Hi,

Allen Bierbaum wrote:
> Marcus Roth wrote:
>
>   
>> Hi,
>>
>> I ported the Image to a FieldContainer. The reason for the dynamic field 
>> approach for attributes
>> is that an image should hold additional attributes for special image 
>> types. Number and type of
>> this attrubutes depend on the image type. I don't like the dynamic 
>> fields. They are not supported by
>> clustering.
>>
>> File path should be a field and name should be a NameAttachment. I would 
>> store always the absolute
>> path in the filePath field because it is difficult to define a relative 
>> path if the image is shared.
>>  
>>
>>     
> The problem with storing absolute path though is if you want to save out 
> the file without the images embedded and then load it up again later.  
> With absolute paths you can not move the model file to another machine.  
> I think what is really needed here for OpenSG is a well-defined search 
> path structure that could be used for any external file that has to be 
> loaded (images, shaders, etc).  As a start, the internal "file finding" 
> method could include the path of the original file, the current working 
> directory, and maybe an environment variable of paths.  This would could 
> probably be combined with some of the FileIO topics being discussed 
> related to networking to create a single coherent system for finding and 
> loading any type of file.  That said, I don't have time to work on this 
> but I would love to see progress made on it.  I know it would help our 
> use of OpenSG quite a bit to refine these capabilities.
>
> -Allen
>   
for abstracting from where the file (scene, image, texture,..) came 
from, it is necessary to store
the relative path (relative to the base file) used for retrieving the file.
The absolute path/locator (used to complete the relative path) should be 
stored separately, I think.

I remember, the Image stores the absolute path (as a single field 
Name???), the relative path (as an attachment "fullFilePath"), the file 
name (as an attachment "fileName") currently.
Why is the absolute path stored in the single field Name???
How about storing the file name as a field (it does not change and it 
does not depend on paths, for memory images it is just empty) and the
path information (relative path and absolute path/locator) as attachments.
Additionally, it would be helpfull for me to know all places in the 
current code, where name/path information is stored ;-)

Regards,
Christoph


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to