WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   noob questions: scene lighting, viewpoint updates (

dcnieho 02-13-2011 07:35 PM

noob questions: scene lighting, viewpoint updates
Dear Worldviz,

So I've managed to work with the _SECURE_SCL issue I talked about in the other thread, things are working well now - interface development was pretty easy! Overall, I'm very happy with the speed with which I could develop using Vizard (note: this is my first time touching it). Thanks for the great work, it is indeed obvious you guys work with your own product all the time!

Two noob questions:
1) from my openGL code, I am drawing spheres using gluSphere. The colors don't come out right, they seem to be too dim (while the colors of, for instance, a GL_POINT vertex is fine). I have already put viz.MainView.getHeadLight().disable()
in my script, but this does not seem to fix the issue. Is there any other lighting / color processing turned on by default that I should look at?

2) In my code, I'll need to compute the instantaneous velocity (either delta (X,Y,Z) or a velocity vector expressed in spherical coorinates (azimuth,elevation,speed) would be fine) and rotation rate (yaw only for now). Are there some built-in functions for this or should I simply save the previous position and orientation and compute these myself?

Thank you for the pointers!

dcnieho 02-13-2011 08:01 PM

Oh, by the way, I realize that switching off all lighting will make my spheres look flat -- that is my intention!


farshizzo 02-15-2011 09:58 AM

1) Have you tried disabling lighting just on the node?

I just tested this out with the custom node example, and I don't get any dimming.

2) There is no automatic velocity computation for nodes, unless you are using physics. You will need to save the previous values and compute the velocities yourself.

dcnieho 02-15-2011 08:53 PM

Dear Farshizzo,

Thanks for the replies! Turns out there was some obscure bug in my code for drawing the spheres not related to Vizard, but never run into it either before.

Disabling the lighting works fine now.

Computing velocity and such myself isn't hard, thats working fine now.

I must again say I really like Vizard. I've only been working with it for a few days now, but the learning curve is doable and the platform really powerful! Thank you very much for the work that went into it.


All times are GMT -7. The time now is 10:59 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC