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
Hide object
Topic Started: Mar 14 2009, 06:13 PM (253 Views)
Gompen
Advanced Member
[ *  *  * ]
Is there any function for stop drawing the an object, without deleting it?
Isis Developer
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Yes, there is. You can place it in a room, that is not visible for the camera. If you do not use the advanced culling functions for anything else the code is like this:
Code:
 
SetObjectRoom(1); // Makes the object invisible
SetObjectRoom(0); // Makes the object visible
Offline Profile Quote Post Goto Top
 
Gandalf20000
Member Avatar
Geek
[ *  *  *  *  *  * ]
SetObjectRoom(<insert room index>);

It sets an object into the designated room. I think the indexes you can use are 0 (the room that is always rendered) through 9999. I could be wrong, though, and it's just 999. Unless the camera has SetRoomVisibility(RoomIndex,NewVisibilityState) set to true on NewVisibilityState, you won't be able to see it, and it won't conflict with anything in the other rooms unless specifically said to, because it is not being rendered.

EDIT: Dang, Dr. Best beat me to it.
Edited by Gandalf20000, Mar 14 2009, 06:22 PM.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply