Page 1 of 1

Indigo camera in exporter

Posted: Fri Feb 09, 2007 5:17 am
by Jan
Hi all. It's time to implement the indigo camera in max, and there are some different ways to do it so...what do you think? Vote the best option

I have a question about this: what shutter speed value takes indigo camera? I don't understand at all how works without this parameter (or a rotary shutter like a videocamera).

PD: image for second option (integrated into standard camera parameters):
Image

Thanks in advance
Alejandro

Posted: Fri Feb 09, 2007 5:27 am
by suvakas
Yes, I've been wondering about the shutter speed too.
At the moment there seems to be no tag to controll that. (I think U3dreal just used linear tone maping to emulate ISO and Exposure. Correct me if i'm wrong?)

About the camera. How do you intend to implement a separate or extended Camera using script? As far as i know, then you can't use scripted plugins on Target Cameras (neither you can't extend a target camera rollout via script). Agan - correct me if i'm wrong =)

Suvakas

Posted: Fri Feb 09, 2007 6:03 am
by Jan
I'm not sure of understand you. As I know, target cameras are extended as any other, but I dont had investigate too much about this for now (at least until the end of the poll ;) )

Example code (only creation, no parameters):

Code: Select all

plugin Camera Indicam
name:"Indicam"
classID:#(0x28da14cf, 0x669b3c72)
category:"Jan_test"
extends:TargetCamera replaceUI:true
(
	tool create
	( 
		on mousePoint click do 
			case click of 
			(
				1: nodeTM.translation = gridpoint
				2: #stop
			)
	)
)
Hope this helps

Alejandro



-----EDIT----------

Suvakas, you have all the reason. When i try to replace UI with my own rollout, original rollouts remain unaltered. Anyway, I will maintain the option, since i think that it's possible to override this with extended free camera with a dummy as target.

Regards

Posted: Fri Feb 09, 2007 7:12 am
by suvakas
Ok. Great if it works !

This is what i was talking about before.
[taken from Maxscript help file]:

Code: Select all

Current limitations prevent certain plug-ins from being extended, in particular those with custom creation managers. These include target lights and cameras and all the System plug-ins. You can tell if a plug-in is not extendable if your new rollouts do not appear.
Maby that goes for something else. I havn't tested it myself yet, so i dont 100% know what i'm talking about :)

Suvakas

Posted: Fri Feb 09, 2007 7:22 am
by Jan
Direct extend of targetcamera doesn't work. The dummy as target on a extended free camera is a solution. Anyway, I must say that my favorite is the added rollout in both (target and free), because in this way the user is free to decide if targetcamera or freecamera. We will see the poll result :)

Alejandro

Posted: Fri Feb 09, 2007 7:33 am
by suvakas
Gotcha!.
I was thinking about the similar thing a while back. That maby using dummy as a target for free camera works.
But i was too lazy and didn't investigate it any further.


Suvakas

Posted: Fri Feb 09, 2007 10:17 am
by Jan
Works for sure, because I did the investigation some time ago for maxwell converter, when the camera target couldn't be created from maxscript. I use a not-rendereable teapot instead ;)

Alejandro

Posted: Tue Feb 13, 2007 6:11 am
by Jan
Suvakas, if you can take a look to you private messages

Thanks

Alejandro