Hello Telmo,

Telmo Nobre wrote:
>         Hi
>          
>         First sorry for my english.

don't worry about it, there are quite a few non-native speakers on this 
list (including myself).

>         I'm a Portuguese student and I'm
>         developing a project for my graduation, it consist on
>         a virtual visit on the school.
>          
>         We are using openSg to do it and have some problems with the
>         navigator.
>          
>         We had design all scene in 3ds Max, and import it to openSg with
>         a .bin file.
>          
>         When I develop the walkNavigator with only a Torus on the screen
>         it work´s perfectly, but when I draw the all scene it doesn't work.
>          
>         With the torus when I press and leave the key down the navigator
>         walk forward correctly, but with the all scene (with the bin
>         file) he just move forward when I drop the key, and the jump is
>         proportional to the time that the key is pressed. 

this sounds as if most things work correctly, but it only draws a new 
frame, when you release the button.
Have you tried adding a glutPostRedisplay() call at the end of your 
glutKeyboardCallback ?

>         I want to control the navigator with keyboard so I made the
>         following function:
>          
>         void teclado(unsigned char k, int x, int y){
>          
>         if((GetKeyState('W') & 0x80))
                ^^^^^
This is a win32 api function, right? I don't know how that interacts 
with the keypresses reported by glut, but since it seems to work for you 
(at least with the torus) this is probably not the problem...

        Hope it helps,
                Carsten


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to