Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 30th October 2003, 07:53 AM   #1
andi
Junior Member
Member
 
Join Date: Sep 2003
Posts: 13
Default Different textures?

Hi
Yet another problem with the SDK in my .3ds importer:
I use
ok = search_and_set_texture(object, g_filename, texture);
to apply a texture to an object. g_filename if the filename, as given to the loading function of the plugin. texture is the name of the texture as it appears in the .3ds file.

For most models this works perfectly. But some models seem to have problems: only a _single_ texture is used for all objects, although the model uses different textures.
The function call uses the correct values for the "texture" parameter, according to the printf() I added next to it.
Also according to ac_object_get_texture_index(object) the objects actually use different textures.

I have the impression that this is due to a more complex hierarchy of the model. This particular model looks (in the .3ds file) like this:
Code:
- Box04
  - $$$DUMMY
    - rocketbo10
    - rocketbo11
    - rocketbo12
    - [...]
  - Box02
    - $$$DUMMY
      - Box03
      - Box03
  - Box05
[...]
Where $$$DUMMY objects are objects that do not contain any faces.

Other models have $$$DUMMY objects on top level only.
Could this be related?

Any hints why only one texture appears?

CU
Andi
andi is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 07:52 AM.


AC3D Forum
(C) Inivis Limited 2020