|
From: cheribhai <cha...@gm...> - 2010-03-26 15:48:45
|
Hello,
A couple of questions concerning change in viewpoint.
(1) The VRML97 spec says that 'The jump field specifies whether the user's
view "jumps" to the position and orientation of a bound Viewpoint node or
remains unchanged.'
The way I see it, if jump is true the viewpoint user view transform should
by set to identity, which the following code does.
void openvrml_node_vrml97::viewpoint_node::bind(const bool val,
const double timestamp)
OPENVRML_THROW1(std::bad_alloc)
{
this->is_bound_.value(val);
last_user_view_transform_ = user_view_transform_;
if(this->jump_.value())
this->user_view_transform_ = openvrml::make_mat4f();
node::emit_event(this->is_bound_emitter_, timestamp);
}
Am I right on this?
(2) I am trying to implement viewpoint change animation in a custom browser.
For this it seems that I need the attribute value of
viewpoint_metatype::bind function to be set to visible (OPENVRML_API).
Is this the way to go about what I want to do or is there another way around
this?
cheers - cherian
--
View this message in context: http://old.nabble.com/Viewpoint-change-tp28044359p28044359.html
Sent from the openvrml-develop mailing list archive at Nabble.com.
|