sio2ObjectDuplicate loses material?

View previous topic View next topic Go down

sio2ObjectDuplicate loses material?

Post  Tom on Sun May 17, 2009 8:02 am

When I duplicate an object using sio2ObjectDuplicate, my new object draws without the texture.

How do I fix that ? Razz

Tom

Posts : 13
Join date : 2009-03-23

View user profile

Back to top Go down

Re: sio2ObjectDuplicate loses material?

Post  sio2interactive on Sun May 17, 2009 12:39 pm

Does the parent object is in the same SIO2resource as the duplicate?

Are you removing the parent somewhere?

Can you confirm that the _SIO2object->_SIO2instance point to a valid SIO2object.

Also maybe post a snippet to check what you are doing cuz parent/instance should work just fine...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2ObjectDuplicate loses material?

Post  Tom on Wed May 27, 2009 5:21 am

I figured it out, I think. There seems to be a bug where duplicate objects will not draw correctly with their material if you have a vertex group with no vertices assigned to it in the object.

Tom

Posts : 13
Join date : 2009-03-23

View user profile

Back to top Go down

Re: sio2ObjectDuplicate loses material?

Post  sio2interactive on Wed May 27, 2009 5:36 am

Good to know tks! Will check this out!

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2ObjectDuplicate loses material?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum