rendercontext question

View: New views
2 Messages — Rating Filter:   Alert me  

rendercontext question

by Libor Capak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello,

i have trouble with RenderContext concept. Documentation is clear to me.
Idea of stateless nodes is nice, but i have problems with quite simple
issues.

for example scene node tree:

/car
   wheel1
   wheel2
   wheel3
   wheel4

there is spatial hierarchy. /car is root node in my RenderContext
instance. If I'd like to rotate wheels according to render context
concept - so then i have to flatten this hierarchy and create for each
wheel another RenderContext instance? By flattening i loose relative
position of wheels so i have to calculate local->world transformation
manually for each wheel render context. Or am i missing something?

thank you

Libor Capak

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

*** NOTE: To reply to the list use "reply to all",  ***
***       to reply direct to the sender use "reply" ***
_______________________________________________
Nebuladevice-discuss mailing list
Nebuladevice-discuss@...
https://lists.sourceforge.net/lists/listinfo/nebuladevice-discuss

Re: rendercontext question

by Marco Antonio Gómez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     Hi,

     What I would do in that case is to isolate the "wheel state" in
some external variable such as "rotationFactor". Wheels objects then
render them accordingly, using an nAnimator that rotates them using that
variable.

     The renderContext used in the entire car has that variable set.
Car's trunk does not used it, but wheels do.

     Hope that helps.

         Marco

Libor Capak escribió:

> hello,
>
> i have trouble with RenderContext concept. Documentation is clear to me.
> Idea of stateless nodes is nice, but i have problems with quite simple
> issues.
>
> for example scene node tree:
>
> /car
>    wheel1
>    wheel2
>    wheel3
>    wheel4
>
> there is spatial hierarchy. /car is root node in my RenderContext
> instance. If I'd like to rotate wheels according to render context
> concept - so then i have to flatten this hierarchy and create for each
> wheel another RenderContext instance? By flattening i loose relative
> position of wheels so i have to calculate local->world transformation
> manually for each wheel render context. Or am i missing something?
>
> thank you
>
> Libor Capak
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
> *** NOTE: To reply to the list use "reply to all",  ***
> ***       to reply direct to the sender use "reply" ***
> _______________________________________________
> Nebuladevice-discuss mailing list
> Nebuladevice-discuss@...
> https://lists.sourceforge.net/lists/listinfo/nebuladevice-discuss
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

*** NOTE: To reply to the list use "reply to all",  ***
***       to reply direct to the sender use "reply" ***
_______________________________________________
Nebuladevice-discuss mailing list
Nebuladevice-discuss@...
https://lists.sourceforge.net/lists/listinfo/nebuladevice-discuss