CompuServe Thread

#USER view, camera sel

2 messages in this thread
#157980From: Keith MacfarlaneMar 9, 1995 10:23 AM
I asked this question before, but now that I have a little more information, I'll try again. I would like to set the USER view from within a PXP. I have looked at "VIEW.C, VIEW_I.PXP" by Gus J Grubba and this shows how to setup your own view. From working with CAD I already have my matrix routines developed and debuged, so the math is no problem, and I could replace the USER view with my own imitation. But, once my IPAS was terminated the USER view would remain unchanged. I have tried modifing the Viewport structure, and then redrawing the viewport, but this does nothing. You mentioned last time about using the File Toolkit, could you elaborate? Right now I have it using a camera view, and with our 3D input device, you can fly around your mesh object in almost real-time; but since you cannot edit in a camera view, it doesn't help me much. Which brings up another question. How can I select cameras and lights in a PXP. EXP_PICK_OBJECT works great for mesh objects, but does nothing for cameras and lights, and I can't seem to find anything else that works in a PXP. KXP_PICK_NODE looks like it would be perfect, but it doesn't seem to work in a PXP. Any help or suggestions would be greatly appreciated…
#157990From: Jonas Ruikis [ADESK]Mar 9, 1995 11:21 AM
Hi Keith, << But, once my IPAS was terminated the USER view would remain unchanged. I have tried modifing the Viewport structure, and then redrawing the viewport, but this does nothing. You mentioned last time about using the File Toolkit, could you elaborate? >> IPAS4 will allow you to do_3ds_save. The 3DS File toolkit has a GetViewport3DS and a PutViewport3DS functions and also there is a data structure called UserView3ds containing the center, zoom, horang, verang. You could change these values, and use IPAS4 to do_3ds_load the modified *.3ds file prior to exiting. << How can I select cameras and lights in a PXP. EXP_PICK_OBJECT works great for mesh objects, but does nothing for cameras and lights, and I can't seem to find anything else that works in a PXP. KXP_PICK_NODE looks like it would be perfect, but it doesn't seem to work in a PXP. >> Have you looked at the possibilities of using gfx_camera_at and gfx_light_at, etc.. as an avenue? Also, slightly relevant here.. have you seen..? File Info for LTUTIL.ZIP Section: IPAS Usage Contributor: 76330,3402 Size: 41788 Submitted: 6/2/94 Type: Binary Accesses: 678 Title: IPAS Lighting Utilities Keys: IPAS LIGHTING UTILITY ARRAY STYLE DELETE This is a shareware IPAS3 PXP to implement the concepts of Light Styles, Light Arrays, and Light Delete by Name. Written by Mark Meier. File Info for LTUT-C.ZIP Section: Software Dev. Kits Contributor: 76330,3402 Size: 29955 Submitted: 4/25/94 Type: Binary Accesses: 132 Title: Source Code for LTUTIL.ZIP Keys: IPAS C SOURCE LTUTIL LIGHT This is the C source code to the lighting utility LTUTIL.ZIP. Uploaded by Mark Meier. Watcom 9.5 was used. I'm not sure if it will compile under Metaware…