comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » regarding 3D color plot from the output of IDLgrVRML
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
regarding 3D color plot from the output of IDLgrVRML [message #85447] Wed, 07 August 2013 14:06
seanjao is currently offline  seanjao
Messages: 2
Registered: July 2003
Junior Member
Hi there:

I try to plot a 3D plot by using Object Graphics. My goal is to plot a white 3D shere on a black background.

Here is the highlight of my code.
------------------------------------------------------------ ------------
omodel = obj_new('IDLgrModel')

oview = obj_new('IDLgrView',VIEWPLANE_RECT=[-.7,-.15,1.7,1.7], color=[0, 0, 0])

....... skip the axes part.....

orb111=OBJ_NEW('orb',pos=[200, 300, 500], radius=0.15, COLOR=[255, 255, 255], SHADING=1, STYLE=2, HIDDEN=0)

omodel->add,orb111
oview->add,omodel

;Create the window to display the view
owindow = obj_new('IDLgrWindow', GRAPHICS_TREE=oview, retain=2)
owindow->draw


; ; create your VRML object
oVRML = obj_new('IDLgrVRML')
oVRML->setproperty,FILENAME='test.wrl'
oVRML->draw, oView
-----------------------------------------------------------

The Xwindow does show this orb111 is a white sphere. However, when I use "instant player" (ver 2.3.0) to open this "test.wrl" file, the orb111 is black. Is this problem due to how "instant player" rendering or my code has a bug?

Thanks!
Sean
(Note that I am aware of xplot3d, but I do not like the output. Hence, I try to make my own plot.)
[Message index]
 
Read Message
Previous Topic: Why my IDL7.1 can't be used on win7 64bit OS. always idlde.exe stops the program?
Next Topic: Char thickness in cgimage

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:54:17 PDT 2025

Total time taken to generate the page: 0.00360 seconds