Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Adjust transparency on models; and make a model invisible
Topic Started: Sep 22 2007, 02:53 AM (189 Views)
Camman
Member
[ *  * ]
Is there a way to adjust transparency on models after they have been loaded, not using different png files.

And what is the code to make a model not show ( is it visible=false? ) IE make it invisible so it does not have to be drawn.


Thanks,
Cameron
~Cameron
http://warriors-path.net - The Warrior's Path
http://combustion-ent.uni.cc - Combustion Entertainment
Offline Profile Quote Post Goto Top
 
gamemakerguy1560
Member Avatar
Creator of Expedition: Prehistory
[ *  *  *  *  *  * ]
a model's alpha (specifically a specific material) can be changed with the following function:
Code:
 

SetModelMaterial(MaterialIndex,R, G, B, A)


to make a model invisible, first set the visibility of two different U3D rooms (preferably in the creation event of the control object) to visible and invisible like this:
Code:
 

SetRoomVisibility(0,1);
SetRoomVisibility(1,0);


then set the specific object to either visible:
Code:
 

SetObjectRoom(0);


or invisible:
Code:
 

SetObjectRoom(1);


depending on if you want to draw them or not. simple isn't it?
Posted Image
My Forums
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply