Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8886039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:27:39+00:00 2026-06-14T21:27:39+00:00

I want to use SceneKit on MacOS to load a Collada file and get

  • 0

I want to use SceneKit on MacOS to load a Collada file and get scene node properties to use them with my own scene graph.

I can easily access vertices, normals, transformation matrices, material properties and so forth – everything except of the texture file names.

I would expect a texture’s file name to be stored in an instance of SCNMaterialProperty Class. From the documentation:

The SCNMaterialProperty class encapsulates a texture and a set of
attributes specifying how the texture is applied on the object.

But I can only get an NSImage representing the texture, not the source file name itself.

It must be somewhere – In the inspector of XCode’s collada viewer the file name is displayed as well (along with properties from SCNMaterialProperty):

enter image description here

How do i access a texture’s file name in a SceneKit object graph?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:27:41+00:00Added an answer on June 14, 2026 at 9:27 pm

    There’s no API for it. If you’re purely interested in it for debugging purposes, it’s not too hard to hack at: underlying SCNMaterialProperty is C3DImageRef, which you can retrieve using -[SCNMaterialProperty getC3DImageRef]. Its layout looks something like:

    struct __C3DImage {
      void *isa;
      uint32_t junk;
      uint32_t retainCount;
      NSDictionary *entityProperties;  // e.g. contains the kIDKey.  Nothing else for a material property.
      NSURL *path;
      ...
    }
    

    So with some casting and offsetting you can grab the path. Be aware the offset changes in 32-bit vs 64-bit due to the size of pointers changing.

    All this info can be gleamed from class-dump (and headers can be generated that include the exact structs etc). It’s all horribly fragile though, so don’t ever ship code that uses it. File a bug report requesting that an API be added to get this info properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use $.ajax get a url string from a xml file ,then with
I want use BYTE_ORDER macro in my Xcode project but i can't because i
I want use a single php file to handle all of my voting requests.
I want use Kendo ui window, but I can't see what the problem is.
I want use php curl with oauth to get the JSON data from twitter
I want use many bitmap for my game canvas. I can't Recycle bitmaps, because
I want use 1000 separator(,) for numeric values. how can i format strings with
I want use html5's new tag to play a wav file (currently only supported
I want use Rails own controller benchmarking method in Cells. I tried include ActiveSupport::Benchmarkable
I want use $.ajax to read some infomation from xml file,here is my js

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.