Jump to content
  • Advertisement
Sign in to follow this  
phtsai63

Export Camera information in 3Ds Max

This topic is 4848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to export the camera navigation information in 3ds Max to a file, and using DirectX to moving the eye to achieve navigation. Could anyone give me suggestions about exporter or anything? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I wrote a MAX Script that does exactly that (plus exports the light movements and attributes). Here's the link to it:

Artificial Script Exporter

It requires a note track set in Max with keys SS-name and SE-name (ScriptStart, ScriptEnd) so that exporter knows from where to where to export.

Use this test max file to test the script and see how my keys are set.
tentintro.max

I can also give you a VB.NET code for loading the script, but you should be able to change the export script so that it exports into something you find usefull.

This is the kind of text file it generates:

'ARTIFICIAL SCRIPT - exported from 3ds max with
'Artificial Script Exporter, created by Retro, 3D-Level team
'www.3dlevel.com

FPS: 30

Script: Intro


Object: Environment-ambient
Keys: 6
0: 0.0 0.0 0.0
59: 0.0 0.0 0.0
119: 40.0 0.0 39.0
180: 42.0 0.0 41.0
239: 81.0 73.0 64.0
449: 81.0 73.0 64.0


Object: Light
Name: ASP-Table_Light
Specular: true
Range: 300.0
Attenuation: true

Parameter: Color
Keys: 4
0: 206.0 222.0 255.0
180: 211.0 225.0 255.0
239: 242.0 227.0 212.0
449: 242.0 227.0 212.0

Parameter: Enabled
Keys: 2
0: true
449: true

Parameter: Multiplier
Keys: 4
0: 0.0
180: 0.0
239: 1.0
449: 1.0

Parameter: Position
Keys: 4
0: 15.3603 106.884 -2.38005
180: 15.3603 106.884 -2.38005
239: 15.3603 106.884 -2.38005
449: 15.3603 106.884 -2.38005

Object: Camera
Name: ASP-Scene_Camera

Parameter: Target
Keys: 9
0: 12.2142 103.817 -74.4304
59: 12.5304 104.711 -74.6481
119: 12.2002 102.361 -74.3755
179: 12.2002 102.361 -74.3755
214: 12.2002 102.361 -74.3755
299: -13.4894 113.528 -86.6304
399: -12.4946 113.408 -86.6304
425: 4.55027 92.3946 -39.383
449: 1.00086 92.9385 -32.5559

Parameter: Camera
Keys: 9
0: -30.7691 140.255 44.381
59: -95.2607 132.19 -4.14143
119: -57.6956 109.905 36.7812
180: 18.8187 107.271 85.9231
214: 18.8187 107.271 85.9231
299: -39.8524 101.824 -35.7839
399: -28.56112 96.7714 -32.13175
425: -48.7901 145.439 -19.5523
449: -15.632368 180.49 -32.5559

Parameter: FOV
Keys: 8
0: 1.0
59: 8.0
119: 13.0
180: 13.0
214: 13.0
299: 60.0
399: 60.0
449: 44.9999


Object: Camera
Name: ASP-Pendulum_Camera

Parameter: Target
Keys: 2
0: 10.3921 102.061 -31.4364
449: 10.3921 102.061 -31.4364

Parameter: Camera
Keys: 2
0: -28.1663 112.048 45.5778
449: -28.1663 112.048 45.5778

Parameter: FOV
Keys: 2
0: 44.9999
449: 44.9999

Share this post


Link to post
Share on other sites
Thanks your help.
The tentintro.max can't be got from the link, and I still not know what the words "It requires a note track set in Max with keys SS-name and SE-name (ScriptStart, ScriptEnd) so that exporter knows from where to where to export." means?
Executing the maxscript shows a "save *.as" dialog, but I got nothing using my own camera.max file. My camera.max file only contain camera setting, no model information.

Share this post


Link to post
Share on other sites
I got the tentintro.max file now, and got the same results as the above.

But my sample max got the error : "MAXScript FileIn Exception: -- Runtime error: Attempt to access deleted scene object <<"
I don't know what's wrong.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!