|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
TCL/Tk Script samplesI recently downloaded Nebula Device 2 for Windows and DirectX. I seem to be unable to find some working TCL examples.
For example, I run NViewer.exe and try the following script (found on the internet at http://www.3dactionplanet.com/projectnomad/engine_faq.shtml). sel /usr/scene # create an ambient light new nlightnode amb sel amb .setcolor 1.0 1.0 1.0 1.0 sel .. # create a 3d node with mesh, texture and shader new n3dnode pos sel pos new nmeshnode mesh sel mesh .setfilename "object.n3d" sel .. # ----------------------------------------------- # EOF # ----------------------------------------------- The first sel command works, as does the creation and selection of the first light (amb). An attempt to set the color gives the error: "Object /usr/scene/amb doesn't accept command 'setcolor'". Does this mean that I am missing a module (or package), or is this sample from a different version of Nebula? I seem to be unable to find TCL/Tk samples for the Nebula Device 2. Can anyone help? Thanks, Sergey |
|
|
Re: TCL/Tk Script samplesvgb777 wrote:
> I recently downloaded Nebula Device 2 for Windows and DirectX. I seem to be > unable to find some working TCL examples. > > For example, I run NViewer.exe and try the following script (found on the > internet at http://www.3dactionplanet.com/projectnomad/engine_faq.shtml). > > sel /usr/scene > > # create an ambient light > new nlightnode amb > sel amb > .setcolor 1.0 1.0 1.0 1.0 > sel .. > > # create a 3d node with mesh, texture and shader > new n3dnode pos > sel pos > new nmeshnode mesh > sel mesh > .setfilename "object.n3d" > sel .. > # ----------------------------------------------- > # EOF > # ----------------------------------------------- > > The first sel command works, as does the creation and selection of the first > light (amb). An attempt to set the color gives the error: "Object > /usr/scene/amb doesn't accept command 'setcolor'". > > Does this mean that I am missing a module (or package), or is this sample > from a different version of Nebula? > > I seem to be unable to find TCL/Tk samples for the Nebula Device 2. Can > anyone help? > > Thanks, > > Sergey > for the script interface/command you may look here : http://nebuladevice.cubik.org/documentation/nebula2/NebulaTwoScriptInterface.shtml setcolor is simply not a function of nlightnode ! Look for nscenenode::setvector3attr ; That the only function that might be used to set the color of the light ( as done into mvieverapp.cc#272 ) for sample I'm not aware of any, but a n2 file - used to load 3d object - is in fact a tcl script For what I know ( therefore barely nothing... ) nebula is not a plain script engine. In a point or other, you have to derive/create your own c++ classes. nviewer/mviewer - as their name stand - are just 3d objects viewers. A+ -- for my 3d work it's over there --> http://j.a.l.free.fr/3dsmax update 26 Aug 2006 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV *** 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: TCL/Tk Script samplesThe page you found refers to Nebula 1, not 2, so don't waste your time
trying to get any examples from there running. -+ enlight +- vgb777 wrote: > I recently downloaded Nebula Device 2 for Windows and DirectX. I seem to be > unable to find some working TCL examples. > > For example, I run NViewer.exe and try the following script (found on the > internet at http://www.3dactionplanet.com/projectnomad/engine_faq.shtml). > > sel /usr/scene > > # create an ambient light > new nlightnode amb > sel amb > .setcolor 1.0 1.0 1.0 1.0 > sel .. > > # create a 3d node with mesh, texture and shader > new n3dnode pos > sel pos > new nmeshnode mesh > sel mesh > .setfilename "object.n3d" > sel .. > # ----------------------------------------------- > # EOF > # ----------------------------------------------- > > The first sel command works, as does the creation and selection of the first > light (amb). An attempt to set the color gives the error: "Object > /usr/scene/amb doesn't accept command 'setcolor'". > > Does this mean that I am missing a module (or package), or is this sample > from a different version of Nebula? > > I seem to be unable to find TCL/Tk samples for the Nebula Device 2. Can > anyone help? > > Thanks, > > Sergey > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV *** 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 |
| Free embeddable forum powered by Nabble | Forum Help |