WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-13-2011, 07:35 PM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
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()
viz.MainScene.disable(viz.LIGHTING)
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!
Best,
Dee
Reply With Quote
  #2  
Old 02-13-2011, 08:01 PM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
Oh, by the way, I realize that switching off all lighting will make my spheres look flat -- that is my intention!

Best,
Dee
Reply With Quote
  #3  
Old 02-15-2011, 09:58 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
1) Have you tried disabling lighting just on the node?
Code:
node.disable(viz.LIGHTING)
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.
Reply With Quote
  #4  
Old 02-15-2011, 08:53 PM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
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.

Best,
Dee
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lighting for a new Scene jassel41 Vizard 2 11-10-2010 09:14 PM
Copying Scene? Brett Lindberg Vizard 0 08-28-2009 11:56 PM


All times are GMT -7. The time now is 02:27 AM.


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