WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-26-2016, 11:00 AM
tokola tokola is offline
Member
 
Join Date: Nov 2012
Posts: 67
viz.COPY_SHARED_MATERIAL_HINT not working

Hi Jeff,

I've come across this very irritating issue of the viz.COPY_SHARED_MATERIAL_HINT command not working. I have a very simple model and have moved things around just in case, but the command fails to do what it's supposed to (create copies of the same material). Whenever I try to change alpha value of one node, the second one using the second material changes to. Weirdly enough, I've use this in other cases with no problem.

I couldn't attach the model (bigger than 1MB) but here's the simple code:
Code:
object = factory.add('models/blue_tanks.osgb')
object.hint(viz.COPY_SHARED_MATERIAL_HINT)
object.alpha(0, 'OilDrop1')
Update: I actually created this with the Inspector from a 3DS model. Running the code on the original model is fine. Eventually, the Inspector does something that renders this command useless. Additionally, it increases the size by 8-10 times more than the original file (attached)! It's kind of strange that WorldViz' own 3D software affects models in such a way. Is there a work around (instead of using 3DS again)?

Thanks!
Attached Files
File Type: zip oil_pump.zip (164.3 KB, 681 views)
Reply With Quote
 


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue Getting Quad Buffer Working nabrahamson Vizard 2 08-30-2012 09:43 AM
win32ui winviz.exe has stopped working TarkaDahl Vizard 3 08-10-2010 05:19 PM
ppt 3/4 working sisun1030 Precision Position Tracker (PPT) 6 03-05-2010 09:11 AM
Flock of Birds (Only Position Tracking working? No Orientation?) TheLostBrain Vizard 6 05-10-2008 08:39 AM
Collision with avatars and scene not working JvdBosch Vizard 12 09-14-2006 06:01 PM


All times are GMT -7. The time now is 09:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC