Editing User:Mihaineacsu/implementing material obj

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 24: Line 24:
 
When raytracing is performed and tree state is built from combs (db_apply_state_from_comb), material object name is stored in the ts_mater field (struct mater_info). This way rtweight and gqa can perform db lookups for local material objects.
 
When raytracing is performed and tree state is built from combs (db_apply_state_from_comb), material object name is stored in the ts_mater field (struct mater_info). This way rtweight and gqa can perform db lookups for local material objects.
  
The rough submitted [https://sourceforge.net/p/brlcad/patches/302/ patch] covers most of these details. If the feedback is positive on the implementation details the next step is to provide an API to modify material properties and make sure all tools work the new type of objects (e.g.: adding/modifying/removing properties attr or making it easy for a region to reference a material object using mater).
+
The rough submitted patch covers most of these details. If the feedback is positive on the implementation details the next step is to provide an API to modify material properties and make sure all tools work the new type of objects (e.g.: adding/modifying/removing properties attr or making it easy for a region to reference a material object using mater).
  
 
Another issue I want to tackle is binary attributes. Material properties are either float or double types and they're stored in bu_avs which can currently only map string to string. I've been following Tom Browder's work on this. He wanted each pair in an avs to be flexible enough to hold a different mapping. What I don't understand is the format that he wants/wanted to use to store the data:
 
Another issue I want to tackle is binary attributes. Material properties are either float or double types and they're stored in bu_avs which can currently only map string to string. I've been following Tom Browder's work on this. He wanted each pair in an avs to be flexible enough to hold a different mapping. What I don't understand is the format that he wants/wanted to use to store the data:

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)