Skip to main content
GameDev.net gamedev.net
🔒 Locked

Segment Disabling

Started by Gary Jul 20, 2000 at 4:30 PM 3 replies 650+ views
Original Post
Gary
Gary
Is there a way to disable the transformation and rendering of an entire segment. I''ve tried to set segment flags to everything from FLAG_NORENDER | FLAG_NOTRANSFORM to INVISIBLE but it doesn''t seem to work. The only way I can seem to disable a segement is to set the flags on all the faces of that segment but it seems like you should be able to set a segement flag so that PR knows not even to bother with that segment rather than go through all of the proccessing of each face. Maybe there is a flag and I just don''t know what it is. Does anyone else have an idea? Gary
ChrisE
ChrisE
You could change the visibility flags after it has been transformed to prevent rendering, but that would be wasting time because all vertices would be transformed even though the segment is turned off.

A simple solution would be to set the number of vertices and faces to 0, then restore them when you want the segment activated again.


Author of Power Render (http:/www.powerrender.com)
Gary
Gary
Thats a good idea

Gary
Dr Pain
Dr Pain
Pulling up an old subject here...

Is it necessary to restore the number of vertices and faces before shutting down, or will that cause memory leaks?
ChrisE
ChrisE
Yes you should restore it.

Author of Power Render (http:/www.powerrender.com)
Author of Power Render (http:/www.powerrender.com)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.