-
Notifications
You must be signed in to change notification settings - Fork 13
Texture Maps
- FreeImage library used for texture loading (click for formats).
- Transparency supported (with user controlled global 'alpha_mode').
Texture map table 'np_texture' keeps track of the files and attributes. It is linked (foreign keys) from both the models and node tables.
3D Models Texture File Search Order:
- First it tries the path specified in the 3D models file.
- Then it checks if the texture is in the same folder as the models file.
- Lastly, it searches the default 'usr/global/images' texture folder.
Texture Table:
- np_texture_id table keeps track of the texture files.
- parent_id specifies the multi-texturing hierarchy.
- meta_id external metadata, such as cropping, timecode, color, etc.
- cat asset category is 0 for images, 1 for video, 2 for GLSL....
- name of the file.
- path location of the texture.
Only one texture map per 3D models file (at this time).
np_meta_id table for both native and external metadata.
- type default = 0 for an image file, 1 for video, 2 for GLSL shader.
- crop_min and crop_max XY will trim the texture edges.
- translate XYZ positions the texture.
- rotate XYZ orients the texture.
- scale XYZ sets the size.
- tiling default = 1 repeats XY, 2 for X only, 3 for Y only and 0 for none.
© 2024 Shane Saxon. All rights reserved.
Saxon Digital™, Neuralphysics™, Neural Physics Engine™, NPE™, PODmind™, 7viz™, FileViz™, GaiaVizⓇ, CoderViz™, Csync™, lazyC™, Xr™, Xreality™, ANTz+Fx™, ANTz+™, OpenANTz™, ANTz+Xr™ and the ANTz+Xr™ logo, the Saxon Digital slogans, and the Saxon Digital product names are trademarks of Saxon Digital in the U.S. and/or other countries. All other product names, trademarks, and/or company names are used solely for identification and belong to their respective owners.
Maintained by: OpenANTz.com